protobuf

package
v0.0.0-...-30a366f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Package protobuf is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package protobuf is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package protobuf is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package protobuf is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	CurrencyStatus_name = map[int32]string{
		0: "unknown",
		1: "enabled",
		2: "disabled",
		3: "buy_disabled",
		4: "sell_disabled",
	}
	CurrencyStatus_value = map[string]int32{
		"unknown":       0,
		"enabled":       1,
		"disabled":      2,
		"buy_disabled":  3,
		"sell_disabled": 4,
	}
)

Enum value maps for CurrencyStatus.

View Source
var (
	HealthCheckReply_ServingStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "SERVING",
		2: "NOT_SERVING",
		3: "SERVICE_UNKNOWN",
	}
	HealthCheckReply_ServingStatus_value = map[string]int32{
		"UNKNOWN":         0,
		"SERVING":         1,
		"NOT_SERVING":     2,
		"SERVICE_UNKNOWN": 3,
	}
)

Enum value maps for HealthCheckReply_ServingStatus.

View Source
var (
	VerifyType_name = map[int32]string{
		0: "email",
		1: "phone",
	}
	VerifyType_value = map[string]int32{
		"email": 0,
		"phone": 1,
	}
)

Enum value maps for VerifyType.

View Source
var (
	VerifyCodeType_name = map[int32]string{
		0: "register",
		1: "login",
	}
	VerifyCodeType_value = map[string]int32{
		"register": 0,
		"login":    1,
	}
)

Enum value maps for VerifyCodeType.

View Source
var (
	LoginRequest_LoginType_name = map[int32]string{
		0: "lt_email",
		1: "lt_phone",
		2: "lt_account",
	}
	LoginRequest_LoginType_value = map[string]int32{
		"lt_email":   0,
		"lt_phone":   1,
		"lt_account": 2,
	}
)

Enum value maps for LoginRequest_LoginType.

View Source
var BaseService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protobuf.BaseService",
	HandlerType: (*BaseServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "NotFound",
			Handler:    _BaseService_NotFound_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protobuf/common.proto",
}

BaseService_ServiceDesc is the grpc.ServiceDesc for BaseService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var CollectorService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protobuf.CollectorService",
	HandlerType: (*CollectorServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Register",
			Handler:    _CollectorService_Register_Handler,
		},
		{
			MethodName: "Login",
			Handler:    _CollectorService_Login_Handler,
		},
		{
			MethodName: "Logout",
			Handler:    _CollectorService_Logout_Handler,
		},
		{
			MethodName: "GetWithName",
			Handler:    _CollectorService_GetWithName_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protobuf/collector.proto",
}

CollectorService_ServiceDesc is the grpc.ServiceDesc for CollectorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var CurrencyService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protobuf.CurrencyService",
	HandlerType: (*CurrencyServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "BatchInsertOrUpdate",
			Handler:    _CurrencyService_BatchInsertOrUpdate_Handler,
		},
		{
			MethodName: "List",
			Handler:    _CurrencyService_List_Handler,
		},
		{
			MethodName: "Detail",
			Handler:    _CurrencyService_Detail_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protobuf/currency.proto",
}

CurrencyService_ServiceDesc is the grpc.ServiceDesc for CurrencyService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_protobuf_collector_proto protoreflect.FileDescriptor
View Source
var File_protobuf_common_proto protoreflect.FileDescriptor
View Source
var File_protobuf_currency_proto protoreflect.FileDescriptor
View Source
var File_protobuf_health_proto protoreflect.FileDescriptor
View Source
var File_protobuf_hello_world_proto protoreflect.FileDescriptor
View Source
var File_protobuf_order_proto protoreflect.FileDescriptor
View Source
var File_protobuf_ping_proto protoreflect.FileDescriptor
View Source
var File_protobuf_trading_token_proto protoreflect.FileDescriptor
View Source
var File_protobuf_user_proto protoreflect.FileDescriptor
View Source
var Health_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protobuf.Health",
	HandlerType: (*HealthServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Check",
			Handler:    _Health_Check_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Watch",
			Handler:       _Health_Watch_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "protobuf/health.proto",
}

Health_ServiceDesc is the grpc.ServiceDesc for Health service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var HelloWorldService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protobuf.HelloWorldService",
	HandlerType: (*HelloWorldServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "APIHelloWorld",
			Handler:    _HelloWorldService_APIHelloWorld_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protobuf/hello-world.proto",
}

HelloWorldService_ServiceDesc is the grpc.ServiceDesc for HelloWorldService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var OrderService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protobuf.OrderService",
	HandlerType: (*OrderServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateOrder",
			Handler:    _OrderService_CreateOrder_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protobuf/order.proto",
}

OrderService_ServiceDesc is the grpc.ServiceDesc for OrderService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var PingPongService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protobuf.PingPongService",
	HandlerType: (*PingPongServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _PingPongService_Ping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protobuf/ping.proto",
}

PingPongService_ServiceDesc is the grpc.ServiceDesc for PingPongService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var TradingTokenService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protobuf.TradingTokenService",
	HandlerType: (*TradingTokenServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "APITradingTokenAdd",
			Handler:    _TradingTokenService_APITradingTokenAdd_Handler,
		},
		{
			MethodName: "APITradingTokenUpdate",
			Handler:    _TradingTokenService_APITradingTokenUpdate_Handler,
		},
		{
			MethodName: "TradingTokenCollectorList",
			Handler:    _TradingTokenService_TradingTokenCollectorList_Handler,
		},
		{
			MethodName: "ApplyTradingToken",
			Handler:    _TradingTokenService_ApplyTradingToken_Handler,
		},
		{
			MethodName: "CancelTradingToken",
			Handler:    _TradingTokenService_CancelTradingToken_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protobuf/trading-token.proto",
}

TradingTokenService_ServiceDesc is the grpc.ServiceDesc for TradingTokenService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protobuf.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ApiMailVerifyCode",
			Handler:    _UserService_ApiMailVerifyCode_Handler,
		},
		{
			MethodName: "ApiRegister",
			Handler:    _UserService_ApiRegister_Handler,
		},
		{
			MethodName: "ApiLogin",
			Handler:    _UserService_ApiLogin_Handler,
		},
		{
			MethodName: "ApiLogout",
			Handler:    _UserService_ApiLogout_Handler,
		},
		{
			MethodName: "ApiResetPwd",
			Handler:    _UserService_ApiResetPwd_Handler,
		},
		{
			MethodName: "ApiResetPwdNoLogin",
			Handler:    _UserService_ApiResetPwdNoLogin_Handler,
		},
		{
			MethodName: "ApiUpdateUserInfo",
			Handler:    _UserService_ApiUpdateUserInfo_Handler,
		},
		{
			MethodName: "ApiProxyApply",
			Handler:    _UserService_ApiProxyApply_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protobuf/user.proto",
}

UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterBaseServiceServer

func RegisterBaseServiceServer(s grpc.ServiceRegistrar, srv BaseServiceServer)

func RegisterCollectorServiceServer

func RegisterCollectorServiceServer(s grpc.ServiceRegistrar, srv CollectorServiceServer)

func RegisterCurrencyServiceHandler

func RegisterCurrencyServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCurrencyServiceHandler registers the http handlers for service CurrencyService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCurrencyServiceHandlerClient

func RegisterCurrencyServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CurrencyServiceClient) error

RegisterCurrencyServiceHandlerClient registers the http handlers for service CurrencyService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CurrencyServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CurrencyServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CurrencyServiceClient" to call the correct interceptors.

func RegisterCurrencyServiceHandlerFromEndpoint

func RegisterCurrencyServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCurrencyServiceHandlerFromEndpoint is same as RegisterCurrencyServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCurrencyServiceHandlerServer

func RegisterCurrencyServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CurrencyServiceServer) error

RegisterCurrencyServiceHandlerServer registers the http handlers for service CurrencyService to "mux". UnaryRPC :call CurrencyServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCurrencyServiceHandlerFromEndpoint instead.

func RegisterCurrencyServiceServer

func RegisterCurrencyServiceServer(s grpc.ServiceRegistrar, srv CurrencyServiceServer)

func RegisterHealthServer

func RegisterHealthServer(s grpc.ServiceRegistrar, srv HealthServer)

func RegisterHelloWorldServiceHandler

func RegisterHelloWorldServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterHelloWorldServiceHandler registers the http handlers for service HelloWorldService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterHelloWorldServiceHandlerClient

func RegisterHelloWorldServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client HelloWorldServiceClient) error

RegisterHelloWorldServiceHandlerClient registers the http handlers for service HelloWorldService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "HelloWorldServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "HelloWorldServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "HelloWorldServiceClient" to call the correct interceptors.

func RegisterHelloWorldServiceHandlerFromEndpoint

func RegisterHelloWorldServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterHelloWorldServiceHandlerFromEndpoint is same as RegisterHelloWorldServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterHelloWorldServiceHandlerServer

func RegisterHelloWorldServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server HelloWorldServiceServer) error

RegisterHelloWorldServiceHandlerServer registers the http handlers for service HelloWorldService to "mux". UnaryRPC :call HelloWorldServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterHelloWorldServiceHandlerFromEndpoint instead.

func RegisterHelloWorldServiceServer

func RegisterHelloWorldServiceServer(s grpc.ServiceRegistrar, srv HelloWorldServiceServer)

func RegisterOrderServiceServer

func RegisterOrderServiceServer(s grpc.ServiceRegistrar, srv OrderServiceServer)

func RegisterPingPongServiceServer

func RegisterPingPongServiceServer(s grpc.ServiceRegistrar, srv PingPongServiceServer)

func RegisterTradingTokenServiceHandler

func RegisterTradingTokenServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterTradingTokenServiceHandler registers the http handlers for service TradingTokenService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterTradingTokenServiceHandlerClient

func RegisterTradingTokenServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TradingTokenServiceClient) error

RegisterTradingTokenServiceHandlerClient registers the http handlers for service TradingTokenService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TradingTokenServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TradingTokenServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TradingTokenServiceClient" to call the correct interceptors.

func RegisterTradingTokenServiceHandlerFromEndpoint

func RegisterTradingTokenServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterTradingTokenServiceHandlerFromEndpoint is same as RegisterTradingTokenServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterTradingTokenServiceHandlerServer

func RegisterTradingTokenServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TradingTokenServiceServer) error

RegisterTradingTokenServiceHandlerServer registers the http handlers for service TradingTokenService to "mux". UnaryRPC :call TradingTokenServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTradingTokenServiceHandlerFromEndpoint instead.

func RegisterTradingTokenServiceServer

func RegisterTradingTokenServiceServer(s grpc.ServiceRegistrar, srv TradingTokenServiceServer)

func RegisterUserServiceHandler

func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUserServiceHandlerClient

func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error

RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors.

func RegisterUserServiceHandlerFromEndpoint

func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUserServiceHandlerServer

func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error

RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead.

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type APICurrencyDetailReply

type APICurrencyDetailReply struct {
	Code    uint64    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *Currency `protobuf:"bytes,3,opt,name=data,proto3,oneof" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*APICurrencyDetailReply) Descriptor deprecated

func (*APICurrencyDetailReply) Descriptor() ([]byte, []int)

Deprecated: Use APICurrencyDetailReply.ProtoReflect.Descriptor instead.

func (*APICurrencyDetailReply) GetCode

func (x *APICurrencyDetailReply) GetCode() uint64

func (*APICurrencyDetailReply) GetData

func (x *APICurrencyDetailReply) GetData() *Currency

func (*APICurrencyDetailReply) GetMessage

func (x *APICurrencyDetailReply) GetMessage() string

func (*APICurrencyDetailReply) ProtoMessage

func (*APICurrencyDetailReply) ProtoMessage()

func (*APICurrencyDetailReply) ProtoReflect

func (x *APICurrencyDetailReply) ProtoReflect() protoreflect.Message

func (*APICurrencyDetailReply) Reset

func (x *APICurrencyDetailReply) Reset()

func (*APICurrencyDetailReply) String

func (x *APICurrencyDetailReply) String() string

func (*APICurrencyDetailReply) Validate

func (m *APICurrencyDetailReply) Validate() error

Validate checks the field values on APICurrencyDetailReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*APICurrencyDetailReply) ValidateAll

func (m *APICurrencyDetailReply) ValidateAll() error

ValidateAll checks the field values on APICurrencyDetailReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in APICurrencyDetailReplyMultiError, or nil if none found.

type APICurrencyDetailReplyMultiError

type APICurrencyDetailReplyMultiError []error

APICurrencyDetailReplyMultiError is an error wrapping multiple validation errors returned by APICurrencyDetailReply.ValidateAll() if the designated constraints aren't met.

func (APICurrencyDetailReplyMultiError) AllErrors

func (m APICurrencyDetailReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (APICurrencyDetailReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type APICurrencyDetailReplyValidationError

type APICurrencyDetailReplyValidationError struct {
	// contains filtered or unexported fields
}

APICurrencyDetailReplyValidationError is the validation error returned by APICurrencyDetailReply.Validate if the designated constraints aren't met.

func (APICurrencyDetailReplyValidationError) Cause

Cause function returns cause value.

func (APICurrencyDetailReplyValidationError) Error

Error satisfies the builtin error interface

func (APICurrencyDetailReplyValidationError) ErrorName

ErrorName returns error name.

func (APICurrencyDetailReplyValidationError) Field

Field function returns field value.

func (APICurrencyDetailReplyValidationError) Key

Key function returns key value.

func (APICurrencyDetailReplyValidationError) Reason

Reason function returns reason value.

type APICurrencyDetailRequest

type APICurrencyDetailRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*APICurrencyDetailRequest) Descriptor deprecated

func (*APICurrencyDetailRequest) Descriptor() ([]byte, []int)

Deprecated: Use APICurrencyDetailRequest.ProtoReflect.Descriptor instead.

func (*APICurrencyDetailRequest) GetId

func (x *APICurrencyDetailRequest) GetId() int64

func (*APICurrencyDetailRequest) ProtoMessage

func (*APICurrencyDetailRequest) ProtoMessage()

func (*APICurrencyDetailRequest) ProtoReflect

func (x *APICurrencyDetailRequest) ProtoReflect() protoreflect.Message

func (*APICurrencyDetailRequest) Reset

func (x *APICurrencyDetailRequest) Reset()

func (*APICurrencyDetailRequest) String

func (x *APICurrencyDetailRequest) String() string

func (*APICurrencyDetailRequest) Validate

func (m *APICurrencyDetailRequest) Validate() error

Validate checks the field values on APICurrencyDetailRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*APICurrencyDetailRequest) ValidateAll

func (m *APICurrencyDetailRequest) ValidateAll() error

ValidateAll checks the field values on APICurrencyDetailRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in APICurrencyDetailRequestMultiError, or nil if none found.

type APICurrencyDetailRequestMultiError

type APICurrencyDetailRequestMultiError []error

APICurrencyDetailRequestMultiError is an error wrapping multiple validation errors returned by APICurrencyDetailRequest.ValidateAll() if the designated constraints aren't met.

func (APICurrencyDetailRequestMultiError) AllErrors

func (m APICurrencyDetailRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (APICurrencyDetailRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type APICurrencyDetailRequestValidationError

type APICurrencyDetailRequestValidationError struct {
	// contains filtered or unexported fields
}

APICurrencyDetailRequestValidationError is the validation error returned by APICurrencyDetailRequest.Validate if the designated constraints aren't met.

func (APICurrencyDetailRequestValidationError) Cause

Cause function returns cause value.

func (APICurrencyDetailRequestValidationError) Error

Error satisfies the builtin error interface

func (APICurrencyDetailRequestValidationError) ErrorName

ErrorName returns error name.

func (APICurrencyDetailRequestValidationError) Field

Field function returns field value.

func (APICurrencyDetailRequestValidationError) Key

Key function returns key value.

func (APICurrencyDetailRequestValidationError) Reason

Reason function returns reason value.

type APITradingTokenAddRequest

type APITradingTokenAddRequest struct {
	Exchange   string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
	CurrencyId int64  `protobuf:"varint,2,opt,name=currency_id,json=currencyId,proto3" json:"currency_id,omitempty"`
	// contains filtered or unexported fields
}

func (*APITradingTokenAddRequest) Descriptor deprecated

func (*APITradingTokenAddRequest) Descriptor() ([]byte, []int)

Deprecated: Use APITradingTokenAddRequest.ProtoReflect.Descriptor instead.

func (*APITradingTokenAddRequest) GetCurrencyId

func (x *APITradingTokenAddRequest) GetCurrencyId() int64

func (*APITradingTokenAddRequest) GetExchange

func (x *APITradingTokenAddRequest) GetExchange() string

func (*APITradingTokenAddRequest) ProtoMessage

func (*APITradingTokenAddRequest) ProtoMessage()

func (*APITradingTokenAddRequest) ProtoReflect

func (*APITradingTokenAddRequest) Reset

func (x *APITradingTokenAddRequest) Reset()

func (*APITradingTokenAddRequest) String

func (x *APITradingTokenAddRequest) String() string

func (*APITradingTokenAddRequest) Validate

func (m *APITradingTokenAddRequest) Validate() error

Validate checks the field values on APITradingTokenAddRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*APITradingTokenAddRequest) ValidateAll

func (m *APITradingTokenAddRequest) ValidateAll() error

ValidateAll checks the field values on APITradingTokenAddRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in APITradingTokenAddRequestMultiError, or nil if none found.

type APITradingTokenAddRequestMultiError

type APITradingTokenAddRequestMultiError []error

APITradingTokenAddRequestMultiError is an error wrapping multiple validation errors returned by APITradingTokenAddRequest.ValidateAll() if the designated constraints aren't met.

func (APITradingTokenAddRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (APITradingTokenAddRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type APITradingTokenAddRequestValidationError

type APITradingTokenAddRequestValidationError struct {
	// contains filtered or unexported fields
}

APITradingTokenAddRequestValidationError is the validation error returned by APITradingTokenAddRequest.Validate if the designated constraints aren't met.

func (APITradingTokenAddRequestValidationError) Cause

Cause function returns cause value.

func (APITradingTokenAddRequestValidationError) Error

Error satisfies the builtin error interface

func (APITradingTokenAddRequestValidationError) ErrorName

ErrorName returns error name.

func (APITradingTokenAddRequestValidationError) Field

Field function returns field value.

func (APITradingTokenAddRequestValidationError) Key

Key function returns key value.

func (APITradingTokenAddRequestValidationError) Reason

Reason function returns reason value.

type APITradingTokenUpdateRequest

type APITradingTokenUpdateRequest struct {
	Id          int64              `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId      int64              `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	TicketTopic string             `protobuf:"bytes,3,opt,name=ticket_topic,json=ticketTopic,proto3" json:"ticket_topic,omitempty"`
	OrderTopic  string             `protobuf:"bytes,4,opt,name=order_topic,json=orderTopic,proto3" json:"order_topic,omitempty"`
	Enable      bool               `protobuf:"varint,5,opt,name=enable,proto3" json:"enable,omitempty"`
	BuyEnable   bool               `protobuf:"varint,6,opt,name=buy_enable,json=buyEnable,proto3" json:"buy_enable,omitempty"`
	SellEnable  bool               `protobuf:"varint,7,opt,name=sell_enable,json=sellEnable,proto3" json:"sell_enable,omitempty"`
	Exchange    string             `protobuf:"bytes,8,opt,name=exchange,proto3" json:"exchange,omitempty"`
	Base        string             `protobuf:"bytes,9,opt,name=base,proto3" json:"base,omitempty"`
	Quote       string             `protobuf:"bytes,10,opt,name=quote,proto3" json:"quote,omitempty"`
	Score       *int64             `protobuf:"varint,11,opt,name=score,proto3,oneof" json:"score,omitempty"`
	UpdatedAt   *datetime.DateTime `protobuf:"bytes,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*APITradingTokenUpdateRequest) Descriptor deprecated

func (*APITradingTokenUpdateRequest) Descriptor() ([]byte, []int)

Deprecated: Use APITradingTokenUpdateRequest.ProtoReflect.Descriptor instead.

func (*APITradingTokenUpdateRequest) GetBase

func (x *APITradingTokenUpdateRequest) GetBase() string

func (*APITradingTokenUpdateRequest) GetBuyEnable

func (x *APITradingTokenUpdateRequest) GetBuyEnable() bool

func (*APITradingTokenUpdateRequest) GetEnable

func (x *APITradingTokenUpdateRequest) GetEnable() bool

func (*APITradingTokenUpdateRequest) GetExchange

func (x *APITradingTokenUpdateRequest) GetExchange() string

func (*APITradingTokenUpdateRequest) GetId

func (*APITradingTokenUpdateRequest) GetOrderTopic

func (x *APITradingTokenUpdateRequest) GetOrderTopic() string

func (*APITradingTokenUpdateRequest) GetQuote

func (x *APITradingTokenUpdateRequest) GetQuote() string

func (*APITradingTokenUpdateRequest) GetScore

func (x *APITradingTokenUpdateRequest) GetScore() int64

func (*APITradingTokenUpdateRequest) GetSellEnable

func (x *APITradingTokenUpdateRequest) GetSellEnable() bool

func (*APITradingTokenUpdateRequest) GetTicketTopic

func (x *APITradingTokenUpdateRequest) GetTicketTopic() string

func (*APITradingTokenUpdateRequest) GetUpdatedAt

func (x *APITradingTokenUpdateRequest) GetUpdatedAt() *datetime.DateTime

func (*APITradingTokenUpdateRequest) GetUserId

func (x *APITradingTokenUpdateRequest) GetUserId() int64

func (*APITradingTokenUpdateRequest) ProtoMessage

func (*APITradingTokenUpdateRequest) ProtoMessage()

func (*APITradingTokenUpdateRequest) ProtoReflect

func (*APITradingTokenUpdateRequest) Reset

func (x *APITradingTokenUpdateRequest) Reset()

func (*APITradingTokenUpdateRequest) String

func (*APITradingTokenUpdateRequest) Validate

func (m *APITradingTokenUpdateRequest) Validate() error

Validate checks the field values on APITradingTokenUpdateRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*APITradingTokenUpdateRequest) ValidateAll

func (m *APITradingTokenUpdateRequest) ValidateAll() error

ValidateAll checks the field values on APITradingTokenUpdateRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in APITradingTokenUpdateRequestMultiError, or nil if none found.

type APITradingTokenUpdateRequestMultiError

type APITradingTokenUpdateRequestMultiError []error

APITradingTokenUpdateRequestMultiError is an error wrapping multiple validation errors returned by APITradingTokenUpdateRequest.ValidateAll() if the designated constraints aren't met.

func (APITradingTokenUpdateRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (APITradingTokenUpdateRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type APITradingTokenUpdateRequestValidationError

type APITradingTokenUpdateRequestValidationError struct {
	// contains filtered or unexported fields
}

APITradingTokenUpdateRequestValidationError is the validation error returned by APITradingTokenUpdateRequest.Validate if the designated constraints aren't met.

func (APITradingTokenUpdateRequestValidationError) Cause

Cause function returns cause value.

func (APITradingTokenUpdateRequestValidationError) Error

Error satisfies the builtin error interface

func (APITradingTokenUpdateRequestValidationError) ErrorName

ErrorName returns error name.

func (APITradingTokenUpdateRequestValidationError) Field

Field function returns field value.

func (APITradingTokenUpdateRequestValidationError) Key

Key function returns key value.

func (APITradingTokenUpdateRequestValidationError) Reason

Reason function returns reason value.

type BaseServiceClient

type BaseServiceClient interface {
	// collector get channel detail with channel name then publish message to this channel
	NotFound(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Reply, error)
}

BaseServiceClient is the client API for BaseService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type BaseServiceServer

type BaseServiceServer interface {
	// collector get channel detail with channel name then publish message to this channel
	NotFound(context.Context, *EmptyRequest) (*Reply, error)
	// contains filtered or unexported methods
}

BaseServiceServer is the server API for BaseService service. All implementations must embed UnimplementedBaseServiceServer for forward compatibility

type BatchInsertAndUpdateRequest

type BatchInsertAndUpdateRequest struct {
	Inserted []*Currency `protobuf:"bytes,1,rep,name=inserted,proto3" json:"inserted,omitempty"`
	Updated  []*Currency `protobuf:"bytes,2,rep,name=updated,proto3" json:"updated,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchInsertAndUpdateRequest) Descriptor deprecated

func (*BatchInsertAndUpdateRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchInsertAndUpdateRequest.ProtoReflect.Descriptor instead.

func (*BatchInsertAndUpdateRequest) GetInserted

func (x *BatchInsertAndUpdateRequest) GetInserted() []*Currency

func (*BatchInsertAndUpdateRequest) GetUpdated

func (x *BatchInsertAndUpdateRequest) GetUpdated() []*Currency

func (*BatchInsertAndUpdateRequest) ProtoMessage

func (*BatchInsertAndUpdateRequest) ProtoMessage()

func (*BatchInsertAndUpdateRequest) ProtoReflect

func (*BatchInsertAndUpdateRequest) Reset

func (x *BatchInsertAndUpdateRequest) Reset()

func (*BatchInsertAndUpdateRequest) String

func (x *BatchInsertAndUpdateRequest) String() string

func (*BatchInsertAndUpdateRequest) Validate

func (m *BatchInsertAndUpdateRequest) Validate() error

Validate checks the field values on BatchInsertAndUpdateRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*BatchInsertAndUpdateRequest) ValidateAll

func (m *BatchInsertAndUpdateRequest) ValidateAll() error

ValidateAll checks the field values on BatchInsertAndUpdateRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BatchInsertAndUpdateRequestMultiError, or nil if none found.

type BatchInsertAndUpdateRequestMultiError

type BatchInsertAndUpdateRequestMultiError []error

BatchInsertAndUpdateRequestMultiError is an error wrapping multiple validation errors returned by BatchInsertAndUpdateRequest.ValidateAll() if the designated constraints aren't met.

func (BatchInsertAndUpdateRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (BatchInsertAndUpdateRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type BatchInsertAndUpdateRequestValidationError

type BatchInsertAndUpdateRequestValidationError struct {
	// contains filtered or unexported fields
}

BatchInsertAndUpdateRequestValidationError is the validation error returned by BatchInsertAndUpdateRequest.Validate if the designated constraints aren't met.

func (BatchInsertAndUpdateRequestValidationError) Cause

Cause function returns cause value.

func (BatchInsertAndUpdateRequestValidationError) Error

Error satisfies the builtin error interface

func (BatchInsertAndUpdateRequestValidationError) ErrorName

ErrorName returns error name.

func (BatchInsertAndUpdateRequestValidationError) Field

Field function returns field value.

func (BatchInsertAndUpdateRequestValidationError) Key

Key function returns key value.

func (BatchInsertAndUpdateRequestValidationError) Reason

Reason function returns reason value.

type CollectorGetWithNameReply

type CollectorGetWithNameReply struct {
	Code    uint64         `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string         `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *CollectorInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectorGetWithNameReply) Descriptor deprecated

func (*CollectorGetWithNameReply) Descriptor() ([]byte, []int)

Deprecated: Use CollectorGetWithNameReply.ProtoReflect.Descriptor instead.

func (*CollectorGetWithNameReply) GetCode

func (x *CollectorGetWithNameReply) GetCode() uint64

func (*CollectorGetWithNameReply) GetData

func (*CollectorGetWithNameReply) GetMessage

func (x *CollectorGetWithNameReply) GetMessage() string

func (*CollectorGetWithNameReply) ProtoMessage

func (*CollectorGetWithNameReply) ProtoMessage()

func (*CollectorGetWithNameReply) ProtoReflect

func (*CollectorGetWithNameReply) Reset

func (x *CollectorGetWithNameReply) Reset()

func (*CollectorGetWithNameReply) String

func (x *CollectorGetWithNameReply) String() string

func (*CollectorGetWithNameReply) Validate

func (m *CollectorGetWithNameReply) Validate() error

Validate checks the field values on CollectorGetWithNameReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CollectorGetWithNameReply) ValidateAll

func (m *CollectorGetWithNameReply) ValidateAll() error

ValidateAll checks the field values on CollectorGetWithNameReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CollectorGetWithNameReplyMultiError, or nil if none found.

type CollectorGetWithNameReplyMultiError

type CollectorGetWithNameReplyMultiError []error

CollectorGetWithNameReplyMultiError is an error wrapping multiple validation errors returned by CollectorGetWithNameReply.ValidateAll() if the designated constraints aren't met.

func (CollectorGetWithNameReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CollectorGetWithNameReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CollectorGetWithNameReplyValidationError

type CollectorGetWithNameReplyValidationError struct {
	// contains filtered or unexported fields
}

CollectorGetWithNameReplyValidationError is the validation error returned by CollectorGetWithNameReply.Validate if the designated constraints aren't met.

func (CollectorGetWithNameReplyValidationError) Cause

Cause function returns cause value.

func (CollectorGetWithNameReplyValidationError) Error

Error satisfies the builtin error interface

func (CollectorGetWithNameReplyValidationError) ErrorName

ErrorName returns error name.

func (CollectorGetWithNameReplyValidationError) Field

Field function returns field value.

func (CollectorGetWithNameReplyValidationError) Key

Key function returns key value.

func (CollectorGetWithNameReplyValidationError) Reason

Reason function returns reason value.

type CollectorGetWithNameRequest

type CollectorGetWithNameRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectorGetWithNameRequest) Descriptor deprecated

func (*CollectorGetWithNameRequest) Descriptor() ([]byte, []int)

Deprecated: Use CollectorGetWithNameRequest.ProtoReflect.Descriptor instead.

func (*CollectorGetWithNameRequest) GetName

func (x *CollectorGetWithNameRequest) GetName() string

func (*CollectorGetWithNameRequest) ProtoMessage

func (*CollectorGetWithNameRequest) ProtoMessage()

func (*CollectorGetWithNameRequest) ProtoReflect

func (*CollectorGetWithNameRequest) Reset

func (x *CollectorGetWithNameRequest) Reset()

func (*CollectorGetWithNameRequest) String

func (x *CollectorGetWithNameRequest) String() string

func (*CollectorGetWithNameRequest) Validate

func (m *CollectorGetWithNameRequest) Validate() error

Validate checks the field values on CollectorGetWithNameRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CollectorGetWithNameRequest) ValidateAll

func (m *CollectorGetWithNameRequest) ValidateAll() error

ValidateAll checks the field values on CollectorGetWithNameRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CollectorGetWithNameRequestMultiError, or nil if none found.

type CollectorGetWithNameRequestMultiError

type CollectorGetWithNameRequestMultiError []error

CollectorGetWithNameRequestMultiError is an error wrapping multiple validation errors returned by CollectorGetWithNameRequest.ValidateAll() if the designated constraints aren't met.

func (CollectorGetWithNameRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CollectorGetWithNameRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CollectorGetWithNameRequestValidationError

type CollectorGetWithNameRequestValidationError struct {
	// contains filtered or unexported fields
}

CollectorGetWithNameRequestValidationError is the validation error returned by CollectorGetWithNameRequest.Validate if the designated constraints aren't met.

func (CollectorGetWithNameRequestValidationError) Cause

Cause function returns cause value.

func (CollectorGetWithNameRequestValidationError) Error

Error satisfies the builtin error interface

func (CollectorGetWithNameRequestValidationError) ErrorName

ErrorName returns error name.

func (CollectorGetWithNameRequestValidationError) Field

Field function returns field value.

func (CollectorGetWithNameRequestValidationError) Key

Key function returns key value.

func (CollectorGetWithNameRequestValidationError) Reason

Reason function returns reason value.

type CollectorInfo

type CollectorInfo struct {
	Id          int64              `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Exchange    string             `protobuf:"bytes,2,opt,name=exchange,proto3" json:"exchange,omitempty"`
	Host        string             `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"`
	Port        uint32             `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
	Status      uint32             `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`
	RegisterAt  *datetime.DateTime `protobuf:"bytes,6,opt,name=register_at,json=registerAt,proto3" json:"register_at,omitempty"`
	LastLoginAt *datetime.DateTime `protobuf:"bytes,7,opt,name=last_login_at,json=lastLoginAt,proto3" json:"last_login_at,omitempty"`
	CreatedAt   *datetime.DateTime `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   *datetime.DateTime `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectorInfo) Descriptor deprecated

func (*CollectorInfo) Descriptor() ([]byte, []int)

Deprecated: Use CollectorInfo.ProtoReflect.Descriptor instead.

func (*CollectorInfo) GetCreatedAt

func (x *CollectorInfo) GetCreatedAt() *datetime.DateTime

func (*CollectorInfo) GetExchange

func (x *CollectorInfo) GetExchange() string

func (*CollectorInfo) GetHost

func (x *CollectorInfo) GetHost() string

func (*CollectorInfo) GetId

func (x *CollectorInfo) GetId() int64

func (*CollectorInfo) GetLastLoginAt

func (x *CollectorInfo) GetLastLoginAt() *datetime.DateTime

func (*CollectorInfo) GetPort

func (x *CollectorInfo) GetPort() uint32

func (*CollectorInfo) GetRegisterAt

func (x *CollectorInfo) GetRegisterAt() *datetime.DateTime

func (*CollectorInfo) GetStatus

func (x *CollectorInfo) GetStatus() uint32

func (*CollectorInfo) GetUpdatedAt

func (x *CollectorInfo) GetUpdatedAt() *datetime.DateTime

func (*CollectorInfo) ProtoMessage

func (*CollectorInfo) ProtoMessage()

func (*CollectorInfo) ProtoReflect

func (x *CollectorInfo) ProtoReflect() protoreflect.Message

func (*CollectorInfo) Reset

func (x *CollectorInfo) Reset()

func (*CollectorInfo) String

func (x *CollectorInfo) String() string

func (*CollectorInfo) Validate

func (m *CollectorInfo) Validate() error

Validate checks the field values on CollectorInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CollectorInfo) ValidateAll

func (m *CollectorInfo) ValidateAll() error

ValidateAll checks the field values on CollectorInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CollectorInfoMultiError, or nil if none found.

type CollectorInfoMultiError

type CollectorInfoMultiError []error

CollectorInfoMultiError is an error wrapping multiple validation errors returned by CollectorInfo.ValidateAll() if the designated constraints aren't met.

func (CollectorInfoMultiError) AllErrors

func (m CollectorInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CollectorInfoMultiError) Error

func (m CollectorInfoMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CollectorInfoValidationError

type CollectorInfoValidationError struct {
	// contains filtered or unexported fields
}

CollectorInfoValidationError is the validation error returned by CollectorInfo.Validate if the designated constraints aren't met.

func (CollectorInfoValidationError) Cause

Cause function returns cause value.

func (CollectorInfoValidationError) Error

Error satisfies the builtin error interface

func (CollectorInfoValidationError) ErrorName

func (e CollectorInfoValidationError) ErrorName() string

ErrorName returns error name.

func (CollectorInfoValidationError) Field

Field function returns field value.

func (CollectorInfoValidationError) Key

Key function returns key value.

func (CollectorInfoValidationError) Reason

Reason function returns reason value.

type CollectorReply

type CollectorReply struct {
	Code    uint64     `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3,oneof" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectorReply) Descriptor deprecated

func (*CollectorReply) Descriptor() ([]byte, []int)

Deprecated: Use CollectorReply.ProtoReflect.Descriptor instead.

func (*CollectorReply) GetCode

func (x *CollectorReply) GetCode() uint64

func (*CollectorReply) GetData

func (x *CollectorReply) GetData() *anypb.Any

func (*CollectorReply) GetMessage

func (x *CollectorReply) GetMessage() string

func (*CollectorReply) ProtoMessage

func (*CollectorReply) ProtoMessage()

func (*CollectorReply) ProtoReflect

func (x *CollectorReply) ProtoReflect() protoreflect.Message

func (*CollectorReply) Reset

func (x *CollectorReply) Reset()

func (*CollectorReply) String

func (x *CollectorReply) String() string

func (*CollectorReply) Validate

func (m *CollectorReply) Validate() error

Validate checks the field values on CollectorReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CollectorReply) ValidateAll

func (m *CollectorReply) ValidateAll() error

ValidateAll checks the field values on CollectorReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CollectorReplyMultiError, or nil if none found.

type CollectorReplyMultiError

type CollectorReplyMultiError []error

CollectorReplyMultiError is an error wrapping multiple validation errors returned by CollectorReply.ValidateAll() if the designated constraints aren't met.

func (CollectorReplyMultiError) AllErrors

func (m CollectorReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CollectorReplyMultiError) Error

func (m CollectorReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CollectorReplyValidationError

type CollectorReplyValidationError struct {
	// contains filtered or unexported fields
}

CollectorReplyValidationError is the validation error returned by CollectorReply.Validate if the designated constraints aren't met.

func (CollectorReplyValidationError) Cause

Cause function returns cause value.

func (CollectorReplyValidationError) Error

Error satisfies the builtin error interface

func (CollectorReplyValidationError) ErrorName

func (e CollectorReplyValidationError) ErrorName() string

ErrorName returns error name.

func (CollectorReplyValidationError) Field

Field function returns field value.

func (CollectorReplyValidationError) Key

Key function returns key value.

func (CollectorReplyValidationError) Reason

Reason function returns reason value.

type CollectorRequest

type CollectorRequest struct {
	Exchange string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
	Host     string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	Port     uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectorRequest) Descriptor deprecated

func (*CollectorRequest) Descriptor() ([]byte, []int)

Deprecated: Use CollectorRequest.ProtoReflect.Descriptor instead.

func (*CollectorRequest) GetExchange

func (x *CollectorRequest) GetExchange() string

func (*CollectorRequest) GetHost

func (x *CollectorRequest) GetHost() string

func (*CollectorRequest) GetPort

func (x *CollectorRequest) GetPort() uint32

func (*CollectorRequest) ProtoMessage

func (*CollectorRequest) ProtoMessage()

func (*CollectorRequest) ProtoReflect

func (x *CollectorRequest) ProtoReflect() protoreflect.Message

func (*CollectorRequest) Reset

func (x *CollectorRequest) Reset()

func (*CollectorRequest) String

func (x *CollectorRequest) String() string

func (*CollectorRequest) Validate

func (m *CollectorRequest) Validate() error

Validate checks the field values on CollectorRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CollectorRequest) ValidateAll

func (m *CollectorRequest) ValidateAll() error

ValidateAll checks the field values on CollectorRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CollectorRequestMultiError, or nil if none found.

type CollectorRequestMultiError

type CollectorRequestMultiError []error

CollectorRequestMultiError is an error wrapping multiple validation errors returned by CollectorRequest.ValidateAll() if the designated constraints aren't met.

func (CollectorRequestMultiError) AllErrors

func (m CollectorRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CollectorRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CollectorRequestValidationError

type CollectorRequestValidationError struct {
	// contains filtered or unexported fields
}

CollectorRequestValidationError is the validation error returned by CollectorRequest.Validate if the designated constraints aren't met.

func (CollectorRequestValidationError) Cause

Cause function returns cause value.

func (CollectorRequestValidationError) Error

Error satisfies the builtin error interface

func (CollectorRequestValidationError) ErrorName

ErrorName returns error name.

func (CollectorRequestValidationError) Field

Field function returns field value.

func (CollectorRequestValidationError) Key

Key function returns key value.

func (CollectorRequestValidationError) Reason

Reason function returns reason value.

type CollectorServiceClient

type CollectorServiceClient interface {
	// grider service
	Register(ctx context.Context, in *CollectorRequest, opts ...grpc.CallOption) (*CollectorReply, error)
	// grider service
	Login(ctx context.Context, in *CollectorRequest, opts ...grpc.CallOption) (*CollectorReply, error)
	// grider service
	Logout(ctx context.Context, in *CollectorRequest, opts ...grpc.CallOption) (*CollectorReply, error)
	// grider service
	GetWithName(ctx context.Context, in *CollectorGetWithNameRequest, opts ...grpc.CallOption) (*CollectorGetWithNameReply, error)
}

CollectorServiceClient is the client API for CollectorService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type CollectorServiceServer

type CollectorServiceServer interface {
	// grider service
	Register(context.Context, *CollectorRequest) (*CollectorReply, error)
	// grider service
	Login(context.Context, *CollectorRequest) (*CollectorReply, error)
	// grider service
	Logout(context.Context, *CollectorRequest) (*CollectorReply, error)
	// grider service
	GetWithName(context.Context, *CollectorGetWithNameRequest) (*CollectorGetWithNameReply, error)
	// contains filtered or unexported methods
}

CollectorServiceServer is the server API for CollectorService service. All implementations must embed UnimplementedCollectorServiceServer for forward compatibility

type CollectorTradingTokenInfo

type CollectorTradingTokenInfo struct {
	Exchange    string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
	Base        string `protobuf:"bytes,2,opt,name=base,proto3" json:"base,omitempty"`
	Quote       string `protobuf:"bytes,3,opt,name=quote,proto3" json:"quote,omitempty"`
	Count       int64  `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	TicketTopic string `protobuf:"bytes,5,opt,name=ticket_topic,json=ticketTopic,proto3" json:"ticket_topic,omitempty"`
	OrderTopic  string `protobuf:"bytes,6,opt,name=order_topic,json=orderTopic,proto3" json:"order_topic,omitempty"`
	ExtraInfo   []byte `protobuf:"bytes,7,opt,name=extra_info,json=extraInfo,proto3,oneof" json:"extra_info,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectorTradingTokenInfo) Descriptor deprecated

func (*CollectorTradingTokenInfo) Descriptor() ([]byte, []int)

Deprecated: Use CollectorTradingTokenInfo.ProtoReflect.Descriptor instead.

func (*CollectorTradingTokenInfo) GetBase

func (x *CollectorTradingTokenInfo) GetBase() string

func (*CollectorTradingTokenInfo) GetCount

func (x *CollectorTradingTokenInfo) GetCount() int64

func (*CollectorTradingTokenInfo) GetExchange

func (x *CollectorTradingTokenInfo) GetExchange() string

func (*CollectorTradingTokenInfo) GetExtraInfo

func (x *CollectorTradingTokenInfo) GetExtraInfo() []byte

func (*CollectorTradingTokenInfo) GetOrderTopic

func (x *CollectorTradingTokenInfo) GetOrderTopic() string

func (*CollectorTradingTokenInfo) GetQuote

func (x *CollectorTradingTokenInfo) GetQuote() string

func (*CollectorTradingTokenInfo) GetTicketTopic

func (x *CollectorTradingTokenInfo) GetTicketTopic() string

func (*CollectorTradingTokenInfo) ProtoMessage

func (*CollectorTradingTokenInfo) ProtoMessage()

func (*CollectorTradingTokenInfo) ProtoReflect

func (*CollectorTradingTokenInfo) Reset

func (x *CollectorTradingTokenInfo) Reset()

func (*CollectorTradingTokenInfo) String

func (x *CollectorTradingTokenInfo) String() string

func (*CollectorTradingTokenInfo) Validate

func (m *CollectorTradingTokenInfo) Validate() error

Validate checks the field values on CollectorTradingTokenInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CollectorTradingTokenInfo) ValidateAll

func (m *CollectorTradingTokenInfo) ValidateAll() error

ValidateAll checks the field values on CollectorTradingTokenInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CollectorTradingTokenInfoMultiError, or nil if none found.

type CollectorTradingTokenInfoMultiError

type CollectorTradingTokenInfoMultiError []error

CollectorTradingTokenInfoMultiError is an error wrapping multiple validation errors returned by CollectorTradingTokenInfo.ValidateAll() if the designated constraints aren't met.

func (CollectorTradingTokenInfoMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CollectorTradingTokenInfoMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CollectorTradingTokenInfoValidationError

type CollectorTradingTokenInfoValidationError struct {
	// contains filtered or unexported fields
}

CollectorTradingTokenInfoValidationError is the validation error returned by CollectorTradingTokenInfo.Validate if the designated constraints aren't met.

func (CollectorTradingTokenInfoValidationError) Cause

Cause function returns cause value.

func (CollectorTradingTokenInfoValidationError) Error

Error satisfies the builtin error interface

func (CollectorTradingTokenInfoValidationError) ErrorName

ErrorName returns error name.

func (CollectorTradingTokenInfoValidationError) Field

Field function returns field value.

func (CollectorTradingTokenInfoValidationError) Key

Key function returns key value.

func (CollectorTradingTokenInfoValidationError) Reason

Reason function returns reason value.

type CreateOrderReply

type CreateOrderReply struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                                    // 交易所返回的订单id
	CreateTime string `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`  // 交易成功时间
	Status     string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`                            // 订单状态
	Base       string `protobuf:"bytes,4,opt,name=base,proto3" json:"base,omitempty"`                                // 交易币种
	Quote      string `protobuf:"bytes,5,opt,name=quote,proto3" json:"quote,omitempty"`                              // 计价币种
	Side       string `protobuf:"bytes,6,opt,name=side,proto3" json:"side,omitempty"`                                // 买/卖
	Amount     string `protobuf:"bytes,7,opt,name=amount,proto3" json:"amount,omitempty"`                            // 成交量
	Price      string `protobuf:"bytes,8,opt,name=price,proto3" json:"price,omitempty"`                              // 成交价格
	Fee        string `protobuf:"bytes,9,opt,name=fee,proto3" json:"fee,omitempty"`                                  // 佣金
	CashAmount string `protobuf:"bytes,10,opt,name=cash_amount,json=cashAmount,proto3" json:"cash_amount,omitempty"` // 实际得到/花费的金额:成交量*成交价-佣金
	Data       []byte `protobuf:"bytes,11,opt,name=data,proto3" json:"data,omitempty"`                               // 交易所返回的原始数据
	// contains filtered or unexported fields
}

func (*CreateOrderReply) Descriptor deprecated

func (*CreateOrderReply) Descriptor() ([]byte, []int)

Deprecated: Use CreateOrderReply.ProtoReflect.Descriptor instead.

func (*CreateOrderReply) GetAmount

func (x *CreateOrderReply) GetAmount() string

func (*CreateOrderReply) GetBase

func (x *CreateOrderReply) GetBase() string

func (*CreateOrderReply) GetCashAmount

func (x *CreateOrderReply) GetCashAmount() string

func (*CreateOrderReply) GetCreateTime

func (x *CreateOrderReply) GetCreateTime() string

func (*CreateOrderReply) GetData

func (x *CreateOrderReply) GetData() []byte

func (*CreateOrderReply) GetFee

func (x *CreateOrderReply) GetFee() string

func (*CreateOrderReply) GetId

func (x *CreateOrderReply) GetId() string

func (*CreateOrderReply) GetPrice

func (x *CreateOrderReply) GetPrice() string

func (*CreateOrderReply) GetQuote

func (x *CreateOrderReply) GetQuote() string

func (*CreateOrderReply) GetSide

func (x *CreateOrderReply) GetSide() string

func (*CreateOrderReply) GetStatus

func (x *CreateOrderReply) GetStatus() string

func (*CreateOrderReply) ProtoMessage

func (*CreateOrderReply) ProtoMessage()

func (*CreateOrderReply) ProtoReflect

func (x *CreateOrderReply) ProtoReflect() protoreflect.Message

func (*CreateOrderReply) Reset

func (x *CreateOrderReply) Reset()

func (*CreateOrderReply) String

func (x *CreateOrderReply) String() string

func (*CreateOrderReply) Validate

func (m *CreateOrderReply) Validate() error

Validate checks the field values on CreateOrderReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateOrderReply) ValidateAll

func (m *CreateOrderReply) ValidateAll() error

ValidateAll checks the field values on CreateOrderReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateOrderReplyMultiError, or nil if none found.

type CreateOrderReplyMultiError

type CreateOrderReplyMultiError []error

CreateOrderReplyMultiError is an error wrapping multiple validation errors returned by CreateOrderReply.ValidateAll() if the designated constraints aren't met.

func (CreateOrderReplyMultiError) AllErrors

func (m CreateOrderReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateOrderReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateOrderReplyValidationError

type CreateOrderReplyValidationError struct {
	// contains filtered or unexported fields
}

CreateOrderReplyValidationError is the validation error returned by CreateOrderReply.Validate if the designated constraints aren't met.

func (CreateOrderReplyValidationError) Cause

Cause function returns cause value.

func (CreateOrderReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateOrderReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateOrderReplyValidationError) Field

Field function returns field value.

func (CreateOrderReplyValidationError) Key

Key function returns key value.

func (CreateOrderReplyValidationError) Reason

Reason function returns reason value.

type CreateOrderRequest

type CreateOrderRequest struct {
	Exchange string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`              // 交易所
	Base     string `protobuf:"bytes,2,opt,name=base,proto3" json:"base,omitempty"`                      // 交易token
	Quote    string `protobuf:"bytes,3,opt,name=quote,proto3" json:"quote,omitempty"`                    // 计价币种
	Amount   string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`                  // 数量
	Price    string `protobuf:"bytes,5,opt,name=price,proto3" json:"price,omitempty"`                    // 价格
	Side     string `protobuf:"bytes,6,opt,name=side,proto3" json:"side,omitempty"`                      // 买,卖?
	OrderId  string `protobuf:"bytes,7,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` // 关联id
	Other    []byte `protobuf:"bytes,8,opt,name=other,proto3" json:"other,omitempty"`                    // 附加信息:因交易所有所区别而导致的传参数不一致的情况
	// contains filtered or unexported fields
}

func (*CreateOrderRequest) Descriptor deprecated

func (*CreateOrderRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateOrderRequest.ProtoReflect.Descriptor instead.

func (*CreateOrderRequest) GetAmount

func (x *CreateOrderRequest) GetAmount() string

func (*CreateOrderRequest) GetBase

func (x *CreateOrderRequest) GetBase() string

func (*CreateOrderRequest) GetExchange

func (x *CreateOrderRequest) GetExchange() string

func (*CreateOrderRequest) GetOrderId

func (x *CreateOrderRequest) GetOrderId() string

func (*CreateOrderRequest) GetOther

func (x *CreateOrderRequest) GetOther() []byte

func (*CreateOrderRequest) GetPrice

func (x *CreateOrderRequest) GetPrice() string

func (*CreateOrderRequest) GetQuote

func (x *CreateOrderRequest) GetQuote() string

func (*CreateOrderRequest) GetSide

func (x *CreateOrderRequest) GetSide() string

func (*CreateOrderRequest) ProtoMessage

func (*CreateOrderRequest) ProtoMessage()

func (*CreateOrderRequest) ProtoReflect

func (x *CreateOrderRequest) ProtoReflect() protoreflect.Message

func (*CreateOrderRequest) Reset

func (x *CreateOrderRequest) Reset()

func (*CreateOrderRequest) String

func (x *CreateOrderRequest) String() string

func (*CreateOrderRequest) Validate

func (m *CreateOrderRequest) Validate() error

Validate checks the field values on CreateOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateOrderRequest) ValidateAll

func (m *CreateOrderRequest) ValidateAll() error

ValidateAll checks the field values on CreateOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateOrderRequestMultiError, or nil if none found.

type CreateOrderRequestMultiError

type CreateOrderRequestMultiError []error

CreateOrderRequestMultiError is an error wrapping multiple validation errors returned by CreateOrderRequest.ValidateAll() if the designated constraints aren't met.

func (CreateOrderRequestMultiError) AllErrors

func (m CreateOrderRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateOrderRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateOrderRequestValidationError

type CreateOrderRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateOrderRequestValidationError is the validation error returned by CreateOrderRequest.Validate if the designated constraints aren't met.

func (CreateOrderRequestValidationError) Cause

Cause function returns cause value.

func (CreateOrderRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateOrderRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateOrderRequestValidationError) Field

Field function returns field value.

func (CreateOrderRequestValidationError) Key

Key function returns key value.

func (CreateOrderRequestValidationError) Reason

Reason function returns reason value.

type Currency

type Currency struct {
	Id              int64              `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Exchange        string             `protobuf:"bytes,2,opt,name=exchange,proto3" json:"exchange,omitempty"`
	Base            string             `protobuf:"bytes,3,opt,name=base,proto3" json:"base,omitempty"`
	Quote           string             `protobuf:"bytes,4,opt,name=quote,proto3" json:"quote,omitempty"`
	Name            string             `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	Symbol          string             `protobuf:"bytes,6,opt,name=symbol,proto3" json:"symbol,omitempty"`
	ExtraInfo       []byte             `protobuf:"bytes,7,opt,name=extra_info,json=extraInfo,proto3,oneof" json:"extra_info,omitempty"`
	Status          CurrencyStatus     `protobuf:"varint,8,opt,name=status,proto3,enum=protobuf.CurrencyStatus" json:"status,omitempty"`
	Taker           *string            `protobuf:"bytes,9,opt,name=taker,proto3,oneof" json:"taker,omitempty"`
	Maker           *string            `protobuf:"bytes,10,opt,name=maker,proto3,oneof" json:"maker,omitempty"`
	PricePrecision  *int32             `protobuf:"varint,11,opt,name=price_precision,json=pricePrecision,proto3,oneof" json:"price_precision,omitempty"`
	AmountPrecision *int32             `protobuf:"varint,12,opt,name=amount_precision,json=amountPrecision,proto3,oneof" json:"amount_precision,omitempty"`
	ValuePrecision  *int32             `protobuf:"varint,13,opt,name=value_precision,json=valuePrecision,proto3,oneof" json:"value_precision,omitempty"`
	Raw             []byte             `protobuf:"bytes,14,opt,name=raw,proto3" json:"raw,omitempty"`
	MinBaseAmount   *int32             `protobuf:"varint,15,opt,name=min_base_amount,json=minBaseAmount,proto3,oneof" json:"min_base_amount,omitempty"`
	MinQuoteAmount  *int32             `protobuf:"varint,16,opt,name=min_quote_amount,json=minQuoteAmount,proto3,oneof" json:"min_quote_amount,omitempty"`
	CreatedAt       *datetime.DateTime `protobuf:"bytes,17,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt       *datetime.DateTime `protobuf:"bytes,18,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Currency) Descriptor deprecated

func (*Currency) Descriptor() ([]byte, []int)

Deprecated: Use Currency.ProtoReflect.Descriptor instead.

func (*Currency) GetAmountPrecision

func (x *Currency) GetAmountPrecision() int32

func (*Currency) GetBase

func (x *Currency) GetBase() string

func (*Currency) GetCreatedAt

func (x *Currency) GetCreatedAt() *datetime.DateTime

func (*Currency) GetExchange

func (x *Currency) GetExchange() string

func (*Currency) GetExtraInfo

func (x *Currency) GetExtraInfo() []byte

func (*Currency) GetId

func (x *Currency) GetId() int64

func (*Currency) GetMaker

func (x *Currency) GetMaker() string

func (*Currency) GetMinBaseAmount

func (x *Currency) GetMinBaseAmount() int32

func (*Currency) GetMinQuoteAmount

func (x *Currency) GetMinQuoteAmount() int32

func (*Currency) GetName

func (x *Currency) GetName() string

func (*Currency) GetPricePrecision

func (x *Currency) GetPricePrecision() int32

func (*Currency) GetQuote

func (x *Currency) GetQuote() string

func (*Currency) GetRaw

func (x *Currency) GetRaw() []byte

func (*Currency) GetStatus

func (x *Currency) GetStatus() CurrencyStatus

func (*Currency) GetSymbol

func (x *Currency) GetSymbol() string

func (*Currency) GetTaker

func (x *Currency) GetTaker() string

func (*Currency) GetUpdatedAt

func (x *Currency) GetUpdatedAt() *datetime.DateTime

func (*Currency) GetValuePrecision

func (x *Currency) GetValuePrecision() int32

func (*Currency) ProtoMessage

func (*Currency) ProtoMessage()

func (*Currency) ProtoReflect

func (x *Currency) ProtoReflect() protoreflect.Message

func (*Currency) Reset

func (x *Currency) Reset()

func (*Currency) String

func (x *Currency) String() string

func (*Currency) Validate

func (m *Currency) Validate() error

Validate checks the field values on Currency with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Currency) ValidateAll

func (m *Currency) ValidateAll() error

ValidateAll checks the field values on Currency with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CurrencyMultiError, or nil if none found.

type CurrencyListReply

type CurrencyListReply struct {
	Code     uint64      `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message  string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data     []*Currency `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	Total    *uint64     `protobuf:"varint,4,opt,name=total,proto3,oneof" json:"total,omitempty"`
	Page     *uint64     `protobuf:"varint,5,opt,name=page,proto3,oneof" json:"page,omitempty"`
	PageSize *uint64     `protobuf:"varint,6,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

func (*CurrencyListReply) Descriptor deprecated

func (*CurrencyListReply) Descriptor() ([]byte, []int)

Deprecated: Use CurrencyListReply.ProtoReflect.Descriptor instead.

func (*CurrencyListReply) GetCode

func (x *CurrencyListReply) GetCode() uint64

func (*CurrencyListReply) GetData

func (x *CurrencyListReply) GetData() []*Currency

func (*CurrencyListReply) GetMessage

func (x *CurrencyListReply) GetMessage() string

func (*CurrencyListReply) GetPage

func (x *CurrencyListReply) GetPage() uint64

func (*CurrencyListReply) GetPageSize

func (x *CurrencyListReply) GetPageSize() uint64

func (*CurrencyListReply) GetTotal

func (x *CurrencyListReply) GetTotal() uint64

func (*CurrencyListReply) ProtoMessage

func (*CurrencyListReply) ProtoMessage()

func (*CurrencyListReply) ProtoReflect

func (x *CurrencyListReply) ProtoReflect() protoreflect.Message

func (*CurrencyListReply) Reset

func (x *CurrencyListReply) Reset()

func (*CurrencyListReply) String

func (x *CurrencyListReply) String() string

func (*CurrencyListReply) Validate

func (m *CurrencyListReply) Validate() error

Validate checks the field values on CurrencyListReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CurrencyListReply) ValidateAll

func (m *CurrencyListReply) ValidateAll() error

ValidateAll checks the field values on CurrencyListReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CurrencyListReplyMultiError, or nil if none found.

type CurrencyListReplyMultiError

type CurrencyListReplyMultiError []error

CurrencyListReplyMultiError is an error wrapping multiple validation errors returned by CurrencyListReply.ValidateAll() if the designated constraints aren't met.

func (CurrencyListReplyMultiError) AllErrors

func (m CurrencyListReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CurrencyListReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CurrencyListReplyValidationError

type CurrencyListReplyValidationError struct {
	// contains filtered or unexported fields
}

CurrencyListReplyValidationError is the validation error returned by CurrencyListReply.Validate if the designated constraints aren't met.

func (CurrencyListReplyValidationError) Cause

Cause function returns cause value.

func (CurrencyListReplyValidationError) Error

Error satisfies the builtin error interface

func (CurrencyListReplyValidationError) ErrorName

ErrorName returns error name.

func (CurrencyListReplyValidationError) Field

Field function returns field value.

func (CurrencyListReplyValidationError) Key

Key function returns key value.

func (CurrencyListReplyValidationError) Reason

Reason function returns reason value.

type CurrencyListRequest

type CurrencyListRequest struct {
	Page      uint64         `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize  uint64         `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Collector string         `protobuf:"bytes,3,opt,name=collector,proto3" json:"collector,omitempty"`
	Status    CurrencyStatus `protobuf:"varint,4,opt,name=status,proto3,enum=protobuf.CurrencyStatus" json:"status,omitempty"`
	Base      string         `protobuf:"bytes,5,opt,name=base,proto3" json:"base,omitempty"`
	Quote     string         `protobuf:"bytes,6,opt,name=quote,proto3" json:"quote,omitempty"`
	ScoreMin  int64          `protobuf:"varint,7,opt,name=score_min,json=scoreMin,proto3" json:"score_min,omitempty"`
	ScoreMax  int64          `protobuf:"varint,8,opt,name=score_max,json=scoreMax,proto3" json:"score_max,omitempty"`
	// contains filtered or unexported fields
}

func (*CurrencyListRequest) Descriptor deprecated

func (*CurrencyListRequest) Descriptor() ([]byte, []int)

Deprecated: Use CurrencyListRequest.ProtoReflect.Descriptor instead.

func (*CurrencyListRequest) GetBase

func (x *CurrencyListRequest) GetBase() string

func (*CurrencyListRequest) GetCollector

func (x *CurrencyListRequest) GetCollector() string

func (*CurrencyListRequest) GetPage

func (x *CurrencyListRequest) GetPage() uint64

func (*CurrencyListRequest) GetPageSize

func (x *CurrencyListRequest) GetPageSize() uint64

func (*CurrencyListRequest) GetQuote

func (x *CurrencyListRequest) GetQuote() string

func (*CurrencyListRequest) GetScoreMax

func (x *CurrencyListRequest) GetScoreMax() int64

func (*CurrencyListRequest) GetScoreMin

func (x *CurrencyListRequest) GetScoreMin() int64

func (*CurrencyListRequest) GetStatus

func (x *CurrencyListRequest) GetStatus() CurrencyStatus

func (*CurrencyListRequest) ProtoMessage

func (*CurrencyListRequest) ProtoMessage()

func (*CurrencyListRequest) ProtoReflect

func (x *CurrencyListRequest) ProtoReflect() protoreflect.Message

func (*CurrencyListRequest) Reset

func (x *CurrencyListRequest) Reset()

func (*CurrencyListRequest) String

func (x *CurrencyListRequest) String() string

func (*CurrencyListRequest) Validate

func (m *CurrencyListRequest) Validate() error

Validate checks the field values on CurrencyListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CurrencyListRequest) ValidateAll

func (m *CurrencyListRequest) ValidateAll() error

ValidateAll checks the field values on CurrencyListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CurrencyListRequestMultiError, or nil if none found.

type CurrencyListRequestMultiError

type CurrencyListRequestMultiError []error

CurrencyListRequestMultiError is an error wrapping multiple validation errors returned by CurrencyListRequest.ValidateAll() if the designated constraints aren't met.

func (CurrencyListRequestMultiError) AllErrors

func (m CurrencyListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CurrencyListRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CurrencyListRequestValidationError

type CurrencyListRequestValidationError struct {
	// contains filtered or unexported fields
}

CurrencyListRequestValidationError is the validation error returned by CurrencyListRequest.Validate if the designated constraints aren't met.

func (CurrencyListRequestValidationError) Cause

Cause function returns cause value.

func (CurrencyListRequestValidationError) Error

Error satisfies the builtin error interface

func (CurrencyListRequestValidationError) ErrorName

ErrorName returns error name.

func (CurrencyListRequestValidationError) Field

Field function returns field value.

func (CurrencyListRequestValidationError) Key

Key function returns key value.

func (CurrencyListRequestValidationError) Reason

Reason function returns reason value.

type CurrencyMultiError

type CurrencyMultiError []error

CurrencyMultiError is an error wrapping multiple validation errors returned by Currency.ValidateAll() if the designated constraints aren't met.

func (CurrencyMultiError) AllErrors

func (m CurrencyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CurrencyMultiError) Error

func (m CurrencyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CurrencyServiceClient

type CurrencyServiceClient interface {
	// grider rpc insert or update
	BatchInsertOrUpdate(ctx context.Context, in *BatchInsertAndUpdateRequest, opts ...grpc.CallOption) (*Reply, error)
	// grider rpc list for web api and collector
	List(ctx context.Context, in *CurrencyListRequest, opts ...grpc.CallOption) (*CurrencyListReply, error)
	// grider rpc detail for web api
	Detail(ctx context.Context, in *APICurrencyDetailRequest, opts ...grpc.CallOption) (*APICurrencyDetailReply, error)
}

CurrencyServiceClient is the client API for CurrencyService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type CurrencyServiceServer

type CurrencyServiceServer interface {
	// grider rpc insert or update
	BatchInsertOrUpdate(context.Context, *BatchInsertAndUpdateRequest) (*Reply, error)
	// grider rpc list for web api and collector
	List(context.Context, *CurrencyListRequest) (*CurrencyListReply, error)
	// grider rpc detail for web api
	Detail(context.Context, *APICurrencyDetailRequest) (*APICurrencyDetailReply, error)
	// contains filtered or unexported methods
}

CurrencyServiceServer is the server API for CurrencyService service. All implementations must embed UnimplementedCurrencyServiceServer for forward compatibility

type CurrencyStatus

type CurrencyStatus int32
const (
	CurrencyStatus_unknown       CurrencyStatus = 0
	CurrencyStatus_enabled       CurrencyStatus = 1
	CurrencyStatus_disabled      CurrencyStatus = 2
	CurrencyStatus_buy_disabled  CurrencyStatus = 3
	CurrencyStatus_sell_disabled CurrencyStatus = 4
)

func (CurrencyStatus) Descriptor

func (CurrencyStatus) Enum

func (x CurrencyStatus) Enum() *CurrencyStatus

func (CurrencyStatus) EnumDescriptor deprecated

func (CurrencyStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use CurrencyStatus.Descriptor instead.

func (CurrencyStatus) Number

func (CurrencyStatus) String

func (x CurrencyStatus) String() string

func (CurrencyStatus) Type

type CurrencyValidationError

type CurrencyValidationError struct {
	// contains filtered or unexported fields
}

CurrencyValidationError is the validation error returned by Currency.Validate if the designated constraints aren't met.

func (CurrencyValidationError) Cause

func (e CurrencyValidationError) Cause() error

Cause function returns cause value.

func (CurrencyValidationError) Error

func (e CurrencyValidationError) Error() string

Error satisfies the builtin error interface

func (CurrencyValidationError) ErrorName

func (e CurrencyValidationError) ErrorName() string

ErrorName returns error name.

func (CurrencyValidationError) Field

func (e CurrencyValidationError) Field() string

Field function returns field value.

func (CurrencyValidationError) Key

func (e CurrencyValidationError) Key() bool

Key function returns key value.

func (CurrencyValidationError) Reason

func (e CurrencyValidationError) Reason() string

Reason function returns reason value.

type EmptyRequest

type EmptyRequest struct {
	// contains filtered or unexported fields
}

func (*EmptyRequest) Descriptor deprecated

func (*EmptyRequest) Descriptor() ([]byte, []int)

Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.

func (*EmptyRequest) ProtoMessage

func (*EmptyRequest) ProtoMessage()

func (*EmptyRequest) ProtoReflect

func (x *EmptyRequest) ProtoReflect() protoreflect.Message

func (*EmptyRequest) Reset

func (x *EmptyRequest) Reset()

func (*EmptyRequest) String

func (x *EmptyRequest) String() string

func (*EmptyRequest) Validate

func (m *EmptyRequest) Validate() error

Validate checks the field values on EmptyRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*EmptyRequest) ValidateAll

func (m *EmptyRequest) ValidateAll() error

ValidateAll checks the field values on EmptyRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EmptyRequestMultiError, or nil if none found.

type EmptyRequestMultiError

type EmptyRequestMultiError []error

EmptyRequestMultiError is an error wrapping multiple validation errors returned by EmptyRequest.ValidateAll() if the designated constraints aren't met.

func (EmptyRequestMultiError) AllErrors

func (m EmptyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EmptyRequestMultiError) Error

func (m EmptyRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EmptyRequestValidationError

type EmptyRequestValidationError struct {
	// contains filtered or unexported fields
}

EmptyRequestValidationError is the validation error returned by EmptyRequest.Validate if the designated constraints aren't met.

func (EmptyRequestValidationError) Cause

Cause function returns cause value.

func (EmptyRequestValidationError) Error

Error satisfies the builtin error interface

func (EmptyRequestValidationError) ErrorName

func (e EmptyRequestValidationError) ErrorName() string

ErrorName returns error name.

func (EmptyRequestValidationError) Field

Field function returns field value.

func (EmptyRequestValidationError) Key

Key function returns key value.

func (EmptyRequestValidationError) Reason

Reason function returns reason value.

type HealthCheckReply

type HealthCheckReply struct {
	Status  HealthCheckReply_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=protobuf.HealthCheckReply_ServingStatus" json:"status,omitempty"`
	Message string                         `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthCheckReply) Descriptor deprecated

func (*HealthCheckReply) Descriptor() ([]byte, []int)

Deprecated: Use HealthCheckReply.ProtoReflect.Descriptor instead.

func (*HealthCheckReply) GetMessage

func (x *HealthCheckReply) GetMessage() string

func (*HealthCheckReply) GetStatus

func (*HealthCheckReply) ProtoMessage

func (*HealthCheckReply) ProtoMessage()

func (*HealthCheckReply) ProtoReflect

func (x *HealthCheckReply) ProtoReflect() protoreflect.Message

func (*HealthCheckReply) Reset

func (x *HealthCheckReply) Reset()

func (*HealthCheckReply) String

func (x *HealthCheckReply) String() string

func (*HealthCheckReply) Validate

func (m *HealthCheckReply) Validate() error

Validate checks the field values on HealthCheckReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*HealthCheckReply) ValidateAll

func (m *HealthCheckReply) ValidateAll() error

ValidateAll checks the field values on HealthCheckReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HealthCheckReplyMultiError, or nil if none found.

type HealthCheckReplyMultiError

type HealthCheckReplyMultiError []error

HealthCheckReplyMultiError is an error wrapping multiple validation errors returned by HealthCheckReply.ValidateAll() if the designated constraints aren't met.

func (HealthCheckReplyMultiError) AllErrors

func (m HealthCheckReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HealthCheckReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type HealthCheckReplyValidationError

type HealthCheckReplyValidationError struct {
	// contains filtered or unexported fields
}

HealthCheckReplyValidationError is the validation error returned by HealthCheckReply.Validate if the designated constraints aren't met.

func (HealthCheckReplyValidationError) Cause

Cause function returns cause value.

func (HealthCheckReplyValidationError) Error

Error satisfies the builtin error interface

func (HealthCheckReplyValidationError) ErrorName

ErrorName returns error name.

func (HealthCheckReplyValidationError) Field

Field function returns field value.

func (HealthCheckReplyValidationError) Key

Key function returns key value.

func (HealthCheckReplyValidationError) Reason

Reason function returns reason value.

type HealthCheckReply_ServingStatus

type HealthCheckReply_ServingStatus int32
const (
	HealthCheckReply_UNKNOWN         HealthCheckReply_ServingStatus = 0
	HealthCheckReply_SERVING         HealthCheckReply_ServingStatus = 1
	HealthCheckReply_NOT_SERVING     HealthCheckReply_ServingStatus = 2
	HealthCheckReply_SERVICE_UNKNOWN HealthCheckReply_ServingStatus = 3 // Used only by the Watch method.
)

func (HealthCheckReply_ServingStatus) Descriptor

func (HealthCheckReply_ServingStatus) Enum

func (HealthCheckReply_ServingStatus) EnumDescriptor deprecated

func (HealthCheckReply_ServingStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use HealthCheckReply_ServingStatus.Descriptor instead.

func (HealthCheckReply_ServingStatus) Number

func (HealthCheckReply_ServingStatus) String

func (HealthCheckReply_ServingStatus) Type

type HealthCheckRequest

type HealthCheckRequest struct {
	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthCheckRequest) Descriptor deprecated

func (*HealthCheckRequest) Descriptor() ([]byte, []int)

Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead.

func (*HealthCheckRequest) GetService

func (x *HealthCheckRequest) GetService() string

func (*HealthCheckRequest) ProtoMessage

func (*HealthCheckRequest) ProtoMessage()

func (*HealthCheckRequest) ProtoReflect

func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message

func (*HealthCheckRequest) Reset

func (x *HealthCheckRequest) Reset()

func (*HealthCheckRequest) String

func (x *HealthCheckRequest) String() string

func (*HealthCheckRequest) Validate

func (m *HealthCheckRequest) Validate() error

Validate checks the field values on HealthCheckRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*HealthCheckRequest) ValidateAll

func (m *HealthCheckRequest) ValidateAll() error

ValidateAll checks the field values on HealthCheckRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HealthCheckRequestMultiError, or nil if none found.

type HealthCheckRequestMultiError

type HealthCheckRequestMultiError []error

HealthCheckRequestMultiError is an error wrapping multiple validation errors returned by HealthCheckRequest.ValidateAll() if the designated constraints aren't met.

func (HealthCheckRequestMultiError) AllErrors

func (m HealthCheckRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HealthCheckRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type HealthCheckRequestValidationError

type HealthCheckRequestValidationError struct {
	// contains filtered or unexported fields
}

HealthCheckRequestValidationError is the validation error returned by HealthCheckRequest.Validate if the designated constraints aren't met.

func (HealthCheckRequestValidationError) Cause

Cause function returns cause value.

func (HealthCheckRequestValidationError) Error

Error satisfies the builtin error interface

func (HealthCheckRequestValidationError) ErrorName

ErrorName returns error name.

func (HealthCheckRequestValidationError) Field

Field function returns field value.

func (HealthCheckRequestValidationError) Key

Key function returns key value.

func (HealthCheckRequestValidationError) Reason

Reason function returns reason value.

type HealthClient

type HealthClient interface {
	Check(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckReply, error)
	Watch(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (Health_WatchClient, error)
}

HealthClient is the client API for Health service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewHealthClient

func NewHealthClient(cc grpc.ClientConnInterface) HealthClient

type HealthServer

type HealthServer interface {
	Check(context.Context, *HealthCheckRequest) (*HealthCheckReply, error)
	Watch(*HealthCheckRequest, Health_WatchServer) error
	// contains filtered or unexported methods
}

HealthServer is the server API for Health service. All implementations must embed UnimplementedHealthServer for forward compatibility

type Health_WatchClient

type Health_WatchClient interface {
	Recv() (*HealthCheckReply, error)
	grpc.ClientStream
}

type Health_WatchServer

type Health_WatchServer interface {
	Send(*HealthCheckReply) error
	grpc.ServerStream
}

type HelloWorldReply

type HelloWorldReply struct {
	Code    int64   `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string  `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *string `protobuf:"bytes,3,opt,name=data,proto3,oneof" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloWorldReply) Descriptor deprecated

func (*HelloWorldReply) Descriptor() ([]byte, []int)

Deprecated: Use HelloWorldReply.ProtoReflect.Descriptor instead.

func (*HelloWorldReply) GetCode

func (x *HelloWorldReply) GetCode() int64

func (*HelloWorldReply) GetData

func (x *HelloWorldReply) GetData() string

func (*HelloWorldReply) GetMessage

func (x *HelloWorldReply) GetMessage() string

func (*HelloWorldReply) ProtoMessage

func (*HelloWorldReply) ProtoMessage()

func (*HelloWorldReply) ProtoReflect

func (x *HelloWorldReply) ProtoReflect() protoreflect.Message

func (*HelloWorldReply) Reset

func (x *HelloWorldReply) Reset()

func (*HelloWorldReply) String

func (x *HelloWorldReply) String() string

func (*HelloWorldReply) Validate

func (m *HelloWorldReply) Validate() error

Validate checks the field values on HelloWorldReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*HelloWorldReply) ValidateAll

func (m *HelloWorldReply) ValidateAll() error

ValidateAll checks the field values on HelloWorldReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HelloWorldReplyMultiError, or nil if none found.

type HelloWorldReplyMultiError

type HelloWorldReplyMultiError []error

HelloWorldReplyMultiError is an error wrapping multiple validation errors returned by HelloWorldReply.ValidateAll() if the designated constraints aren't met.

func (HelloWorldReplyMultiError) AllErrors

func (m HelloWorldReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HelloWorldReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type HelloWorldReplyValidationError

type HelloWorldReplyValidationError struct {
	// contains filtered or unexported fields
}

HelloWorldReplyValidationError is the validation error returned by HelloWorldReply.Validate if the designated constraints aren't met.

func (HelloWorldReplyValidationError) Cause

Cause function returns cause value.

func (HelloWorldReplyValidationError) Error

Error satisfies the builtin error interface

func (HelloWorldReplyValidationError) ErrorName

func (e HelloWorldReplyValidationError) ErrorName() string

ErrorName returns error name.

func (HelloWorldReplyValidationError) Field

Field function returns field value.

func (HelloWorldReplyValidationError) Key

Key function returns key value.

func (HelloWorldReplyValidationError) Reason

Reason function returns reason value.

type HelloWorldRequest

type HelloWorldRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloWorldRequest) Descriptor deprecated

func (*HelloWorldRequest) Descriptor() ([]byte, []int)

Deprecated: Use HelloWorldRequest.ProtoReflect.Descriptor instead.

func (*HelloWorldRequest) GetName

func (x *HelloWorldRequest) GetName() string

func (*HelloWorldRequest) ProtoMessage

func (*HelloWorldRequest) ProtoMessage()

func (*HelloWorldRequest) ProtoReflect

func (x *HelloWorldRequest) ProtoReflect() protoreflect.Message

func (*HelloWorldRequest) Reset

func (x *HelloWorldRequest) Reset()

func (*HelloWorldRequest) String

func (x *HelloWorldRequest) String() string

func (*HelloWorldRequest) Validate

func (m *HelloWorldRequest) Validate() error

Validate checks the field values on HelloWorldRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*HelloWorldRequest) ValidateAll

func (m *HelloWorldRequest) ValidateAll() error

ValidateAll checks the field values on HelloWorldRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HelloWorldRequestMultiError, or nil if none found.

type HelloWorldRequestMultiError

type HelloWorldRequestMultiError []error

HelloWorldRequestMultiError is an error wrapping multiple validation errors returned by HelloWorldRequest.ValidateAll() if the designated constraints aren't met.

func (HelloWorldRequestMultiError) AllErrors

func (m HelloWorldRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HelloWorldRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type HelloWorldRequestValidationError

type HelloWorldRequestValidationError struct {
	// contains filtered or unexported fields
}

HelloWorldRequestValidationError is the validation error returned by HelloWorldRequest.Validate if the designated constraints aren't met.

func (HelloWorldRequestValidationError) Cause

Cause function returns cause value.

func (HelloWorldRequestValidationError) Error

Error satisfies the builtin error interface

func (HelloWorldRequestValidationError) ErrorName

ErrorName returns error name.

func (HelloWorldRequestValidationError) Field

Field function returns field value.

func (HelloWorldRequestValidationError) Key

Key function returns key value.

func (HelloWorldRequestValidationError) Reason

Reason function returns reason value.

type HelloWorldServiceClient

type HelloWorldServiceClient interface {
	APIHelloWorld(ctx context.Context, in *HelloWorldRequest, opts ...grpc.CallOption) (*HelloWorldReply, error)
}

HelloWorldServiceClient is the client API for HelloWorldService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type HelloWorldServiceServer

type HelloWorldServiceServer interface {
	APIHelloWorld(context.Context, *HelloWorldRequest) (*HelloWorldReply, error)
	// contains filtered or unexported methods
}

HelloWorldServiceServer is the server API for HelloWorldService service. All implementations must embed UnimplementedHelloWorldServiceServer for forward compatibility

type LoginInfo

type LoginInfo struct {
	Token    string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	NickName string `protobuf:"bytes,2,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
	Phone    string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
	Email    string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	UserId   string `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Type     string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginInfo) Descriptor deprecated

func (*LoginInfo) Descriptor() ([]byte, []int)

Deprecated: Use LoginInfo.ProtoReflect.Descriptor instead.

func (*LoginInfo) GetEmail

func (x *LoginInfo) GetEmail() string

func (*LoginInfo) GetNickName

func (x *LoginInfo) GetNickName() string

func (*LoginInfo) GetPhone

func (x *LoginInfo) GetPhone() string

func (*LoginInfo) GetToken

func (x *LoginInfo) GetToken() string

func (*LoginInfo) GetType

func (x *LoginInfo) GetType() string

func (*LoginInfo) GetUserId

func (x *LoginInfo) GetUserId() string

func (*LoginInfo) ProtoMessage

func (*LoginInfo) ProtoMessage()

func (*LoginInfo) ProtoReflect

func (x *LoginInfo) ProtoReflect() protoreflect.Message

func (*LoginInfo) Reset

func (x *LoginInfo) Reset()

func (*LoginInfo) String

func (x *LoginInfo) String() string

func (*LoginInfo) Validate

func (m *LoginInfo) Validate() error

Validate checks the field values on LoginInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginInfo) ValidateAll

func (m *LoginInfo) ValidateAll() error

ValidateAll checks the field values on LoginInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginInfoMultiError, or nil if none found.

type LoginInfoMultiError

type LoginInfoMultiError []error

LoginInfoMultiError is an error wrapping multiple validation errors returned by LoginInfo.ValidateAll() if the designated constraints aren't met.

func (LoginInfoMultiError) AllErrors

func (m LoginInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginInfoMultiError) Error

func (m LoginInfoMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginInfoValidationError

type LoginInfoValidationError struct {
	// contains filtered or unexported fields
}

LoginInfoValidationError is the validation error returned by LoginInfo.Validate if the designated constraints aren't met.

func (LoginInfoValidationError) Cause

func (e LoginInfoValidationError) Cause() error

Cause function returns cause value.

func (LoginInfoValidationError) Error

func (e LoginInfoValidationError) Error() string

Error satisfies the builtin error interface

func (LoginInfoValidationError) ErrorName

func (e LoginInfoValidationError) ErrorName() string

ErrorName returns error name.

func (LoginInfoValidationError) Field

func (e LoginInfoValidationError) Field() string

Field function returns field value.

func (LoginInfoValidationError) Key

Key function returns key value.

func (LoginInfoValidationError) Reason

func (e LoginInfoValidationError) Reason() string

Reason function returns reason value.

type LoginReply

type LoginReply struct {
	Code    int32      `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *LoginInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginReply) Descriptor deprecated

func (*LoginReply) Descriptor() ([]byte, []int)

Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.

func (*LoginReply) GetCode

func (x *LoginReply) GetCode() int32

func (*LoginReply) GetData

func (x *LoginReply) GetData() *LoginInfo

func (*LoginReply) GetMessage

func (x *LoginReply) GetMessage() string

func (*LoginReply) ProtoMessage

func (*LoginReply) ProtoMessage()

func (*LoginReply) ProtoReflect

func (x *LoginReply) ProtoReflect() protoreflect.Message

func (*LoginReply) Reset

func (x *LoginReply) Reset()

func (*LoginReply) String

func (x *LoginReply) String() string

func (*LoginReply) Validate

func (m *LoginReply) Validate() error

Validate checks the field values on LoginReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginReply) ValidateAll

func (m *LoginReply) ValidateAll() error

ValidateAll checks the field values on LoginReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginReplyMultiError, or nil if none found.

type LoginReplyMultiError

type LoginReplyMultiError []error

LoginReplyMultiError is an error wrapping multiple validation errors returned by LoginReply.ValidateAll() if the designated constraints aren't met.

func (LoginReplyMultiError) AllErrors

func (m LoginReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginReplyMultiError) Error

func (m LoginReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginReplyValidationError

type LoginReplyValidationError struct {
	// contains filtered or unexported fields
}

LoginReplyValidationError is the validation error returned by LoginReply.Validate if the designated constraints aren't met.

func (LoginReplyValidationError) Cause

func (e LoginReplyValidationError) Cause() error

Cause function returns cause value.

func (LoginReplyValidationError) Error

Error satisfies the builtin error interface

func (LoginReplyValidationError) ErrorName

func (e LoginReplyValidationError) ErrorName() string

ErrorName returns error name.

func (LoginReplyValidationError) Field

Field function returns field value.

func (LoginReplyValidationError) Key

Key function returns key value.

func (LoginReplyValidationError) Reason

func (e LoginReplyValidationError) Reason() string

Reason function returns reason value.

type LoginRequest

type LoginRequest struct {
	Username  string                 `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password  string                 `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Phone     string                 `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
	Email     *string                `protobuf:"bytes,4,opt,name=email,proto3,oneof" json:"email,omitempty"`
	LoginType LoginRequest_LoginType `` // email/phone/account
	/* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

func (*LoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetEmail

func (x *LoginRequest) GetEmail() string

func (*LoginRequest) GetLoginType

func (x *LoginRequest) GetLoginType() LoginRequest_LoginType

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) GetPhone

func (x *LoginRequest) GetPhone() string

func (*LoginRequest) GetUsername

func (x *LoginRequest) GetUsername() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

func (x *LoginRequest) ProtoReflect() protoreflect.Message

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

func (*LoginRequest) Validate

func (m *LoginRequest) Validate() error

Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginRequest) ValidateAll

func (m *LoginRequest) ValidateAll() error

ValidateAll checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginRequestMultiError, or nil if none found.

type LoginRequestMultiError

type LoginRequestMultiError []error

LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.

func (LoginRequestMultiError) AllErrors

func (m LoginRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginRequestMultiError) Error

func (m LoginRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginRequestValidationError

type LoginRequestValidationError struct {
	// contains filtered or unexported fields
}

LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.

func (LoginRequestValidationError) Cause

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

Reason function returns reason value.

type LoginRequest_LoginType

type LoginRequest_LoginType int32
const (
	LoginRequest_lt_email   LoginRequest_LoginType = 0
	LoginRequest_lt_phone   LoginRequest_LoginType = 1
	LoginRequest_lt_account LoginRequest_LoginType = 2
)

func (LoginRequest_LoginType) Descriptor

func (LoginRequest_LoginType) Enum

func (LoginRequest_LoginType) EnumDescriptor deprecated

func (LoginRequest_LoginType) EnumDescriptor() ([]byte, []int)

Deprecated: Use LoginRequest_LoginType.Descriptor instead.

func (LoginRequest_LoginType) Number

func (LoginRequest_LoginType) String

func (x LoginRequest_LoginType) String() string

func (LoginRequest_LoginType) Type

type MailVerifyCodeReply

type MailVerifyCodeReply struct {
	Code    uint64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*MailVerifyCodeReply) Descriptor deprecated

func (*MailVerifyCodeReply) Descriptor() ([]byte, []int)

Deprecated: Use MailVerifyCodeReply.ProtoReflect.Descriptor instead.

func (*MailVerifyCodeReply) GetCode

func (x *MailVerifyCodeReply) GetCode() uint64

func (*MailVerifyCodeReply) GetData

func (x *MailVerifyCodeReply) GetData() string

func (*MailVerifyCodeReply) GetMessage

func (x *MailVerifyCodeReply) GetMessage() string

func (*MailVerifyCodeReply) ProtoMessage

func (*MailVerifyCodeReply) ProtoMessage()

func (*MailVerifyCodeReply) ProtoReflect

func (x *MailVerifyCodeReply) ProtoReflect() protoreflect.Message

func (*MailVerifyCodeReply) Reset

func (x *MailVerifyCodeReply) Reset()

func (*MailVerifyCodeReply) String

func (x *MailVerifyCodeReply) String() string

func (*MailVerifyCodeReply) Validate

func (m *MailVerifyCodeReply) Validate() error

Validate checks the field values on MailVerifyCodeReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*MailVerifyCodeReply) ValidateAll

func (m *MailVerifyCodeReply) ValidateAll() error

ValidateAll checks the field values on MailVerifyCodeReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MailVerifyCodeReplyMultiError, or nil if none found.

type MailVerifyCodeReplyMultiError

type MailVerifyCodeReplyMultiError []error

MailVerifyCodeReplyMultiError is an error wrapping multiple validation errors returned by MailVerifyCodeReply.ValidateAll() if the designated constraints aren't met.

func (MailVerifyCodeReplyMultiError) AllErrors

func (m MailVerifyCodeReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MailVerifyCodeReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type MailVerifyCodeReplyValidationError

type MailVerifyCodeReplyValidationError struct {
	// contains filtered or unexported fields
}

MailVerifyCodeReplyValidationError is the validation error returned by MailVerifyCodeReply.Validate if the designated constraints aren't met.

func (MailVerifyCodeReplyValidationError) Cause

Cause function returns cause value.

func (MailVerifyCodeReplyValidationError) Error

Error satisfies the builtin error interface

func (MailVerifyCodeReplyValidationError) ErrorName

ErrorName returns error name.

func (MailVerifyCodeReplyValidationError) Field

Field function returns field value.

func (MailVerifyCodeReplyValidationError) Key

Key function returns key value.

func (MailVerifyCodeReplyValidationError) Reason

Reason function returns reason value.

type MailVerifyCodeRequest

type MailVerifyCodeRequest struct {
	Mail     string         `protobuf:"bytes,1,opt,name=mail,proto3" json:"mail,omitempty"`
	Phone    string         `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`
	Type     VerifyType     `protobuf:"varint,3,opt,name=type,proto3,enum=protobuf.VerifyType" json:"type,omitempty"`
	CodeType VerifyCodeType `protobuf:"varint,4,opt,name=code_type,json=codeType,proto3,enum=protobuf.VerifyCodeType" json:"code_type,omitempty"`
	Captcha  string         `protobuf:"bytes,5,opt,name=captcha,proto3" json:"captcha,omitempty"` // TODO 图形验证码
	// contains filtered or unexported fields
}

func (*MailVerifyCodeRequest) Descriptor deprecated

func (*MailVerifyCodeRequest) Descriptor() ([]byte, []int)

Deprecated: Use MailVerifyCodeRequest.ProtoReflect.Descriptor instead.

func (*MailVerifyCodeRequest) GetCaptcha

func (x *MailVerifyCodeRequest) GetCaptcha() string

func (*MailVerifyCodeRequest) GetCodeType

func (x *MailVerifyCodeRequest) GetCodeType() VerifyCodeType

func (*MailVerifyCodeRequest) GetMail

func (x *MailVerifyCodeRequest) GetMail() string

func (*MailVerifyCodeRequest) GetPhone

func (x *MailVerifyCodeRequest) GetPhone() string

func (*MailVerifyCodeRequest) GetType

func (x *MailVerifyCodeRequest) GetType() VerifyType

func (*MailVerifyCodeRequest) ProtoMessage

func (*MailVerifyCodeRequest) ProtoMessage()

func (*MailVerifyCodeRequest) ProtoReflect

func (x *MailVerifyCodeRequest) ProtoReflect() protoreflect.Message

func (*MailVerifyCodeRequest) Reset

func (x *MailVerifyCodeRequest) Reset()

func (*MailVerifyCodeRequest) String

func (x *MailVerifyCodeRequest) String() string

func (*MailVerifyCodeRequest) Validate

func (m *MailVerifyCodeRequest) Validate() error

Validate checks the field values on MailVerifyCodeRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*MailVerifyCodeRequest) ValidateAll

func (m *MailVerifyCodeRequest) ValidateAll() error

ValidateAll checks the field values on MailVerifyCodeRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MailVerifyCodeRequestMultiError, or nil if none found.

type MailVerifyCodeRequestMultiError

type MailVerifyCodeRequestMultiError []error

MailVerifyCodeRequestMultiError is an error wrapping multiple validation errors returned by MailVerifyCodeRequest.ValidateAll() if the designated constraints aren't met.

func (MailVerifyCodeRequestMultiError) AllErrors

func (m MailVerifyCodeRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MailVerifyCodeRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type MailVerifyCodeRequestValidationError

type MailVerifyCodeRequestValidationError struct {
	// contains filtered or unexported fields
}

MailVerifyCodeRequestValidationError is the validation error returned by MailVerifyCodeRequest.Validate if the designated constraints aren't met.

func (MailVerifyCodeRequestValidationError) Cause

Cause function returns cause value.

func (MailVerifyCodeRequestValidationError) Error

Error satisfies the builtin error interface

func (MailVerifyCodeRequestValidationError) ErrorName

ErrorName returns error name.

func (MailVerifyCodeRequestValidationError) Field

Field function returns field value.

func (MailVerifyCodeRequestValidationError) Key

Key function returns key value.

func (MailVerifyCodeRequestValidationError) Reason

Reason function returns reason value.

type OrderServiceClient

type OrderServiceClient interface {
	CreateOrder(ctx context.Context, in *CreateOrderRequest, opts ...grpc.CallOption) (*CreateOrderReply, error)
}

OrderServiceClient is the client API for OrderService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type OrderServiceServer

type OrderServiceServer interface {
	CreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderReply, error)
	// contains filtered or unexported methods
}

OrderServiceServer is the server API for OrderService service. All implementations must embed UnimplementedOrderServiceServer for forward compatibility

type PingPongServiceClient

type PingPongServiceClient interface {
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingReply, error)
}

PingPongServiceClient is the client API for PingPongService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type PingPongServiceServer

type PingPongServiceServer interface {
	Ping(context.Context, *PingRequest) (*PingReply, error)
	// contains filtered or unexported methods
}

PingPongServiceServer is the server API for PingPongService service. All implementations must embed UnimplementedPingPongServiceServer for forward compatibility

type PingReply

type PingReply struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*PingReply) Descriptor deprecated

func (*PingReply) Descriptor() ([]byte, []int)

Deprecated: Use PingReply.ProtoReflect.Descriptor instead.

func (*PingReply) GetValue

func (x *PingReply) GetValue() string

func (*PingReply) ProtoMessage

func (*PingReply) ProtoMessage()

func (*PingReply) ProtoReflect

func (x *PingReply) ProtoReflect() protoreflect.Message

func (*PingReply) Reset

func (x *PingReply) Reset()

func (*PingReply) String

func (x *PingReply) String() string

func (*PingReply) Validate

func (m *PingReply) Validate() error

Validate checks the field values on PingReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PingReply) ValidateAll

func (m *PingReply) ValidateAll() error

ValidateAll checks the field values on PingReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PingReplyMultiError, or nil if none found.

type PingReplyMultiError

type PingReplyMultiError []error

PingReplyMultiError is an error wrapping multiple validation errors returned by PingReply.ValidateAll() if the designated constraints aren't met.

func (PingReplyMultiError) AllErrors

func (m PingReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PingReplyMultiError) Error

func (m PingReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PingReplyValidationError

type PingReplyValidationError struct {
	// contains filtered or unexported fields
}

PingReplyValidationError is the validation error returned by PingReply.Validate if the designated constraints aren't met.

func (PingReplyValidationError) Cause

func (e PingReplyValidationError) Cause() error

Cause function returns cause value.

func (PingReplyValidationError) Error

func (e PingReplyValidationError) Error() string

Error satisfies the builtin error interface

func (PingReplyValidationError) ErrorName

func (e PingReplyValidationError) ErrorName() string

ErrorName returns error name.

func (PingReplyValidationError) Field

func (e PingReplyValidationError) Field() string

Field function returns field value.

func (PingReplyValidationError) Key

Key function returns key value.

func (PingReplyValidationError) Reason

func (e PingReplyValidationError) Reason() string

Reason function returns reason value.

type PingRequest

type PingRequest struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*PingRequest) Descriptor deprecated

func (*PingRequest) Descriptor() ([]byte, []int)

Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.

func (*PingRequest) GetValue

func (x *PingRequest) GetValue() string

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) ProtoReflect

func (x *PingRequest) ProtoReflect() protoreflect.Message

func (*PingRequest) Reset

func (x *PingRequest) Reset()

func (*PingRequest) String

func (x *PingRequest) String() string

func (*PingRequest) Validate

func (m *PingRequest) Validate() error

Validate checks the field values on PingRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PingRequest) ValidateAll

func (m *PingRequest) ValidateAll() error

ValidateAll checks the field values on PingRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PingRequestMultiError, or nil if none found.

type PingRequestMultiError

type PingRequestMultiError []error

PingRequestMultiError is an error wrapping multiple validation errors returned by PingRequest.ValidateAll() if the designated constraints aren't met.

func (PingRequestMultiError) AllErrors

func (m PingRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PingRequestMultiError) Error

func (m PingRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PingRequestValidationError

type PingRequestValidationError struct {
	// contains filtered or unexported fields
}

PingRequestValidationError is the validation error returned by PingRequest.Validate if the designated constraints aren't met.

func (PingRequestValidationError) Cause

Cause function returns cause value.

func (PingRequestValidationError) Error

Error satisfies the builtin error interface

func (PingRequestValidationError) ErrorName

func (e PingRequestValidationError) ErrorName() string

ErrorName returns error name.

func (PingRequestValidationError) Field

Field function returns field value.

func (PingRequestValidationError) Key

Key function returns key value.

func (PingRequestValidationError) Reason

Reason function returns reason value.

type ProxyApplyReply

type ProxyApplyReply struct {
	// contains filtered or unexported fields
}

func (*ProxyApplyReply) Descriptor deprecated

func (*ProxyApplyReply) Descriptor() ([]byte, []int)

Deprecated: Use ProxyApplyReply.ProtoReflect.Descriptor instead.

func (*ProxyApplyReply) ProtoMessage

func (*ProxyApplyReply) ProtoMessage()

func (*ProxyApplyReply) ProtoReflect

func (x *ProxyApplyReply) ProtoReflect() protoreflect.Message

func (*ProxyApplyReply) Reset

func (x *ProxyApplyReply) Reset()

func (*ProxyApplyReply) String

func (x *ProxyApplyReply) String() string

func (*ProxyApplyReply) Validate

func (m *ProxyApplyReply) Validate() error

Validate checks the field values on ProxyApplyReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ProxyApplyReply) ValidateAll

func (m *ProxyApplyReply) ValidateAll() error

ValidateAll checks the field values on ProxyApplyReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProxyApplyReplyMultiError, or nil if none found.

type ProxyApplyReplyMultiError

type ProxyApplyReplyMultiError []error

ProxyApplyReplyMultiError is an error wrapping multiple validation errors returned by ProxyApplyReply.ValidateAll() if the designated constraints aren't met.

func (ProxyApplyReplyMultiError) AllErrors

func (m ProxyApplyReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProxyApplyReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ProxyApplyReplyValidationError

type ProxyApplyReplyValidationError struct {
	// contains filtered or unexported fields
}

ProxyApplyReplyValidationError is the validation error returned by ProxyApplyReply.Validate if the designated constraints aren't met.

func (ProxyApplyReplyValidationError) Cause

Cause function returns cause value.

func (ProxyApplyReplyValidationError) Error

Error satisfies the builtin error interface

func (ProxyApplyReplyValidationError) ErrorName

func (e ProxyApplyReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ProxyApplyReplyValidationError) Field

Field function returns field value.

func (ProxyApplyReplyValidationError) Key

Key function returns key value.

func (ProxyApplyReplyValidationError) Reason

Reason function returns reason value.

type ProxyApplyRequest

type ProxyApplyRequest struct {
	// contains filtered or unexported fields
}

func (*ProxyApplyRequest) Descriptor deprecated

func (*ProxyApplyRequest) Descriptor() ([]byte, []int)

Deprecated: Use ProxyApplyRequest.ProtoReflect.Descriptor instead.

func (*ProxyApplyRequest) ProtoMessage

func (*ProxyApplyRequest) ProtoMessage()

func (*ProxyApplyRequest) ProtoReflect

func (x *ProxyApplyRequest) ProtoReflect() protoreflect.Message

func (*ProxyApplyRequest) Reset

func (x *ProxyApplyRequest) Reset()

func (*ProxyApplyRequest) String

func (x *ProxyApplyRequest) String() string

func (*ProxyApplyRequest) Validate

func (m *ProxyApplyRequest) Validate() error

Validate checks the field values on ProxyApplyRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ProxyApplyRequest) ValidateAll

func (m *ProxyApplyRequest) ValidateAll() error

ValidateAll checks the field values on ProxyApplyRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProxyApplyRequestMultiError, or nil if none found.

type ProxyApplyRequestMultiError

type ProxyApplyRequestMultiError []error

ProxyApplyRequestMultiError is an error wrapping multiple validation errors returned by ProxyApplyRequest.ValidateAll() if the designated constraints aren't met.

func (ProxyApplyRequestMultiError) AllErrors

func (m ProxyApplyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProxyApplyRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ProxyApplyRequestValidationError

type ProxyApplyRequestValidationError struct {
	// contains filtered or unexported fields
}

ProxyApplyRequestValidationError is the validation error returned by ProxyApplyRequest.Validate if the designated constraints aren't met.

func (ProxyApplyRequestValidationError) Cause

Cause function returns cause value.

func (ProxyApplyRequestValidationError) Error

Error satisfies the builtin error interface

func (ProxyApplyRequestValidationError) ErrorName

ErrorName returns error name.

func (ProxyApplyRequestValidationError) Field

Field function returns field value.

func (ProxyApplyRequestValidationError) Key

Key function returns key value.

func (ProxyApplyRequestValidationError) Reason

Reason function returns reason value.

type RegisterRequest

type RegisterRequest struct {
	Type     VerifyType `protobuf:"varint,1,opt,name=type,proto3,enum=protobuf.VerifyType" json:"type,omitempty"`
	Mail     string     `protobuf:"bytes,2,opt,name=mail,proto3" json:"mail,omitempty"`                         // TODO 这次可以不考虑,后续需要验证码
	NickName string     `protobuf:"bytes,3,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` // TODO 不限制,为空则设置位用户名
	Phone    string     `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`                       // TODO 定义手机号规则 只支持国内11位手机号,
	// 这次为可选,后续可以用来受验证码
	Password        string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"`                                      // TODO 定义密码规则
	ConfirmPassword string `protobuf:"bytes,6,opt,name=confirm_password,json=confirmPassword,proto3" json:"confirm_password,omitempty"` // TODO 定义密码规则
	VerifyCode      string `protobuf:"bytes,7,opt,name=verify_code,json=verifyCode,proto3" json:"verify_code,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

func (*RegisterRequest) Descriptor() ([]byte, []int)

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetConfirmPassword

func (x *RegisterRequest) GetConfirmPassword() string

func (*RegisterRequest) GetMail

func (x *RegisterRequest) GetMail() string

func (*RegisterRequest) GetNickName

func (x *RegisterRequest) GetNickName() string

func (*RegisterRequest) GetPassword

func (x *RegisterRequest) GetPassword() string

func (*RegisterRequest) GetPhone

func (x *RegisterRequest) GetPhone() string

func (*RegisterRequest) GetType

func (x *RegisterRequest) GetType() VerifyType

func (*RegisterRequest) GetVerifyCode

func (x *RegisterRequest) GetVerifyCode() string

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

func (x *RegisterRequest) ProtoReflect() protoreflect.Message

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

func (*RegisterRequest) Validate

func (m *RegisterRequest) Validate() error

Validate checks the field values on RegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RegisterRequest) ValidateAll

func (m *RegisterRequest) ValidateAll() error

ValidateAll checks the field values on RegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterRequestMultiError, or nil if none found.

type RegisterRequestMultiError

type RegisterRequestMultiError []error

RegisterRequestMultiError is an error wrapping multiple validation errors returned by RegisterRequest.ValidateAll() if the designated constraints aren't met.

func (RegisterRequestMultiError) AllErrors

func (m RegisterRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RegisterRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RegisterRequestValidationError

type RegisterRequestValidationError struct {
	// contains filtered or unexported fields
}

RegisterRequestValidationError is the validation error returned by RegisterRequest.Validate if the designated constraints aren't met.

func (RegisterRequestValidationError) Cause

Cause function returns cause value.

func (RegisterRequestValidationError) Error

Error satisfies the builtin error interface

func (RegisterRequestValidationError) ErrorName

func (e RegisterRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RegisterRequestValidationError) Field

Field function returns field value.

func (RegisterRequestValidationError) Key

Key function returns key value.

func (RegisterRequestValidationError) Reason

Reason function returns reason value.

type Reply

type Reply struct {
	Code     int64   `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message  string  `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data     *string `protobuf:"bytes,3,opt,name=data,proto3,oneof" json:"data,omitempty"`
	Total    *uint64 `protobuf:"varint,4,opt,name=total,proto3,oneof" json:"total,omitempty"`
	Page     *uint64 `protobuf:"varint,5,opt,name=page,proto3,oneof" json:"page,omitempty"`
	PageSize *uint64 `protobuf:"varint,6,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

func (*Reply) Descriptor deprecated

func (*Reply) Descriptor() ([]byte, []int)

Deprecated: Use Reply.ProtoReflect.Descriptor instead.

func (*Reply) GetCode

func (x *Reply) GetCode() int64

func (*Reply) GetData

func (x *Reply) GetData() string

func (*Reply) GetMessage

func (x *Reply) GetMessage() string

func (*Reply) GetPage

func (x *Reply) GetPage() uint64

func (*Reply) GetPageSize

func (x *Reply) GetPageSize() uint64

func (*Reply) GetTotal

func (x *Reply) GetTotal() uint64

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) ProtoReflect

func (x *Reply) ProtoReflect() protoreflect.Message

func (*Reply) Reset

func (x *Reply) Reset()

func (*Reply) String

func (x *Reply) String() string

func (*Reply) Validate

func (m *Reply) Validate() error

Validate checks the field values on Reply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Reply) ValidateAll

func (m *Reply) ValidateAll() error

ValidateAll checks the field values on Reply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ReplyMultiError, or nil if none found.

type ReplyMultiError

type ReplyMultiError []error

ReplyMultiError is an error wrapping multiple validation errors returned by Reply.ValidateAll() if the designated constraints aren't met.

func (ReplyMultiError) AllErrors

func (m ReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ReplyMultiError) Error

func (m ReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ReplyValidationError

type ReplyValidationError struct {
	// contains filtered or unexported fields
}

ReplyValidationError is the validation error returned by Reply.Validate if the designated constraints aren't met.

func (ReplyValidationError) Cause

func (e ReplyValidationError) Cause() error

Cause function returns cause value.

func (ReplyValidationError) Error

func (e ReplyValidationError) Error() string

Error satisfies the builtin error interface

func (ReplyValidationError) ErrorName

func (e ReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ReplyValidationError) Field

func (e ReplyValidationError) Field() string

Field function returns field value.

func (ReplyValidationError) Key

func (e ReplyValidationError) Key() bool

Key function returns key value.

func (ReplyValidationError) Reason

func (e ReplyValidationError) Reason() string

Reason function returns reason value.

type ResetPwdNoLoginReply

type ResetPwdNoLoginReply struct {
	// contains filtered or unexported fields
}

func (*ResetPwdNoLoginReply) Descriptor deprecated

func (*ResetPwdNoLoginReply) Descriptor() ([]byte, []int)

Deprecated: Use ResetPwdNoLoginReply.ProtoReflect.Descriptor instead.

func (*ResetPwdNoLoginReply) ProtoMessage

func (*ResetPwdNoLoginReply) ProtoMessage()

func (*ResetPwdNoLoginReply) ProtoReflect

func (x *ResetPwdNoLoginReply) ProtoReflect() protoreflect.Message

func (*ResetPwdNoLoginReply) Reset

func (x *ResetPwdNoLoginReply) Reset()

func (*ResetPwdNoLoginReply) String

func (x *ResetPwdNoLoginReply) String() string

func (*ResetPwdNoLoginReply) Validate

func (m *ResetPwdNoLoginReply) Validate() error

Validate checks the field values on ResetPwdNoLoginReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ResetPwdNoLoginReply) ValidateAll

func (m *ResetPwdNoLoginReply) ValidateAll() error

ValidateAll checks the field values on ResetPwdNoLoginReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResetPwdNoLoginReplyMultiError, or nil if none found.

type ResetPwdNoLoginReplyMultiError

type ResetPwdNoLoginReplyMultiError []error

ResetPwdNoLoginReplyMultiError is an error wrapping multiple validation errors returned by ResetPwdNoLoginReply.ValidateAll() if the designated constraints aren't met.

func (ResetPwdNoLoginReplyMultiError) AllErrors

func (m ResetPwdNoLoginReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResetPwdNoLoginReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ResetPwdNoLoginReplyValidationError

type ResetPwdNoLoginReplyValidationError struct {
	// contains filtered or unexported fields
}

ResetPwdNoLoginReplyValidationError is the validation error returned by ResetPwdNoLoginReply.Validate if the designated constraints aren't met.

func (ResetPwdNoLoginReplyValidationError) Cause

Cause function returns cause value.

func (ResetPwdNoLoginReplyValidationError) Error

Error satisfies the builtin error interface

func (ResetPwdNoLoginReplyValidationError) ErrorName

ErrorName returns error name.

func (ResetPwdNoLoginReplyValidationError) Field

Field function returns field value.

func (ResetPwdNoLoginReplyValidationError) Key

Key function returns key value.

func (ResetPwdNoLoginReplyValidationError) Reason

Reason function returns reason value.

type ResetPwdNoLoginRequest

type ResetPwdNoLoginRequest struct {
	Email      string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`                             // 手机号
	Phone      string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"`                             // 邮箱
	VerifyCode string `protobuf:"bytes,3,opt,name=verify_code,json=verifyCode,proto3" json:"verify_code,omitempty"` // 验证码
	// contains filtered or unexported fields
}

func (*ResetPwdNoLoginRequest) Descriptor deprecated

func (*ResetPwdNoLoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResetPwdNoLoginRequest.ProtoReflect.Descriptor instead.

func (*ResetPwdNoLoginRequest) GetEmail

func (x *ResetPwdNoLoginRequest) GetEmail() string

func (*ResetPwdNoLoginRequest) GetPhone

func (x *ResetPwdNoLoginRequest) GetPhone() string

func (*ResetPwdNoLoginRequest) GetVerifyCode

func (x *ResetPwdNoLoginRequest) GetVerifyCode() string

func (*ResetPwdNoLoginRequest) ProtoMessage

func (*ResetPwdNoLoginRequest) ProtoMessage()

func (*ResetPwdNoLoginRequest) ProtoReflect

func (x *ResetPwdNoLoginRequest) ProtoReflect() protoreflect.Message

func (*ResetPwdNoLoginRequest) Reset

func (x *ResetPwdNoLoginRequest) Reset()

func (*ResetPwdNoLoginRequest) String

func (x *ResetPwdNoLoginRequest) String() string

func (*ResetPwdNoLoginRequest) Validate

func (m *ResetPwdNoLoginRequest) Validate() error

Validate checks the field values on ResetPwdNoLoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ResetPwdNoLoginRequest) ValidateAll

func (m *ResetPwdNoLoginRequest) ValidateAll() error

ValidateAll checks the field values on ResetPwdNoLoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResetPwdNoLoginRequestMultiError, or nil if none found.

type ResetPwdNoLoginRequestMultiError

type ResetPwdNoLoginRequestMultiError []error

ResetPwdNoLoginRequestMultiError is an error wrapping multiple validation errors returned by ResetPwdNoLoginRequest.ValidateAll() if the designated constraints aren't met.

func (ResetPwdNoLoginRequestMultiError) AllErrors

func (m ResetPwdNoLoginRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResetPwdNoLoginRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ResetPwdNoLoginRequestValidationError

type ResetPwdNoLoginRequestValidationError struct {
	// contains filtered or unexported fields
}

ResetPwdNoLoginRequestValidationError is the validation error returned by ResetPwdNoLoginRequest.Validate if the designated constraints aren't met.

func (ResetPwdNoLoginRequestValidationError) Cause

Cause function returns cause value.

func (ResetPwdNoLoginRequestValidationError) Error

Error satisfies the builtin error interface

func (ResetPwdNoLoginRequestValidationError) ErrorName

ErrorName returns error name.

func (ResetPwdNoLoginRequestValidationError) Field

Field function returns field value.

func (ResetPwdNoLoginRequestValidationError) Key

Key function returns key value.

func (ResetPwdNoLoginRequestValidationError) Reason

Reason function returns reason value.

type ResetPwdRequest

type ResetPwdRequest struct {
	OldPassword     string `protobuf:"bytes,1,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"`             // 旧密码
	NewPassword     string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`             // 新密码
	ConfirmPassword string `protobuf:"bytes,3,opt,name=confirm_password,json=confirmPassword,proto3" json:"confirm_password,omitempty"` // 确认密码
	Captcha         string `protobuf:"bytes,4,opt,name=captcha,proto3" json:"captcha,omitempty"`                                        // 图形验证码
	// contains filtered or unexported fields
}

func (*ResetPwdRequest) Descriptor deprecated

func (*ResetPwdRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResetPwdRequest.ProtoReflect.Descriptor instead.

func (*ResetPwdRequest) GetCaptcha

func (x *ResetPwdRequest) GetCaptcha() string

func (*ResetPwdRequest) GetConfirmPassword

func (x *ResetPwdRequest) GetConfirmPassword() string

func (*ResetPwdRequest) GetNewPassword

func (x *ResetPwdRequest) GetNewPassword() string

func (*ResetPwdRequest) GetOldPassword

func (x *ResetPwdRequest) GetOldPassword() string

func (*ResetPwdRequest) ProtoMessage

func (*ResetPwdRequest) ProtoMessage()

func (*ResetPwdRequest) ProtoReflect

func (x *ResetPwdRequest) ProtoReflect() protoreflect.Message

func (*ResetPwdRequest) Reset

func (x *ResetPwdRequest) Reset()

func (*ResetPwdRequest) String

func (x *ResetPwdRequest) String() string

func (*ResetPwdRequest) Validate

func (m *ResetPwdRequest) Validate() error

Validate checks the field values on ResetPwdRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ResetPwdRequest) ValidateAll

func (m *ResetPwdRequest) ValidateAll() error

ValidateAll checks the field values on ResetPwdRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResetPwdRequestMultiError, or nil if none found.

type ResetPwdRequestMultiError

type ResetPwdRequestMultiError []error

ResetPwdRequestMultiError is an error wrapping multiple validation errors returned by ResetPwdRequest.ValidateAll() if the designated constraints aren't met.

func (ResetPwdRequestMultiError) AllErrors

func (m ResetPwdRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResetPwdRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ResetPwdRequestValidationError

type ResetPwdRequestValidationError struct {
	// contains filtered or unexported fields
}

ResetPwdRequestValidationError is the validation error returned by ResetPwdRequest.Validate if the designated constraints aren't met.

func (ResetPwdRequestValidationError) Cause

Cause function returns cause value.

func (ResetPwdRequestValidationError) Error

Error satisfies the builtin error interface

func (ResetPwdRequestValidationError) ErrorName

func (e ResetPwdRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ResetPwdRequestValidationError) Field

Field function returns field value.

func (ResetPwdRequestValidationError) Key

Key function returns key value.

func (ResetPwdRequestValidationError) Reason

Reason function returns reason value.

type TradingTokenApplyReply

type TradingTokenApplyReply struct {
	Code    int64      `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*TradingTokenApplyReply) Descriptor deprecated

func (*TradingTokenApplyReply) Descriptor() ([]byte, []int)

Deprecated: Use TradingTokenApplyReply.ProtoReflect.Descriptor instead.

func (*TradingTokenApplyReply) GetCode

func (x *TradingTokenApplyReply) GetCode() int64

func (*TradingTokenApplyReply) GetData

func (x *TradingTokenApplyReply) GetData() *anypb.Any

func (*TradingTokenApplyReply) GetMessage

func (x *TradingTokenApplyReply) GetMessage() string

func (*TradingTokenApplyReply) ProtoMessage

func (*TradingTokenApplyReply) ProtoMessage()

func (*TradingTokenApplyReply) ProtoReflect

func (x *TradingTokenApplyReply) ProtoReflect() protoreflect.Message

func (*TradingTokenApplyReply) Reset

func (x *TradingTokenApplyReply) Reset()

func (*TradingTokenApplyReply) String

func (x *TradingTokenApplyReply) String() string

func (*TradingTokenApplyReply) Validate

func (m *TradingTokenApplyReply) Validate() error

Validate checks the field values on TradingTokenApplyReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TradingTokenApplyReply) ValidateAll

func (m *TradingTokenApplyReply) ValidateAll() error

ValidateAll checks the field values on TradingTokenApplyReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TradingTokenApplyReplyMultiError, or nil if none found.

type TradingTokenApplyReplyMultiError

type TradingTokenApplyReplyMultiError []error

TradingTokenApplyReplyMultiError is an error wrapping multiple validation errors returned by TradingTokenApplyReply.ValidateAll() if the designated constraints aren't met.

func (TradingTokenApplyReplyMultiError) AllErrors

func (m TradingTokenApplyReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TradingTokenApplyReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TradingTokenApplyReplyValidationError

type TradingTokenApplyReplyValidationError struct {
	// contains filtered or unexported fields
}

TradingTokenApplyReplyValidationError is the validation error returned by TradingTokenApplyReply.Validate if the designated constraints aren't met.

func (TradingTokenApplyReplyValidationError) Cause

Cause function returns cause value.

func (TradingTokenApplyReplyValidationError) Error

Error satisfies the builtin error interface

func (TradingTokenApplyReplyValidationError) ErrorName

ErrorName returns error name.

func (TradingTokenApplyReplyValidationError) Field

Field function returns field value.

func (TradingTokenApplyReplyValidationError) Key

Key function returns key value.

func (TradingTokenApplyReplyValidationError) Reason

Reason function returns reason value.

type TradingTokenCancelReply

type TradingTokenCancelReply struct {
	Code    int64      `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*TradingTokenCancelReply) Descriptor deprecated

func (*TradingTokenCancelReply) Descriptor() ([]byte, []int)

Deprecated: Use TradingTokenCancelReply.ProtoReflect.Descriptor instead.

func (*TradingTokenCancelReply) GetCode

func (x *TradingTokenCancelReply) GetCode() int64

func (*TradingTokenCancelReply) GetData

func (x *TradingTokenCancelReply) GetData() *anypb.Any

func (*TradingTokenCancelReply) GetMessage

func (x *TradingTokenCancelReply) GetMessage() string

func (*TradingTokenCancelReply) ProtoMessage

func (*TradingTokenCancelReply) ProtoMessage()

func (*TradingTokenCancelReply) ProtoReflect

func (x *TradingTokenCancelReply) ProtoReflect() protoreflect.Message

func (*TradingTokenCancelReply) Reset

func (x *TradingTokenCancelReply) Reset()

func (*TradingTokenCancelReply) String

func (x *TradingTokenCancelReply) String() string

func (*TradingTokenCancelReply) Validate

func (m *TradingTokenCancelReply) Validate() error

Validate checks the field values on TradingTokenCancelReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TradingTokenCancelReply) ValidateAll

func (m *TradingTokenCancelReply) ValidateAll() error

ValidateAll checks the field values on TradingTokenCancelReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TradingTokenCancelReplyMultiError, or nil if none found.

type TradingTokenCancelReplyMultiError

type TradingTokenCancelReplyMultiError []error

TradingTokenCancelReplyMultiError is an error wrapping multiple validation errors returned by TradingTokenCancelReply.ValidateAll() if the designated constraints aren't met.

func (TradingTokenCancelReplyMultiError) AllErrors

func (m TradingTokenCancelReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TradingTokenCancelReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TradingTokenCancelReplyValidationError

type TradingTokenCancelReplyValidationError struct {
	// contains filtered or unexported fields
}

TradingTokenCancelReplyValidationError is the validation error returned by TradingTokenCancelReply.Validate if the designated constraints aren't met.

func (TradingTokenCancelReplyValidationError) Cause

Cause function returns cause value.

func (TradingTokenCancelReplyValidationError) Error

Error satisfies the builtin error interface

func (TradingTokenCancelReplyValidationError) ErrorName

ErrorName returns error name.

func (TradingTokenCancelReplyValidationError) Field

Field function returns field value.

func (TradingTokenCancelReplyValidationError) Key

Key function returns key value.

func (TradingTokenCancelReplyValidationError) Reason

Reason function returns reason value.

type TradingTokenCollectorListReply

type TradingTokenCollectorListReply struct {
	Code     uint64                       `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message  string                       `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data     []*CollectorTradingTokenInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	Total    *uint64                      `protobuf:"varint,4,opt,name=total,proto3,oneof" json:"total,omitempty"`
	Page     *uint64                      `protobuf:"varint,5,opt,name=page,proto3,oneof" json:"page,omitempty"`
	PageSize *uint64                      `protobuf:"varint,6,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

func (*TradingTokenCollectorListReply) Descriptor deprecated

func (*TradingTokenCollectorListReply) Descriptor() ([]byte, []int)

Deprecated: Use TradingTokenCollectorListReply.ProtoReflect.Descriptor instead.

func (*TradingTokenCollectorListReply) GetCode

func (*TradingTokenCollectorListReply) GetData

func (*TradingTokenCollectorListReply) GetMessage

func (x *TradingTokenCollectorListReply) GetMessage() string

func (*TradingTokenCollectorListReply) GetPage

func (*TradingTokenCollectorListReply) GetPageSize

func (x *TradingTokenCollectorListReply) GetPageSize() uint64

func (*TradingTokenCollectorListReply) GetTotal

func (x *TradingTokenCollectorListReply) GetTotal() uint64

func (*TradingTokenCollectorListReply) ProtoMessage

func (*TradingTokenCollectorListReply) ProtoMessage()

func (*TradingTokenCollectorListReply) ProtoReflect

func (*TradingTokenCollectorListReply) Reset

func (x *TradingTokenCollectorListReply) Reset()

func (*TradingTokenCollectorListReply) String

func (*TradingTokenCollectorListReply) Validate

func (m *TradingTokenCollectorListReply) Validate() error

Validate checks the field values on TradingTokenCollectorListReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TradingTokenCollectorListReply) ValidateAll

func (m *TradingTokenCollectorListReply) ValidateAll() error

ValidateAll checks the field values on TradingTokenCollectorListReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TradingTokenCollectorListReplyMultiError, or nil if none found.

type TradingTokenCollectorListReplyMultiError

type TradingTokenCollectorListReplyMultiError []error

TradingTokenCollectorListReplyMultiError is an error wrapping multiple validation errors returned by TradingTokenCollectorListReply.ValidateAll() if the designated constraints aren't met.

func (TradingTokenCollectorListReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (TradingTokenCollectorListReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TradingTokenCollectorListReplyValidationError

type TradingTokenCollectorListReplyValidationError struct {
	// contains filtered or unexported fields
}

TradingTokenCollectorListReplyValidationError is the validation error returned by TradingTokenCollectorListReply.Validate if the designated constraints aren't met.

func (TradingTokenCollectorListReplyValidationError) Cause

Cause function returns cause value.

func (TradingTokenCollectorListReplyValidationError) Error

Error satisfies the builtin error interface

func (TradingTokenCollectorListReplyValidationError) ErrorName

ErrorName returns error name.

func (TradingTokenCollectorListReplyValidationError) Field

Field function returns field value.

func (TradingTokenCollectorListReplyValidationError) Key

Key function returns key value.

func (TradingTokenCollectorListReplyValidationError) Reason

Reason function returns reason value.

type TradingTokenCollectorListRequest

type TradingTokenCollectorListRequest struct {
	CollectorName string `protobuf:"bytes,1,opt,name=collector_name,json=collectorName,proto3" json:"collector_name,omitempty"`
	Page          uint64 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	PageSize      uint64 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*TradingTokenCollectorListRequest) Descriptor deprecated

func (*TradingTokenCollectorListRequest) Descriptor() ([]byte, []int)

Deprecated: Use TradingTokenCollectorListRequest.ProtoReflect.Descriptor instead.

func (*TradingTokenCollectorListRequest) GetCollectorName

func (x *TradingTokenCollectorListRequest) GetCollectorName() string

func (*TradingTokenCollectorListRequest) GetPage

func (*TradingTokenCollectorListRequest) GetPageSize

func (x *TradingTokenCollectorListRequest) GetPageSize() uint64

func (*TradingTokenCollectorListRequest) ProtoMessage

func (*TradingTokenCollectorListRequest) ProtoMessage()

func (*TradingTokenCollectorListRequest) ProtoReflect

func (*TradingTokenCollectorListRequest) Reset

func (*TradingTokenCollectorListRequest) String

func (*TradingTokenCollectorListRequest) Validate

Validate checks the field values on TradingTokenCollectorListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TradingTokenCollectorListRequest) ValidateAll

func (m *TradingTokenCollectorListRequest) ValidateAll() error

ValidateAll checks the field values on TradingTokenCollectorListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TradingTokenCollectorListRequestMultiError, or nil if none found.

type TradingTokenCollectorListRequestMultiError

type TradingTokenCollectorListRequestMultiError []error

TradingTokenCollectorListRequestMultiError is an error wrapping multiple validation errors returned by TradingTokenCollectorListRequest.ValidateAll() if the designated constraints aren't met.

func (TradingTokenCollectorListRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (TradingTokenCollectorListRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TradingTokenCollectorListRequestValidationError

type TradingTokenCollectorListRequestValidationError struct {
	// contains filtered or unexported fields
}

TradingTokenCollectorListRequestValidationError is the validation error returned by TradingTokenCollectorListRequest.Validate if the designated constraints aren't met.

func (TradingTokenCollectorListRequestValidationError) Cause

Cause function returns cause value.

func (TradingTokenCollectorListRequestValidationError) Error

Error satisfies the builtin error interface

func (TradingTokenCollectorListRequestValidationError) ErrorName

ErrorName returns error name.

func (TradingTokenCollectorListRequestValidationError) Field

Field function returns field value.

func (TradingTokenCollectorListRequestValidationError) Key

Key function returns key value.

func (TradingTokenCollectorListRequestValidationError) Reason

Reason function returns reason value.

type TradingTokenInfo

type TradingTokenInfo struct {
	Id          int64              `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId      int64              `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	TicketTopic string             `protobuf:"bytes,3,opt,name=ticket_topic,json=ticketTopic,proto3" json:"ticket_topic,omitempty"`
	OrderTopic  string             `protobuf:"bytes,4,opt,name=order_topic,json=orderTopic,proto3" json:"order_topic,omitempty"`
	Enable      bool               `protobuf:"varint,5,opt,name=enable,proto3" json:"enable,omitempty"`
	BuyEnable   bool               `protobuf:"varint,6,opt,name=buy_enable,json=buyEnable,proto3" json:"buy_enable,omitempty"`
	SellEnable  bool               `protobuf:"varint,7,opt,name=sell_enable,json=sellEnable,proto3" json:"sell_enable,omitempty"`
	Exchange    string             `protobuf:"bytes,8,opt,name=exchange,proto3" json:"exchange,omitempty"`
	Base        string             `protobuf:"bytes,9,opt,name=base,proto3" json:"base,omitempty"`
	Quote       string             `protobuf:"bytes,10,opt,name=quote,proto3" json:"quote,omitempty"`
	ExtraInfo   []byte             `protobuf:"bytes,11,opt,name=extra_info,json=extraInfo,proto3,oneof" json:"extra_info,omitempty"`
	Score       *int64             `protobuf:"varint,12,opt,name=score,proto3,oneof" json:"score,omitempty"`
	CreateAt    *datetime.DateTime `protobuf:"bytes,13,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"`
	UpdatedAt   *datetime.DateTime `protobuf:"bytes,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*TradingTokenInfo) Descriptor deprecated

func (*TradingTokenInfo) Descriptor() ([]byte, []int)

Deprecated: Use TradingTokenInfo.ProtoReflect.Descriptor instead.

func (*TradingTokenInfo) GetBase

func (x *TradingTokenInfo) GetBase() string

func (*TradingTokenInfo) GetBuyEnable

func (x *TradingTokenInfo) GetBuyEnable() bool

func (*TradingTokenInfo) GetCreateAt

func (x *TradingTokenInfo) GetCreateAt() *datetime.DateTime

func (*TradingTokenInfo) GetEnable

func (x *TradingTokenInfo) GetEnable() bool

func (*TradingTokenInfo) GetExchange

func (x *TradingTokenInfo) GetExchange() string

func (*TradingTokenInfo) GetExtraInfo

func (x *TradingTokenInfo) GetExtraInfo() []byte

func (*TradingTokenInfo) GetId

func (x *TradingTokenInfo) GetId() int64

func (*TradingTokenInfo) GetOrderTopic

func (x *TradingTokenInfo) GetOrderTopic() string

func (*TradingTokenInfo) GetQuote

func (x *TradingTokenInfo) GetQuote() string

func (*TradingTokenInfo) GetScore

func (x *TradingTokenInfo) GetScore() int64

func (*TradingTokenInfo) GetSellEnable

func (x *TradingTokenInfo) GetSellEnable() bool

func (*TradingTokenInfo) GetTicketTopic

func (x *TradingTokenInfo) GetTicketTopic() string

func (*TradingTokenInfo) GetUpdatedAt

func (x *TradingTokenInfo) GetUpdatedAt() *datetime.DateTime

func (*TradingTokenInfo) GetUserId

func (x *TradingTokenInfo) GetUserId() int64

func (*TradingTokenInfo) ProtoMessage

func (*TradingTokenInfo) ProtoMessage()

func (*TradingTokenInfo) ProtoReflect

func (x *TradingTokenInfo) ProtoReflect() protoreflect.Message

func (*TradingTokenInfo) Reset

func (x *TradingTokenInfo) Reset()

func (*TradingTokenInfo) String

func (x *TradingTokenInfo) String() string

func (*TradingTokenInfo) Validate

func (m *TradingTokenInfo) Validate() error

Validate checks the field values on TradingTokenInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TradingTokenInfo) ValidateAll

func (m *TradingTokenInfo) ValidateAll() error

ValidateAll checks the field values on TradingTokenInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TradingTokenInfoMultiError, or nil if none found.

type TradingTokenInfoMultiError

type TradingTokenInfoMultiError []error

TradingTokenInfoMultiError is an error wrapping multiple validation errors returned by TradingTokenInfo.ValidateAll() if the designated constraints aren't met.

func (TradingTokenInfoMultiError) AllErrors

func (m TradingTokenInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TradingTokenInfoMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TradingTokenInfoValidationError

type TradingTokenInfoValidationError struct {
	// contains filtered or unexported fields
}

TradingTokenInfoValidationError is the validation error returned by TradingTokenInfo.Validate if the designated constraints aren't met.

func (TradingTokenInfoValidationError) Cause

Cause function returns cause value.

func (TradingTokenInfoValidationError) Error

Error satisfies the builtin error interface

func (TradingTokenInfoValidationError) ErrorName

ErrorName returns error name.

func (TradingTokenInfoValidationError) Field

Field function returns field value.

func (TradingTokenInfoValidationError) Key

Key function returns key value.

func (TradingTokenInfoValidationError) Reason

Reason function returns reason value.

type TradingTokenServiceClient

type TradingTokenServiceClient interface {
	// grider service for web api
	APITradingTokenAdd(ctx context.Context, in *APITradingTokenAddRequest, opts ...grpc.CallOption) (*Reply, error)
	// grider service for web api
	APITradingTokenUpdate(ctx context.Context, in *APITradingTokenUpdateRequest, opts ...grpc.CallOption) (*Reply, error)
	// grider service
	TradingTokenCollectorList(ctx context.Context, in *TradingTokenCollectorListRequest, opts ...grpc.CallOption) (*TradingTokenCollectorListReply, error)
	// collector service
	// 申请交易某币种,
	// collector 开始订阅ticket,然后将数据发送到emitter
	// grider 根据emitter中的ticket信息在合适时间告知collector买卖下单
	// collector 开始监听订单信息然后将订单状态变更告知grider
	ApplyTradingToken(ctx context.Context, in *CollectorTradingTokenInfo, opts ...grpc.CallOption) (*TradingTokenApplyReply, error)
	// collector service
	CancelTradingToken(ctx context.Context, in *CollectorTradingTokenInfo, opts ...grpc.CallOption) (*TradingTokenCancelReply, error)
}

TradingTokenServiceClient is the client API for TradingTokenService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type TradingTokenServiceServer

type TradingTokenServiceServer interface {
	// grider service for web api
	APITradingTokenAdd(context.Context, *APITradingTokenAddRequest) (*Reply, error)
	// grider service for web api
	APITradingTokenUpdate(context.Context, *APITradingTokenUpdateRequest) (*Reply, error)
	// grider service
	TradingTokenCollectorList(context.Context, *TradingTokenCollectorListRequest) (*TradingTokenCollectorListReply, error)
	// collector service
	// 申请交易某币种,
	// collector 开始订阅ticket,然后将数据发送到emitter
	// grider 根据emitter中的ticket信息在合适时间告知collector买卖下单
	// collector 开始监听订单信息然后将订单状态变更告知grider
	ApplyTradingToken(context.Context, *CollectorTradingTokenInfo) (*TradingTokenApplyReply, error)
	// collector service
	CancelTradingToken(context.Context, *CollectorTradingTokenInfo) (*TradingTokenCancelReply, error)
	// contains filtered or unexported methods
}

TradingTokenServiceServer is the server API for TradingTokenService service. All implementations must embed UnimplementedTradingTokenServiceServer for forward compatibility

type UnimplementedBaseServiceServer

type UnimplementedBaseServiceServer struct {
}

UnimplementedBaseServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedBaseServiceServer) NotFound

type UnimplementedCollectorServiceServer

type UnimplementedCollectorServiceServer struct {
}

UnimplementedCollectorServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCollectorServiceServer) Login

func (UnimplementedCollectorServiceServer) Logout

func (UnimplementedCollectorServiceServer) Register

type UnimplementedCurrencyServiceServer

type UnimplementedCurrencyServiceServer struct {
}

UnimplementedCurrencyServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCurrencyServiceServer) BatchInsertOrUpdate

func (UnimplementedCurrencyServiceServer) Detail

func (UnimplementedCurrencyServiceServer) List

type UnimplementedHealthServer

type UnimplementedHealthServer struct {
}

UnimplementedHealthServer must be embedded to have forward compatible implementations.

func (UnimplementedHealthServer) Check

func (UnimplementedHealthServer) Watch

type UnimplementedHelloWorldServiceServer

type UnimplementedHelloWorldServiceServer struct {
}

UnimplementedHelloWorldServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedHelloWorldServiceServer) APIHelloWorld

type UnimplementedOrderServiceServer

type UnimplementedOrderServiceServer struct {
}

UnimplementedOrderServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOrderServiceServer) CreateOrder

type UnimplementedPingPongServiceServer

type UnimplementedPingPongServiceServer struct {
}

UnimplementedPingPongServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPingPongServiceServer) Ping

type UnimplementedTradingTokenServiceServer

type UnimplementedTradingTokenServiceServer struct {
}

UnimplementedTradingTokenServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTradingTokenServiceServer) APITradingTokenAdd

func (UnimplementedTradingTokenServiceServer) APITradingTokenUpdate

func (UnimplementedTradingTokenServiceServer) ApplyTradingToken

func (UnimplementedTradingTokenServiceServer) CancelTradingToken

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) ApiLogin

func (UnimplementedUserServiceServer) ApiLogout

func (UnimplementedUserServiceServer) ApiMailVerifyCode

func (UnimplementedUserServiceServer) ApiProxyApply

func (UnimplementedUserServiceServer) ApiRegister

func (UnimplementedUserServiceServer) ApiResetPwd

func (UnimplementedUserServiceServer) ApiResetPwdNoLogin

func (UnimplementedUserServiceServer) ApiUpdateUserInfo

type UnsafeBaseServiceServer

type UnsafeBaseServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeBaseServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BaseServiceServer will result in compilation errors.

type UnsafeCollectorServiceServer

type UnsafeCollectorServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeCollectorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CollectorServiceServer will result in compilation errors.

type UnsafeCurrencyServiceServer

type UnsafeCurrencyServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeCurrencyServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CurrencyServiceServer will result in compilation errors.

type UnsafeHealthServer

type UnsafeHealthServer interface {
	// contains filtered or unexported methods
}

UnsafeHealthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HealthServer will result in compilation errors.

type UnsafeHelloWorldServiceServer

type UnsafeHelloWorldServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeHelloWorldServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HelloWorldServiceServer will result in compilation errors.

type UnsafeOrderServiceServer

type UnsafeOrderServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeOrderServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrderServiceServer will result in compilation errors.

type UnsafePingPongServiceServer

type UnsafePingPongServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePingPongServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PingPongServiceServer will result in compilation errors.

type UnsafeTradingTokenServiceServer

type UnsafeTradingTokenServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTradingTokenServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TradingTokenServiceServer will result in compilation errors.

type UnsafeUserServiceServer

type UnsafeUserServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.

type UpdateUserInfoReply

type UpdateUserInfoReply struct {
	// contains filtered or unexported fields
}

func (*UpdateUserInfoReply) Descriptor deprecated

func (*UpdateUserInfoReply) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserInfoReply.ProtoReflect.Descriptor instead.

func (*UpdateUserInfoReply) ProtoMessage

func (*UpdateUserInfoReply) ProtoMessage()

func (*UpdateUserInfoReply) ProtoReflect

func (x *UpdateUserInfoReply) ProtoReflect() protoreflect.Message

func (*UpdateUserInfoReply) Reset

func (x *UpdateUserInfoReply) Reset()

func (*UpdateUserInfoReply) String

func (x *UpdateUserInfoReply) String() string

func (*UpdateUserInfoReply) Validate

func (m *UpdateUserInfoReply) Validate() error

Validate checks the field values on UpdateUserInfoReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateUserInfoReply) ValidateAll

func (m *UpdateUserInfoReply) ValidateAll() error

ValidateAll checks the field values on UpdateUserInfoReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserInfoReplyMultiError, or nil if none found.

type UpdateUserInfoReplyMultiError

type UpdateUserInfoReplyMultiError []error

UpdateUserInfoReplyMultiError is an error wrapping multiple validation errors returned by UpdateUserInfoReply.ValidateAll() if the designated constraints aren't met.

func (UpdateUserInfoReplyMultiError) AllErrors

func (m UpdateUserInfoReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserInfoReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserInfoReplyValidationError

type UpdateUserInfoReplyValidationError struct {
	// contains filtered or unexported fields
}

UpdateUserInfoReplyValidationError is the validation error returned by UpdateUserInfoReply.Validate if the designated constraints aren't met.

func (UpdateUserInfoReplyValidationError) Cause

Cause function returns cause value.

func (UpdateUserInfoReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserInfoReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserInfoReplyValidationError) Field

Field function returns field value.

func (UpdateUserInfoReplyValidationError) Key

Key function returns key value.

func (UpdateUserInfoReplyValidationError) Reason

Reason function returns reason value.

type UpdateUserInfoRequest

type UpdateUserInfoRequest struct {
	// contains filtered or unexported fields
}

func (*UpdateUserInfoRequest) Descriptor deprecated

func (*UpdateUserInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserInfoRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserInfoRequest) ProtoMessage

func (*UpdateUserInfoRequest) ProtoMessage()

func (*UpdateUserInfoRequest) ProtoReflect

func (x *UpdateUserInfoRequest) ProtoReflect() protoreflect.Message

func (*UpdateUserInfoRequest) Reset

func (x *UpdateUserInfoRequest) Reset()

func (*UpdateUserInfoRequest) String

func (x *UpdateUserInfoRequest) String() string

func (*UpdateUserInfoRequest) Validate

func (m *UpdateUserInfoRequest) Validate() error

Validate checks the field values on UpdateUserInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateUserInfoRequest) ValidateAll

func (m *UpdateUserInfoRequest) ValidateAll() error

ValidateAll checks the field values on UpdateUserInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserInfoRequestMultiError, or nil if none found.

type UpdateUserInfoRequestMultiError

type UpdateUserInfoRequestMultiError []error

UpdateUserInfoRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserInfoRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateUserInfoRequestMultiError) AllErrors

func (m UpdateUserInfoRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateUserInfoRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateUserInfoRequestValidationError

type UpdateUserInfoRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateUserInfoRequestValidationError is the validation error returned by UpdateUserInfoRequest.Validate if the designated constraints aren't met.

func (UpdateUserInfoRequestValidationError) Cause

Cause function returns cause value.

func (UpdateUserInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserInfoRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserInfoRequestValidationError) Field

Field function returns field value.

func (UpdateUserInfoRequestValidationError) Key

Key function returns key value.

func (UpdateUserInfoRequestValidationError) Reason

Reason function returns reason value.

type UserServiceClient

type UserServiceClient interface {
	ApiMailVerifyCode(ctx context.Context, in *MailVerifyCodeRequest, opts ...grpc.CallOption) (*MailVerifyCodeReply, error)
	ApiRegister(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*LoginReply, error)
	ApiLogin(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error)
	ApiLogout(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Reply, error)
	ApiResetPwd(ctx context.Context, in *ResetPwdRequest, opts ...grpc.CallOption) (*Reply, error)
	ApiResetPwdNoLogin(ctx context.Context, in *ResetPwdNoLoginRequest, opts ...grpc.CallOption) (*Reply, error)
	ApiUpdateUserInfo(ctx context.Context, in *UpdateUserInfoRequest, opts ...grpc.CallOption) (*UpdateUserInfoReply, error)
	ApiProxyApply(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Reply, error)
}

UserServiceClient is the client API for UserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type UserServiceServer

type UserServiceServer interface {
	ApiMailVerifyCode(context.Context, *MailVerifyCodeRequest) (*MailVerifyCodeReply, error)
	ApiRegister(context.Context, *RegisterRequest) (*LoginReply, error)
	ApiLogin(context.Context, *LoginRequest) (*LoginReply, error)
	ApiLogout(context.Context, *EmptyRequest) (*Reply, error)
	ApiResetPwd(context.Context, *ResetPwdRequest) (*Reply, error)
	ApiResetPwdNoLogin(context.Context, *ResetPwdNoLoginRequest) (*Reply, error)
	ApiUpdateUserInfo(context.Context, *UpdateUserInfoRequest) (*UpdateUserInfoReply, error)
	ApiProxyApply(context.Context, *EmptyRequest) (*Reply, error)
	// contains filtered or unexported methods
}

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility

type VerifyCodeType

type VerifyCodeType int32
const (
	VerifyCodeType_register VerifyCodeType = 0
	VerifyCodeType_login    VerifyCodeType = 1
)

func (VerifyCodeType) Descriptor

func (VerifyCodeType) Enum

func (x VerifyCodeType) Enum() *VerifyCodeType

func (VerifyCodeType) EnumDescriptor deprecated

func (VerifyCodeType) EnumDescriptor() ([]byte, []int)

Deprecated: Use VerifyCodeType.Descriptor instead.

func (VerifyCodeType) Number

func (VerifyCodeType) String

func (x VerifyCodeType) String() string

func (VerifyCodeType) Type

type VerifyType

type VerifyType int32
const (
	VerifyType_email VerifyType = 0
	VerifyType_phone VerifyType = 1
)

func (VerifyType) Descriptor

func (VerifyType) Descriptor() protoreflect.EnumDescriptor

func (VerifyType) Enum

func (x VerifyType) Enum() *VerifyType

func (VerifyType) EnumDescriptor deprecated

func (VerifyType) EnumDescriptor() ([]byte, []int)

Deprecated: Use VerifyType.Descriptor instead.

func (VerifyType) Number

func (x VerifyType) Number() protoreflect.EnumNumber

func (VerifyType) String

func (x VerifyType) String() string

func (VerifyType) Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL