Documentation ¶
Overview ¶
Package utlcore is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package utlcore is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterCaptchaHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCaptchaHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CaptchaClient) error
- func RegisterCaptchaHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCaptchaServer(s *grpc.Server, srv CaptchaServer)
- func RegisterEmailServer(s *grpc.Server, srv EmailServer)
- func RegisterGAuthServer(s *grpc.Server, srv GAuthServer)
- func RegisterSmsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSmsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SmsClient) error
- func RegisterSmsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSmsServer(s *grpc.Server, srv SmsServer)
- type CaptchaClient
- type CaptchaRequest
- func (*CaptchaRequest) Descriptor() ([]byte, []int)
- func (*CaptchaRequest) ProtoMessage()
- func (m *CaptchaRequest) Reset()
- func (m *CaptchaRequest) String() string
- func (m *CaptchaRequest) XXX_DiscardUnknown()
- func (m *CaptchaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CaptchaRequest) XXX_Merge(src proto.Message)
- func (m *CaptchaRequest) XXX_Size() int
- func (m *CaptchaRequest) XXX_Unmarshal(b []byte) error
- type CaptchaResponse
- func (*CaptchaResponse) Descriptor() ([]byte, []int)
- func (m *CaptchaResponse) GetCaptcha() isCaptchaResponse_Captcha
- func (m *CaptchaResponse) GetGraph() *GraphicalCaptchaResponse
- func (m *CaptchaResponse) GetGt() *GeetestCaptchaResponse
- func (m *CaptchaResponse) GetType() CaptchaResponse_Type
- func (*CaptchaResponse) ProtoMessage()
- func (m *CaptchaResponse) Reset()
- func (m *CaptchaResponse) String() string
- func (m *CaptchaResponse) XXX_DiscardUnknown()
- func (m *CaptchaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CaptchaResponse) XXX_Merge(src proto.Message)
- func (*CaptchaResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *CaptchaResponse) XXX_Size() int
- func (m *CaptchaResponse) XXX_Unmarshal(b []byte) error
- type CaptchaResponse_Graph
- type CaptchaResponse_Gt
- type CaptchaResponse_Type
- type CaptchaServer
- type CaptchaVerifyRequest
- func (*CaptchaVerifyRequest) Descriptor() ([]byte, []int)
- func (m *CaptchaVerifyRequest) GetContent() isCaptchaVerifyRequest_Content
- func (m *CaptchaVerifyRequest) GetGraph() *GraphicalCaptchaVerify
- func (m *CaptchaVerifyRequest) GetGt() *GeetestCaptchaVerify
- func (m *CaptchaVerifyRequest) GetType() CaptchaResponse_Type
- func (*CaptchaVerifyRequest) ProtoMessage()
- func (m *CaptchaVerifyRequest) Reset()
- func (m *CaptchaVerifyRequest) String() string
- func (m *CaptchaVerifyRequest) XXX_DiscardUnknown()
- func (m *CaptchaVerifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CaptchaVerifyRequest) XXX_Merge(src proto.Message)
- func (*CaptchaVerifyRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *CaptchaVerifyRequest) XXX_Size() int
- func (m *CaptchaVerifyRequest) XXX_Unmarshal(b []byte) error
- type CaptchaVerifyRequest_Graph
- type CaptchaVerifyRequest_Gt
- type Captcha_GetCaptchaClient
- type Captcha_GetCaptchaServer
- type CheckPhoneRequest
- func (*CheckPhoneRequest) Descriptor() ([]byte, []int)
- func (m *CheckPhoneRequest) GetPhoneNumber() string
- func (*CheckPhoneRequest) ProtoMessage()
- func (m *CheckPhoneRequest) Reset()
- func (m *CheckPhoneRequest) String() string
- func (m *CheckPhoneRequest) XXX_DiscardUnknown()
- func (m *CheckPhoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CheckPhoneRequest) XXX_Merge(src proto.Message)
- func (m *CheckPhoneRequest) XXX_Size() int
- func (m *CheckPhoneRequest) XXX_Unmarshal(b []byte) error
- type EmailCheckRequest
- func (*EmailCheckRequest) Descriptor() ([]byte, []int)
- func (m *EmailCheckRequest) GetEmail() string
- func (*EmailCheckRequest) ProtoMessage()
- func (m *EmailCheckRequest) Reset()
- func (m *EmailCheckRequest) String() string
- func (m *EmailCheckRequest) XXX_DiscardUnknown()
- func (m *EmailCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *EmailCheckRequest) XXX_Merge(src proto.Message)
- func (m *EmailCheckRequest) XXX_Size() int
- func (m *EmailCheckRequest) XXX_Unmarshal(b []byte) error
- type EmailClient
- type EmailRequest
- func (*EmailRequest) Descriptor() ([]byte, []int)
- func (m *EmailRequest) GetEmail() string
- func (m *EmailRequest) GetLanguage() LanguageType
- func (m *EmailRequest) GetType() EmailRequest_Type
- func (*EmailRequest) ProtoMessage()
- func (m *EmailRequest) Reset()
- func (m *EmailRequest) String() string
- func (m *EmailRequest) XXX_DiscardUnknown()
- func (m *EmailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *EmailRequest) XXX_Merge(src proto.Message)
- func (m *EmailRequest) XXX_Size() int
- func (m *EmailRequest) XXX_Unmarshal(b []byte) error
- type EmailRequest_Type
- type EmailResponse
- func (*EmailResponse) Descriptor() ([]byte, []int)
- func (m *EmailResponse) GetDayLimit() int64
- func (m *EmailResponse) GetExpire() int64
- func (m *EmailResponse) GetHourLimit() int64
- func (m *EmailResponse) GetMinuteLimit() int64
- func (m *EmailResponse) GetStatus() StatusCode
- func (*EmailResponse) ProtoMessage()
- func (m *EmailResponse) Reset()
- func (m *EmailResponse) String() string
- func (m *EmailResponse) XXX_DiscardUnknown()
- func (m *EmailResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *EmailResponse) XXX_Merge(src proto.Message)
- func (m *EmailResponse) XXX_Size() int
- func (m *EmailResponse) XXX_Unmarshal(b []byte) error
- type EmailServer
- type EmailVerifyRequest
- func (*EmailVerifyRequest) Descriptor() ([]byte, []int)
- func (m *EmailVerifyRequest) GetAuthCode() string
- func (m *EmailVerifyRequest) GetEmail() string
- func (m *EmailVerifyRequest) GetType() EmailRequest_Type
- func (*EmailVerifyRequest) ProtoMessage()
- func (m *EmailVerifyRequest) Reset()
- func (m *EmailVerifyRequest) String() string
- func (m *EmailVerifyRequest) XXX_DiscardUnknown()
- func (m *EmailVerifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *EmailVerifyRequest) XXX_Merge(src proto.Message)
- func (m *EmailVerifyRequest) XXX_Size() int
- func (m *EmailVerifyRequest) XXX_Unmarshal(b []byte) error
- type GASecretRequest
- func (*GASecretRequest) Descriptor() ([]byte, []int)
- func (*GASecretRequest) ProtoMessage()
- func (m *GASecretRequest) Reset()
- func (m *GASecretRequest) String() string
- func (m *GASecretRequest) XXX_DiscardUnknown()
- func (m *GASecretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GASecretRequest) XXX_Merge(src proto.Message)
- func (m *GASecretRequest) XXX_Size() int
- func (m *GASecretRequest) XXX_Unmarshal(b []byte) error
- type GASecretResponse
- func (*GASecretResponse) Descriptor() ([]byte, []int)
- func (m *GASecretResponse) GetSecret() string
- func (*GASecretResponse) ProtoMessage()
- func (m *GASecretResponse) Reset()
- func (m *GASecretResponse) String() string
- func (m *GASecretResponse) XXX_DiscardUnknown()
- func (m *GASecretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GASecretResponse) XXX_Merge(src proto.Message)
- func (m *GASecretResponse) XXX_Size() int
- func (m *GASecretResponse) XXX_Unmarshal(b []byte) error
- type GAVerifyRequest
- func (*GAVerifyRequest) Descriptor() ([]byte, []int)
- func (m *GAVerifyRequest) GetAuthCode() string
- func (m *GAVerifyRequest) GetSecret() string
- func (*GAVerifyRequest) ProtoMessage()
- func (m *GAVerifyRequest) Reset()
- func (m *GAVerifyRequest) String() string
- func (m *GAVerifyRequest) XXX_DiscardUnknown()
- func (m *GAVerifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GAVerifyRequest) XXX_Merge(src proto.Message)
- func (m *GAVerifyRequest) XXX_Size() int
- func (m *GAVerifyRequest) XXX_Unmarshal(b []byte) error
- type GAuthClient
- type GAuthServer
- type GeetestCaptchaResponse
- func (*GeetestCaptchaResponse) Descriptor() ([]byte, []int)
- func (m *GeetestCaptchaResponse) GetChallenge() string
- func (*GeetestCaptchaResponse) ProtoMessage()
- func (m *GeetestCaptchaResponse) Reset()
- func (m *GeetestCaptchaResponse) String() string
- func (m *GeetestCaptchaResponse) XXX_DiscardUnknown()
- func (m *GeetestCaptchaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GeetestCaptchaResponse) XXX_Merge(src proto.Message)
- func (m *GeetestCaptchaResponse) XXX_Size() int
- func (m *GeetestCaptchaResponse) XXX_Unmarshal(b []byte) error
- type GeetestCaptchaVerify
- func (*GeetestCaptchaVerify) Descriptor() ([]byte, []int)
- func (m *GeetestCaptchaVerify) GetGtChallenge() string
- func (m *GeetestCaptchaVerify) GetGtSeccode() string
- func (m *GeetestCaptchaVerify) GetGtValidate() string
- func (*GeetestCaptchaVerify) ProtoMessage()
- func (m *GeetestCaptchaVerify) Reset()
- func (m *GeetestCaptchaVerify) String() string
- func (m *GeetestCaptchaVerify) XXX_DiscardUnknown()
- func (m *GeetestCaptchaVerify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GeetestCaptchaVerify) XXX_Merge(src proto.Message)
- func (m *GeetestCaptchaVerify) XXX_Size() int
- func (m *GeetestCaptchaVerify) XXX_Unmarshal(b []byte) error
- type GraphicalCaptchaResponse
- func (*GraphicalCaptchaResponse) Descriptor() ([]byte, []int)
- func (m *GraphicalCaptchaResponse) GetGraph() []byte
- func (*GraphicalCaptchaResponse) ProtoMessage()
- func (m *GraphicalCaptchaResponse) Reset()
- func (m *GraphicalCaptchaResponse) String() string
- func (m *GraphicalCaptchaResponse) XXX_DiscardUnknown()
- func (m *GraphicalCaptchaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GraphicalCaptchaResponse) XXX_Merge(src proto.Message)
- func (m *GraphicalCaptchaResponse) XXX_Size() int
- func (m *GraphicalCaptchaResponse) XXX_Unmarshal(b []byte) error
- type GraphicalCaptchaVerify
- func (*GraphicalCaptchaVerify) Descriptor() ([]byte, []int)
- func (m *GraphicalCaptchaVerify) GetAuthCode() string
- func (*GraphicalCaptchaVerify) ProtoMessage()
- func (m *GraphicalCaptchaVerify) Reset()
- func (m *GraphicalCaptchaVerify) String() string
- func (m *GraphicalCaptchaVerify) XXX_DiscardUnknown()
- func (m *GraphicalCaptchaVerify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GraphicalCaptchaVerify) XXX_Merge(src proto.Message)
- func (m *GraphicalCaptchaVerify) XXX_Size() int
- func (m *GraphicalCaptchaVerify) XXX_Unmarshal(b []byte) error
- type LanguageType
- type SMSRequest
- func (*SMSRequest) Descriptor() ([]byte, []int)
- func (m *SMSRequest) GetAaa() SMSRequest_Type
- func (m *SMSRequest) GetContent() string
- func (m *SMSRequest) GetPhoneNumber() string
- func (*SMSRequest) ProtoMessage()
- func (m *SMSRequest) Reset()
- func (m *SMSRequest) String() string
- func (m *SMSRequest) XXX_DiscardUnknown()
- func (m *SMSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SMSRequest) XXX_Merge(src proto.Message)
- func (m *SMSRequest) XXX_Size() int
- func (m *SMSRequest) XXX_Unmarshal(b []byte) error
- type SMSRequest_Type
- type SMSResponse
- func (*SMSResponse) Descriptor() ([]byte, []int)
- func (m *SMSResponse) GetDayLimit() int64
- func (m *SMSResponse) GetExpire() int64
- func (m *SMSResponse) GetHourLimit() int64
- func (m *SMSResponse) GetMinuteLimit() int64
- func (m *SMSResponse) GetStatus() StatusCode
- func (*SMSResponse) ProtoMessage()
- func (m *SMSResponse) Reset()
- func (m *SMSResponse) String() string
- func (m *SMSResponse) XXX_DiscardUnknown()
- func (m *SMSResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SMSResponse) XXX_Merge(src proto.Message)
- func (m *SMSResponse) XXX_Size() int
- func (m *SMSResponse) XXX_Unmarshal(b []byte) error
- type SMSVerifyRequest
- func (*SMSVerifyRequest) Descriptor() ([]byte, []int)
- func (m *SMSVerifyRequest) GetAuthCode() string
- func (m *SMSVerifyRequest) GetPhoneNumber() string
- func (m *SMSVerifyRequest) GetType() SMSRequest_Type
- func (*SMSVerifyRequest) ProtoMessage()
- func (m *SMSVerifyRequest) Reset()
- func (m *SMSVerifyRequest) String() string
- func (m *SMSVerifyRequest) XXX_DiscardUnknown()
- func (m *SMSVerifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SMSVerifyRequest) XXX_Merge(src proto.Message)
- func (m *SMSVerifyRequest) XXX_Size() int
- func (m *SMSVerifyRequest) XXX_Unmarshal(b []byte) error
- type ServerStatus
- func (*ServerStatus) Descriptor() ([]byte, []int)
- func (m *ServerStatus) GetStatus() StatusCode
- func (*ServerStatus) ProtoMessage()
- func (m *ServerStatus) Reset()
- func (m *ServerStatus) String() string
- func (m *ServerStatus) XXX_DiscardUnknown()
- func (m *ServerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ServerStatus) XXX_Merge(src proto.Message)
- func (m *ServerStatus) XXX_Size() int
- func (m *ServerStatus) XXX_Unmarshal(b []byte) error
- type SmsClient
- type SmsServer
- type StatusCode
Constants ¶
This section is empty.
Variables ¶
var CaptchaResponse_Type_name = map[int32]string{
0: "UNDEFINED",
1: "GEETEST",
2: "GRAPHICAL",
}
var CaptchaResponse_Type_value = map[string]int32{
"UNDEFINED": 0,
"GEETEST": 1,
"GRAPHICAL": 2,
}
var EmailRequest_Type_name = map[int32]string{
0: "UNDEFINED",
1: "ACTIVATION",
2: "WELCOME",
3: "BIND_PHONE_NUMBER",
4: "CHANGE_PHONE_NUMBER",
5: "RESET_PASSWORD",
6: "RESET_CURRENCY_PASSWORD",
7: "WITHDRAW_DEPOSIT",
8: "CREATE_API_KEY",
}
var EmailRequest_Type_value = map[string]int32{
"UNDEFINED": 0,
"ACTIVATION": 1,
"WELCOME": 2,
"BIND_PHONE_NUMBER": 3,
"CHANGE_PHONE_NUMBER": 4,
"RESET_PASSWORD": 5,
"RESET_CURRENCY_PASSWORD": 6,
"WITHDRAW_DEPOSIT": 7,
"CREATE_API_KEY": 8,
}
var LanguageType_name = map[int32]string{
0: "UNDEFINED",
1: "CN",
2: "EN",
3: "KR",
4: "JP",
}
var LanguageType_value = map[string]int32{
"UNDEFINED": 0,
"CN": 1,
"EN": 2,
"KR": 3,
"JP": 4,
}
var SMSRequest_Type_name = map[int32]string{
0: "UNDEFINED",
1: "REGISTER",
2: "LOGIN",
3: "LOGIN_NOTICE",
4: "CHANGE_PASSWORD",
5: "RESET_PASSWORD",
6: "BIND_PHONE_NUMBER",
7: "CHANGE_OLD_PHONE",
8: "CHANGE_NEW_PHONE",
9: "BIND_GA",
10: "RESET_GA",
11: "SET_CURRENCY_PASSWORD",
12: "RESET_CURRENCY_PASSWORD",
13: "CURRENCY_NO_PASSWORD",
14: "ADD_WITHDRAW_ADDRESS",
15: "WITHDRAW_DEPOSIT",
16: "WITHDRAW_CONFIRM",
17: "WITHDRAW_NOTICE",
18: "CREATE_API_KEY",
19: "CHECK_API_KEY",
}
var SMSRequest_Type_value = map[string]int32{
"UNDEFINED": 0,
"REGISTER": 1,
"LOGIN": 2,
"LOGIN_NOTICE": 3,
"CHANGE_PASSWORD": 4,
"RESET_PASSWORD": 5,
"BIND_PHONE_NUMBER": 6,
"CHANGE_OLD_PHONE": 7,
"CHANGE_NEW_PHONE": 8,
"BIND_GA": 9,
"RESET_GA": 10,
"SET_CURRENCY_PASSWORD": 11,
"RESET_CURRENCY_PASSWORD": 12,
"CURRENCY_NO_PASSWORD": 13,
"ADD_WITHDRAW_ADDRESS": 14,
"WITHDRAW_DEPOSIT": 15,
"WITHDRAW_CONFIRM": 16,
"WITHDRAW_NOTICE": 17,
"CREATE_API_KEY": 18,
"CHECK_API_KEY": 19,
}
var StatusCode_name = map[int32]string{
0: "SUCCESS",
1: "FAILED",
2: "SMS_SEND_TRY",
3: "SMS_MINUTE_LIMIT",
4: "SMS_HOUR_LIMIT",
5: "SMS_DAY_LIMIT",
6: "SMS_PHONE_NOT_EXISTS",
7: "EMAIL_MINUTE_LIMIT",
8: "EMAIL_HOUR_LIMIT",
9: "EMAIL_DAY_LIMIT",
}
var StatusCode_value = map[string]int32{
"SUCCESS": 0,
"FAILED": 1,
"SMS_SEND_TRY": 2,
"SMS_MINUTE_LIMIT": 3,
"SMS_HOUR_LIMIT": 4,
"SMS_DAY_LIMIT": 5,
"SMS_PHONE_NOT_EXISTS": 6,
"EMAIL_MINUTE_LIMIT": 7,
"EMAIL_HOUR_LIMIT": 8,
"EMAIL_DAY_LIMIT": 9,
}
Functions ¶
func RegisterCaptchaHandler ¶
func RegisterCaptchaHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterCaptchaHandler registers the http handlers for service Captcha to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCaptchaHandlerClient ¶
func RegisterCaptchaHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CaptchaClient) error
RegisterCaptchaHandlerClient registers the http handlers for service Captcha to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CaptchaClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CaptchaClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CaptchaClient" to call the correct interceptors.
func RegisterCaptchaHandlerFromEndpoint ¶
func RegisterCaptchaHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterCaptchaHandlerFromEndpoint is same as RegisterCaptchaHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterCaptchaServer ¶
func RegisterCaptchaServer(s *grpc.Server, srv CaptchaServer)
func RegisterEmailServer ¶
func RegisterEmailServer(s *grpc.Server, srv EmailServer)
func RegisterGAuthServer ¶
func RegisterGAuthServer(s *grpc.Server, srv GAuthServer)
func RegisterSmsHandler ¶
RegisterSmsHandler registers the http handlers for service Sms to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSmsHandlerClient ¶
RegisterSmsHandlerClient registers the http handlers for service Sms to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SmsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SmsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SmsClient" to call the correct interceptors.
func RegisterSmsHandlerFromEndpoint ¶
func RegisterSmsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSmsHandlerFromEndpoint is same as RegisterSmsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSmsServer ¶
Types ¶
type CaptchaClient ¶
type CaptchaClient interface { GetCaptcha(ctx context.Context, in *CaptchaRequest, opts ...grpc.CallOption) (Captcha_GetCaptchaClient, error) VerifyCaptcha(ctx context.Context, in *CaptchaVerifyRequest, opts ...grpc.CallOption) (*ServerStatus, error) }
CaptchaClient is the client API for Captcha service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCaptchaClient ¶
func NewCaptchaClient(cc *grpc.ClientConn) CaptchaClient
type CaptchaRequest ¶
type CaptchaRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CaptchaRequest) Descriptor ¶
func (*CaptchaRequest) Descriptor() ([]byte, []int)
func (*CaptchaRequest) ProtoMessage ¶
func (*CaptchaRequest) ProtoMessage()
func (*CaptchaRequest) Reset ¶
func (m *CaptchaRequest) Reset()
func (*CaptchaRequest) String ¶
func (m *CaptchaRequest) String() string
func (*CaptchaRequest) XXX_DiscardUnknown ¶
func (m *CaptchaRequest) XXX_DiscardUnknown()
func (*CaptchaRequest) XXX_Marshal ¶
func (m *CaptchaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CaptchaRequest) XXX_Merge ¶
func (dst *CaptchaRequest) XXX_Merge(src proto.Message)
func (*CaptchaRequest) XXX_Size ¶
func (m *CaptchaRequest) XXX_Size() int
func (*CaptchaRequest) XXX_Unmarshal ¶
func (m *CaptchaRequest) XXX_Unmarshal(b []byte) error
type CaptchaResponse ¶
type CaptchaResponse struct { Type CaptchaResponse_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.CaptchaResponse_Type" json:"type,omitempty"` // Types that are valid to be assigned to Captcha: // *CaptchaResponse_Gt // *CaptchaResponse_Graph Captcha isCaptchaResponse_Captcha `protobuf_oneof:"captcha"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CaptchaResponse) Descriptor ¶
func (*CaptchaResponse) Descriptor() ([]byte, []int)
func (*CaptchaResponse) GetCaptcha ¶
func (m *CaptchaResponse) GetCaptcha() isCaptchaResponse_Captcha
func (*CaptchaResponse) GetGraph ¶
func (m *CaptchaResponse) GetGraph() *GraphicalCaptchaResponse
func (*CaptchaResponse) GetGt ¶
func (m *CaptchaResponse) GetGt() *GeetestCaptchaResponse
func (*CaptchaResponse) GetType ¶
func (m *CaptchaResponse) GetType() CaptchaResponse_Type
func (*CaptchaResponse) ProtoMessage ¶
func (*CaptchaResponse) ProtoMessage()
func (*CaptchaResponse) Reset ¶
func (m *CaptchaResponse) Reset()
func (*CaptchaResponse) String ¶
func (m *CaptchaResponse) String() string
func (*CaptchaResponse) XXX_DiscardUnknown ¶
func (m *CaptchaResponse) XXX_DiscardUnknown()
func (*CaptchaResponse) XXX_Marshal ¶
func (m *CaptchaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CaptchaResponse) XXX_Merge ¶
func (dst *CaptchaResponse) XXX_Merge(src proto.Message)
func (*CaptchaResponse) XXX_OneofFuncs ¶
func (*CaptchaResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*CaptchaResponse) XXX_Size ¶
func (m *CaptchaResponse) XXX_Size() int
func (*CaptchaResponse) XXX_Unmarshal ¶
func (m *CaptchaResponse) XXX_Unmarshal(b []byte) error
type CaptchaResponse_Graph ¶
type CaptchaResponse_Graph struct {
Graph *GraphicalCaptchaResponse `protobuf:"bytes,3,opt,name=graph,proto3,oneof"`
}
type CaptchaResponse_Gt ¶
type CaptchaResponse_Gt struct {
Gt *GeetestCaptchaResponse `protobuf:"bytes,2,opt,name=gt,proto3,oneof"`
}
type CaptchaResponse_Type ¶
type CaptchaResponse_Type int32
const ( CaptchaResponse_UNDEFINED CaptchaResponse_Type = 0 CaptchaResponse_GEETEST CaptchaResponse_Type = 1 CaptchaResponse_GRAPHICAL CaptchaResponse_Type = 2 )
func (CaptchaResponse_Type) EnumDescriptor ¶
func (CaptchaResponse_Type) EnumDescriptor() ([]byte, []int)
func (CaptchaResponse_Type) String ¶
func (x CaptchaResponse_Type) String() string
type CaptchaServer ¶
type CaptchaServer interface { GetCaptcha(*CaptchaRequest, Captcha_GetCaptchaServer) error VerifyCaptcha(context.Context, *CaptchaVerifyRequest) (*ServerStatus, error) }
CaptchaServer is the server API for Captcha service.
type CaptchaVerifyRequest ¶
type CaptchaVerifyRequest struct { Type CaptchaResponse_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.CaptchaResponse_Type" json:"type,omitempty"` // Types that are valid to be assigned to Content: // *CaptchaVerifyRequest_Gt // *CaptchaVerifyRequest_Graph Content isCaptchaVerifyRequest_Content `protobuf_oneof:"content"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CaptchaVerifyRequest) Descriptor ¶
func (*CaptchaVerifyRequest) Descriptor() ([]byte, []int)
func (*CaptchaVerifyRequest) GetContent ¶
func (m *CaptchaVerifyRequest) GetContent() isCaptchaVerifyRequest_Content
func (*CaptchaVerifyRequest) GetGraph ¶
func (m *CaptchaVerifyRequest) GetGraph() *GraphicalCaptchaVerify
func (*CaptchaVerifyRequest) GetGt ¶
func (m *CaptchaVerifyRequest) GetGt() *GeetestCaptchaVerify
func (*CaptchaVerifyRequest) GetType ¶
func (m *CaptchaVerifyRequest) GetType() CaptchaResponse_Type
func (*CaptchaVerifyRequest) ProtoMessage ¶
func (*CaptchaVerifyRequest) ProtoMessage()
func (*CaptchaVerifyRequest) Reset ¶
func (m *CaptchaVerifyRequest) Reset()
func (*CaptchaVerifyRequest) String ¶
func (m *CaptchaVerifyRequest) String() string
func (*CaptchaVerifyRequest) XXX_DiscardUnknown ¶
func (m *CaptchaVerifyRequest) XXX_DiscardUnknown()
func (*CaptchaVerifyRequest) XXX_Marshal ¶
func (m *CaptchaVerifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CaptchaVerifyRequest) XXX_Merge ¶
func (dst *CaptchaVerifyRequest) XXX_Merge(src proto.Message)
func (*CaptchaVerifyRequest) XXX_OneofFuncs ¶
func (*CaptchaVerifyRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*CaptchaVerifyRequest) XXX_Size ¶
func (m *CaptchaVerifyRequest) XXX_Size() int
func (*CaptchaVerifyRequest) XXX_Unmarshal ¶
func (m *CaptchaVerifyRequest) XXX_Unmarshal(b []byte) error
type CaptchaVerifyRequest_Graph ¶
type CaptchaVerifyRequest_Graph struct {
Graph *GraphicalCaptchaVerify `protobuf:"bytes,3,opt,name=graph,proto3,oneof"`
}
type CaptchaVerifyRequest_Gt ¶
type CaptchaVerifyRequest_Gt struct {
Gt *GeetestCaptchaVerify `protobuf:"bytes,2,opt,name=gt,proto3,oneof"`
}
type Captcha_GetCaptchaClient ¶
type Captcha_GetCaptchaClient interface { Recv() (*CaptchaResponse, error) grpc.ClientStream }
type Captcha_GetCaptchaServer ¶
type Captcha_GetCaptchaServer interface { Send(*CaptchaResponse) error grpc.ServerStream }
type CheckPhoneRequest ¶
type CheckPhoneRequest struct { PhoneNumber string `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CheckPhoneRequest) Descriptor ¶
func (*CheckPhoneRequest) Descriptor() ([]byte, []int)
func (*CheckPhoneRequest) GetPhoneNumber ¶
func (m *CheckPhoneRequest) GetPhoneNumber() string
func (*CheckPhoneRequest) ProtoMessage ¶
func (*CheckPhoneRequest) ProtoMessage()
func (*CheckPhoneRequest) Reset ¶
func (m *CheckPhoneRequest) Reset()
func (*CheckPhoneRequest) String ¶
func (m *CheckPhoneRequest) String() string
func (*CheckPhoneRequest) XXX_DiscardUnknown ¶
func (m *CheckPhoneRequest) XXX_DiscardUnknown()
func (*CheckPhoneRequest) XXX_Marshal ¶
func (m *CheckPhoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CheckPhoneRequest) XXX_Merge ¶
func (dst *CheckPhoneRequest) XXX_Merge(src proto.Message)
func (*CheckPhoneRequest) XXX_Size ¶
func (m *CheckPhoneRequest) XXX_Size() int
func (*CheckPhoneRequest) XXX_Unmarshal ¶
func (m *CheckPhoneRequest) XXX_Unmarshal(b []byte) error
type EmailCheckRequest ¶
type EmailCheckRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EmailCheckRequest) Descriptor ¶
func (*EmailCheckRequest) Descriptor() ([]byte, []int)
func (*EmailCheckRequest) GetEmail ¶
func (m *EmailCheckRequest) GetEmail() string
func (*EmailCheckRequest) ProtoMessage ¶
func (*EmailCheckRequest) ProtoMessage()
func (*EmailCheckRequest) Reset ¶
func (m *EmailCheckRequest) Reset()
func (*EmailCheckRequest) String ¶
func (m *EmailCheckRequest) String() string
func (*EmailCheckRequest) XXX_DiscardUnknown ¶
func (m *EmailCheckRequest) XXX_DiscardUnknown()
func (*EmailCheckRequest) XXX_Marshal ¶
func (m *EmailCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EmailCheckRequest) XXX_Merge ¶
func (dst *EmailCheckRequest) XXX_Merge(src proto.Message)
func (*EmailCheckRequest) XXX_Size ¶
func (m *EmailCheckRequest) XXX_Size() int
func (*EmailCheckRequest) XXX_Unmarshal ¶
func (m *EmailCheckRequest) XXX_Unmarshal(b []byte) error
type EmailClient ¶
type EmailClient interface { SendEmail(ctx context.Context, in *EmailRequest, opts ...grpc.CallOption) (*EmailResponse, error) VerifyEmail(ctx context.Context, in *EmailVerifyRequest, opts ...grpc.CallOption) (*ServerStatus, error) CheckEmail(ctx context.Context, in *EmailCheckRequest, opts ...grpc.CallOption) (*ServerStatus, error) }
EmailClient is the client API for Email service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEmailClient ¶
func NewEmailClient(cc *grpc.ClientConn) EmailClient
type EmailRequest ¶
type EmailRequest struct { Type EmailRequest_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.EmailRequest_Type" json:"type,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Language LanguageType `protobuf:"varint,3,opt,name=language,proto3,enum=protos.LanguageType" json:"language,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EmailRequest) Descriptor ¶
func (*EmailRequest) Descriptor() ([]byte, []int)
func (*EmailRequest) GetEmail ¶
func (m *EmailRequest) GetEmail() string
func (*EmailRequest) GetLanguage ¶
func (m *EmailRequest) GetLanguage() LanguageType
func (*EmailRequest) GetType ¶
func (m *EmailRequest) GetType() EmailRequest_Type
func (*EmailRequest) ProtoMessage ¶
func (*EmailRequest) ProtoMessage()
func (*EmailRequest) Reset ¶
func (m *EmailRequest) Reset()
func (*EmailRequest) String ¶
func (m *EmailRequest) String() string
func (*EmailRequest) XXX_DiscardUnknown ¶
func (m *EmailRequest) XXX_DiscardUnknown()
func (*EmailRequest) XXX_Marshal ¶
func (m *EmailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EmailRequest) XXX_Merge ¶
func (dst *EmailRequest) XXX_Merge(src proto.Message)
func (*EmailRequest) XXX_Size ¶
func (m *EmailRequest) XXX_Size() int
func (*EmailRequest) XXX_Unmarshal ¶
func (m *EmailRequest) XXX_Unmarshal(b []byte) error
type EmailRequest_Type ¶
type EmailRequest_Type int32
const ( EmailRequest_UNDEFINED EmailRequest_Type = 0 EmailRequest_ACTIVATION EmailRequest_Type = 1 EmailRequest_WELCOME EmailRequest_Type = 2 EmailRequest_BIND_PHONE_NUMBER EmailRequest_Type = 3 EmailRequest_CHANGE_PHONE_NUMBER EmailRequest_Type = 4 EmailRequest_RESET_PASSWORD EmailRequest_Type = 5 EmailRequest_RESET_CURRENCY_PASSWORD EmailRequest_Type = 6 EmailRequest_WITHDRAW_DEPOSIT EmailRequest_Type = 7 EmailRequest_CREATE_API_KEY EmailRequest_Type = 8 )
func (EmailRequest_Type) EnumDescriptor ¶
func (EmailRequest_Type) EnumDescriptor() ([]byte, []int)
func (EmailRequest_Type) String ¶
func (x EmailRequest_Type) String() string
type EmailResponse ¶
type EmailResponse struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=protos.StatusCode" json:"status,omitempty"` DayLimit int64 `protobuf:"varint,2,opt,name=day_limit,json=dayLimit,proto3" json:"day_limit,omitempty"` HourLimit int64 `protobuf:"varint,3,opt,name=hour_limit,json=hourLimit,proto3" json:"hour_limit,omitempty"` MinuteLimit int64 `protobuf:"varint,4,opt,name=minute_limit,json=minuteLimit,proto3" json:"minute_limit,omitempty"` Expire int64 `protobuf:"varint,5,opt,name=expire,proto3" json:"expire,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EmailResponse) Descriptor ¶
func (*EmailResponse) Descriptor() ([]byte, []int)
func (*EmailResponse) GetDayLimit ¶
func (m *EmailResponse) GetDayLimit() int64
func (*EmailResponse) GetExpire ¶
func (m *EmailResponse) GetExpire() int64
func (*EmailResponse) GetHourLimit ¶
func (m *EmailResponse) GetHourLimit() int64
func (*EmailResponse) GetMinuteLimit ¶
func (m *EmailResponse) GetMinuteLimit() int64
func (*EmailResponse) GetStatus ¶
func (m *EmailResponse) GetStatus() StatusCode
func (*EmailResponse) ProtoMessage ¶
func (*EmailResponse) ProtoMessage()
func (*EmailResponse) Reset ¶
func (m *EmailResponse) Reset()
func (*EmailResponse) String ¶
func (m *EmailResponse) String() string
func (*EmailResponse) XXX_DiscardUnknown ¶
func (m *EmailResponse) XXX_DiscardUnknown()
func (*EmailResponse) XXX_Marshal ¶
func (m *EmailResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EmailResponse) XXX_Merge ¶
func (dst *EmailResponse) XXX_Merge(src proto.Message)
func (*EmailResponse) XXX_Size ¶
func (m *EmailResponse) XXX_Size() int
func (*EmailResponse) XXX_Unmarshal ¶
func (m *EmailResponse) XXX_Unmarshal(b []byte) error
type EmailServer ¶
type EmailServer interface { SendEmail(context.Context, *EmailRequest) (*EmailResponse, error) VerifyEmail(context.Context, *EmailVerifyRequest) (*ServerStatus, error) CheckEmail(context.Context, *EmailCheckRequest) (*ServerStatus, error) }
EmailServer is the server API for Email service.
type EmailVerifyRequest ¶
type EmailVerifyRequest struct { Type EmailRequest_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.EmailRequest_Type" json:"type,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` AuthCode string `protobuf:"bytes,3,opt,name=auth_code,json=authCode,proto3" json:"auth_code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EmailVerifyRequest) Descriptor ¶
func (*EmailVerifyRequest) Descriptor() ([]byte, []int)
func (*EmailVerifyRequest) GetAuthCode ¶
func (m *EmailVerifyRequest) GetAuthCode() string
func (*EmailVerifyRequest) GetEmail ¶
func (m *EmailVerifyRequest) GetEmail() string
func (*EmailVerifyRequest) GetType ¶
func (m *EmailVerifyRequest) GetType() EmailRequest_Type
func (*EmailVerifyRequest) ProtoMessage ¶
func (*EmailVerifyRequest) ProtoMessage()
func (*EmailVerifyRequest) Reset ¶
func (m *EmailVerifyRequest) Reset()
func (*EmailVerifyRequest) String ¶
func (m *EmailVerifyRequest) String() string
func (*EmailVerifyRequest) XXX_DiscardUnknown ¶
func (m *EmailVerifyRequest) XXX_DiscardUnknown()
func (*EmailVerifyRequest) XXX_Marshal ¶
func (m *EmailVerifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EmailVerifyRequest) XXX_Merge ¶
func (dst *EmailVerifyRequest) XXX_Merge(src proto.Message)
func (*EmailVerifyRequest) XXX_Size ¶
func (m *EmailVerifyRequest) XXX_Size() int
func (*EmailVerifyRequest) XXX_Unmarshal ¶
func (m *EmailVerifyRequest) XXX_Unmarshal(b []byte) error
type GASecretRequest ¶
type GASecretRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GASecretRequest) Descriptor ¶
func (*GASecretRequest) Descriptor() ([]byte, []int)
func (*GASecretRequest) ProtoMessage ¶
func (*GASecretRequest) ProtoMessage()
func (*GASecretRequest) Reset ¶
func (m *GASecretRequest) Reset()
func (*GASecretRequest) String ¶
func (m *GASecretRequest) String() string
func (*GASecretRequest) XXX_DiscardUnknown ¶
func (m *GASecretRequest) XXX_DiscardUnknown()
func (*GASecretRequest) XXX_Marshal ¶
func (m *GASecretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GASecretRequest) XXX_Merge ¶
func (dst *GASecretRequest) XXX_Merge(src proto.Message)
func (*GASecretRequest) XXX_Size ¶
func (m *GASecretRequest) XXX_Size() int
func (*GASecretRequest) XXX_Unmarshal ¶
func (m *GASecretRequest) XXX_Unmarshal(b []byte) error
type GASecretResponse ¶
type GASecretResponse struct { Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GASecretResponse) Descriptor ¶
func (*GASecretResponse) Descriptor() ([]byte, []int)
func (*GASecretResponse) GetSecret ¶
func (m *GASecretResponse) GetSecret() string
func (*GASecretResponse) ProtoMessage ¶
func (*GASecretResponse) ProtoMessage()
func (*GASecretResponse) Reset ¶
func (m *GASecretResponse) Reset()
func (*GASecretResponse) String ¶
func (m *GASecretResponse) String() string
func (*GASecretResponse) XXX_DiscardUnknown ¶
func (m *GASecretResponse) XXX_DiscardUnknown()
func (*GASecretResponse) XXX_Marshal ¶
func (m *GASecretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GASecretResponse) XXX_Merge ¶
func (dst *GASecretResponse) XXX_Merge(src proto.Message)
func (*GASecretResponse) XXX_Size ¶
func (m *GASecretResponse) XXX_Size() int
func (*GASecretResponse) XXX_Unmarshal ¶
func (m *GASecretResponse) XXX_Unmarshal(b []byte) error
type GAVerifyRequest ¶
type GAVerifyRequest struct { Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"` AuthCode string `protobuf:"bytes,2,opt,name=auth_code,json=authCode,proto3" json:"auth_code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GAVerifyRequest) Descriptor ¶
func (*GAVerifyRequest) Descriptor() ([]byte, []int)
func (*GAVerifyRequest) GetAuthCode ¶
func (m *GAVerifyRequest) GetAuthCode() string
func (*GAVerifyRequest) GetSecret ¶
func (m *GAVerifyRequest) GetSecret() string
func (*GAVerifyRequest) ProtoMessage ¶
func (*GAVerifyRequest) ProtoMessage()
func (*GAVerifyRequest) Reset ¶
func (m *GAVerifyRequest) Reset()
func (*GAVerifyRequest) String ¶
func (m *GAVerifyRequest) String() string
func (*GAVerifyRequest) XXX_DiscardUnknown ¶
func (m *GAVerifyRequest) XXX_DiscardUnknown()
func (*GAVerifyRequest) XXX_Marshal ¶
func (m *GAVerifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GAVerifyRequest) XXX_Merge ¶
func (dst *GAVerifyRequest) XXX_Merge(src proto.Message)
func (*GAVerifyRequest) XXX_Size ¶
func (m *GAVerifyRequest) XXX_Size() int
func (*GAVerifyRequest) XXX_Unmarshal ¶
func (m *GAVerifyRequest) XXX_Unmarshal(b []byte) error
type GAuthClient ¶
type GAuthClient interface { GetGASecret(ctx context.Context, in *GASecretRequest, opts ...grpc.CallOption) (*GASecretResponse, error) VerifyGA(ctx context.Context, in *GAVerifyRequest, opts ...grpc.CallOption) (*ServerStatus, error) }
GAuthClient is the client API for GAuth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGAuthClient ¶
func NewGAuthClient(cc *grpc.ClientConn) GAuthClient
type GAuthServer ¶
type GAuthServer interface { GetGASecret(context.Context, *GASecretRequest) (*GASecretResponse, error) VerifyGA(context.Context, *GAVerifyRequest) (*ServerStatus, error) }
GAuthServer is the server API for GAuth service.
type GeetestCaptchaResponse ¶
type GeetestCaptchaResponse struct { Challenge string `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GeetestCaptchaResponse) Descriptor ¶
func (*GeetestCaptchaResponse) Descriptor() ([]byte, []int)
func (*GeetestCaptchaResponse) GetChallenge ¶
func (m *GeetestCaptchaResponse) GetChallenge() string
func (*GeetestCaptchaResponse) ProtoMessage ¶
func (*GeetestCaptchaResponse) ProtoMessage()
func (*GeetestCaptchaResponse) Reset ¶
func (m *GeetestCaptchaResponse) Reset()
func (*GeetestCaptchaResponse) String ¶
func (m *GeetestCaptchaResponse) String() string
func (*GeetestCaptchaResponse) XXX_DiscardUnknown ¶
func (m *GeetestCaptchaResponse) XXX_DiscardUnknown()
func (*GeetestCaptchaResponse) XXX_Marshal ¶
func (m *GeetestCaptchaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GeetestCaptchaResponse) XXX_Merge ¶
func (dst *GeetestCaptchaResponse) XXX_Merge(src proto.Message)
func (*GeetestCaptchaResponse) XXX_Size ¶
func (m *GeetestCaptchaResponse) XXX_Size() int
func (*GeetestCaptchaResponse) XXX_Unmarshal ¶
func (m *GeetestCaptchaResponse) XXX_Unmarshal(b []byte) error
type GeetestCaptchaVerify ¶
type GeetestCaptchaVerify struct { GtChallenge string `protobuf:"bytes,1,opt,name=gt_challenge,json=gtChallenge,proto3" json:"gt_challenge,omitempty"` GtValidate string `protobuf:"bytes,2,opt,name=gt_validate,json=gtValidate,proto3" json:"gt_validate,omitempty"` GtSeccode string `protobuf:"bytes,3,opt,name=gt_seccode,json=gtSeccode,proto3" json:"gt_seccode,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GeetestCaptchaVerify) Descriptor ¶
func (*GeetestCaptchaVerify) Descriptor() ([]byte, []int)
func (*GeetestCaptchaVerify) GetGtChallenge ¶
func (m *GeetestCaptchaVerify) GetGtChallenge() string
func (*GeetestCaptchaVerify) GetGtSeccode ¶
func (m *GeetestCaptchaVerify) GetGtSeccode() string
func (*GeetestCaptchaVerify) GetGtValidate ¶
func (m *GeetestCaptchaVerify) GetGtValidate() string
func (*GeetestCaptchaVerify) ProtoMessage ¶
func (*GeetestCaptchaVerify) ProtoMessage()
func (*GeetestCaptchaVerify) Reset ¶
func (m *GeetestCaptchaVerify) Reset()
func (*GeetestCaptchaVerify) String ¶
func (m *GeetestCaptchaVerify) String() string
func (*GeetestCaptchaVerify) XXX_DiscardUnknown ¶
func (m *GeetestCaptchaVerify) XXX_DiscardUnknown()
func (*GeetestCaptchaVerify) XXX_Marshal ¶
func (m *GeetestCaptchaVerify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GeetestCaptchaVerify) XXX_Merge ¶
func (dst *GeetestCaptchaVerify) XXX_Merge(src proto.Message)
func (*GeetestCaptchaVerify) XXX_Size ¶
func (m *GeetestCaptchaVerify) XXX_Size() int
func (*GeetestCaptchaVerify) XXX_Unmarshal ¶
func (m *GeetestCaptchaVerify) XXX_Unmarshal(b []byte) error
type GraphicalCaptchaResponse ¶
type GraphicalCaptchaResponse struct { Graph []byte `protobuf:"bytes,1,opt,name=graph,proto3" json:"graph,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GraphicalCaptchaResponse) Descriptor ¶
func (*GraphicalCaptchaResponse) Descriptor() ([]byte, []int)
func (*GraphicalCaptchaResponse) GetGraph ¶
func (m *GraphicalCaptchaResponse) GetGraph() []byte
func (*GraphicalCaptchaResponse) ProtoMessage ¶
func (*GraphicalCaptchaResponse) ProtoMessage()
func (*GraphicalCaptchaResponse) Reset ¶
func (m *GraphicalCaptchaResponse) Reset()
func (*GraphicalCaptchaResponse) String ¶
func (m *GraphicalCaptchaResponse) String() string
func (*GraphicalCaptchaResponse) XXX_DiscardUnknown ¶
func (m *GraphicalCaptchaResponse) XXX_DiscardUnknown()
func (*GraphicalCaptchaResponse) XXX_Marshal ¶
func (m *GraphicalCaptchaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GraphicalCaptchaResponse) XXX_Merge ¶
func (dst *GraphicalCaptchaResponse) XXX_Merge(src proto.Message)
func (*GraphicalCaptchaResponse) XXX_Size ¶
func (m *GraphicalCaptchaResponse) XXX_Size() int
func (*GraphicalCaptchaResponse) XXX_Unmarshal ¶
func (m *GraphicalCaptchaResponse) XXX_Unmarshal(b []byte) error
type GraphicalCaptchaVerify ¶
type GraphicalCaptchaVerify struct { AuthCode string `protobuf:"bytes,1,opt,name=auth_code,json=authCode,proto3" json:"auth_code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GraphicalCaptchaVerify) Descriptor ¶
func (*GraphicalCaptchaVerify) Descriptor() ([]byte, []int)
func (*GraphicalCaptchaVerify) GetAuthCode ¶
func (m *GraphicalCaptchaVerify) GetAuthCode() string
func (*GraphicalCaptchaVerify) ProtoMessage ¶
func (*GraphicalCaptchaVerify) ProtoMessage()
func (*GraphicalCaptchaVerify) Reset ¶
func (m *GraphicalCaptchaVerify) Reset()
func (*GraphicalCaptchaVerify) String ¶
func (m *GraphicalCaptchaVerify) String() string
func (*GraphicalCaptchaVerify) XXX_DiscardUnknown ¶
func (m *GraphicalCaptchaVerify) XXX_DiscardUnknown()
func (*GraphicalCaptchaVerify) XXX_Marshal ¶
func (m *GraphicalCaptchaVerify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GraphicalCaptchaVerify) XXX_Merge ¶
func (dst *GraphicalCaptchaVerify) XXX_Merge(src proto.Message)
func (*GraphicalCaptchaVerify) XXX_Size ¶
func (m *GraphicalCaptchaVerify) XXX_Size() int
func (*GraphicalCaptchaVerify) XXX_Unmarshal ¶
func (m *GraphicalCaptchaVerify) XXX_Unmarshal(b []byte) error
type LanguageType ¶
type LanguageType int32
const ( LanguageType_UNDEFINED LanguageType = 0 LanguageType_CN LanguageType = 1 LanguageType_EN LanguageType = 2 LanguageType_KR LanguageType = 3 LanguageType_JP LanguageType = 4 )
func (LanguageType) EnumDescriptor ¶
func (LanguageType) EnumDescriptor() ([]byte, []int)
func (LanguageType) String ¶
func (x LanguageType) String() string
type SMSRequest ¶
type SMSRequest struct { Aaa SMSRequest_Type `protobuf:"varint,1,opt,name=aaa,proto3,enum=protos.SMSRequest_Type" json:"aaa,omitempty"` PhoneNumber string `protobuf:"bytes,2,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SMSRequest) Descriptor ¶
func (*SMSRequest) Descriptor() ([]byte, []int)
func (*SMSRequest) GetAaa ¶
func (m *SMSRequest) GetAaa() SMSRequest_Type
func (*SMSRequest) GetContent ¶
func (m *SMSRequest) GetContent() string
func (*SMSRequest) GetPhoneNumber ¶
func (m *SMSRequest) GetPhoneNumber() string
func (*SMSRequest) ProtoMessage ¶
func (*SMSRequest) ProtoMessage()
func (*SMSRequest) Reset ¶
func (m *SMSRequest) Reset()
func (*SMSRequest) String ¶
func (m *SMSRequest) String() string
func (*SMSRequest) XXX_DiscardUnknown ¶
func (m *SMSRequest) XXX_DiscardUnknown()
func (*SMSRequest) XXX_Marshal ¶
func (m *SMSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SMSRequest) XXX_Merge ¶
func (dst *SMSRequest) XXX_Merge(src proto.Message)
func (*SMSRequest) XXX_Size ¶
func (m *SMSRequest) XXX_Size() int
func (*SMSRequest) XXX_Unmarshal ¶
func (m *SMSRequest) XXX_Unmarshal(b []byte) error
type SMSRequest_Type ¶
type SMSRequest_Type int32
const ( SMSRequest_UNDEFINED SMSRequest_Type = 0 SMSRequest_REGISTER SMSRequest_Type = 1 SMSRequest_LOGIN SMSRequest_Type = 2 SMSRequest_LOGIN_NOTICE SMSRequest_Type = 3 SMSRequest_CHANGE_PASSWORD SMSRequest_Type = 4 SMSRequest_RESET_PASSWORD SMSRequest_Type = 5 SMSRequest_BIND_PHONE_NUMBER SMSRequest_Type = 6 SMSRequest_CHANGE_OLD_PHONE SMSRequest_Type = 7 SMSRequest_CHANGE_NEW_PHONE SMSRequest_Type = 8 SMSRequest_BIND_GA SMSRequest_Type = 9 SMSRequest_RESET_GA SMSRequest_Type = 10 SMSRequest_SET_CURRENCY_PASSWORD SMSRequest_Type = 11 SMSRequest_RESET_CURRENCY_PASSWORD SMSRequest_Type = 12 SMSRequest_CURRENCY_NO_PASSWORD SMSRequest_Type = 13 SMSRequest_ADD_WITHDRAW_ADDRESS SMSRequest_Type = 14 SMSRequest_WITHDRAW_DEPOSIT SMSRequest_Type = 15 SMSRequest_WITHDRAW_CONFIRM SMSRequest_Type = 16 SMSRequest_WITHDRAW_NOTICE SMSRequest_Type = 17 SMSRequest_CREATE_API_KEY SMSRequest_Type = 18 SMSRequest_CHECK_API_KEY SMSRequest_Type = 19 )
func (SMSRequest_Type) EnumDescriptor ¶
func (SMSRequest_Type) EnumDescriptor() ([]byte, []int)
func (SMSRequest_Type) String ¶
func (x SMSRequest_Type) String() string
type SMSResponse ¶
type SMSResponse struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=protos.StatusCode" json:"status,omitempty"` DayLimit int64 `protobuf:"varint,2,opt,name=day_limit,json=dayLimit,proto3" json:"day_limit,omitempty"` HourLimit int64 `protobuf:"varint,3,opt,name=hour_limit,json=hourLimit,proto3" json:"hour_limit,omitempty"` MinuteLimit int64 `protobuf:"varint,4,opt,name=minute_limit,json=minuteLimit,proto3" json:"minute_limit,omitempty"` Expire int64 `protobuf:"varint,5,opt,name=expire,proto3" json:"expire,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SMSResponse) Descriptor ¶
func (*SMSResponse) Descriptor() ([]byte, []int)
func (*SMSResponse) GetDayLimit ¶
func (m *SMSResponse) GetDayLimit() int64
func (*SMSResponse) GetExpire ¶
func (m *SMSResponse) GetExpire() int64
func (*SMSResponse) GetHourLimit ¶
func (m *SMSResponse) GetHourLimit() int64
func (*SMSResponse) GetMinuteLimit ¶
func (m *SMSResponse) GetMinuteLimit() int64
func (*SMSResponse) GetStatus ¶
func (m *SMSResponse) GetStatus() StatusCode
func (*SMSResponse) ProtoMessage ¶
func (*SMSResponse) ProtoMessage()
func (*SMSResponse) Reset ¶
func (m *SMSResponse) Reset()
func (*SMSResponse) String ¶
func (m *SMSResponse) String() string
func (*SMSResponse) XXX_DiscardUnknown ¶
func (m *SMSResponse) XXX_DiscardUnknown()
func (*SMSResponse) XXX_Marshal ¶
func (m *SMSResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SMSResponse) XXX_Merge ¶
func (dst *SMSResponse) XXX_Merge(src proto.Message)
func (*SMSResponse) XXX_Size ¶
func (m *SMSResponse) XXX_Size() int
func (*SMSResponse) XXX_Unmarshal ¶
func (m *SMSResponse) XXX_Unmarshal(b []byte) error
type SMSVerifyRequest ¶
type SMSVerifyRequest struct { Type SMSRequest_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.SMSRequest_Type" json:"type,omitempty"` PhoneNumber string `protobuf:"bytes,2,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` AuthCode string `protobuf:"bytes,3,opt,name=auth_code,json=authCode,proto3" json:"auth_code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SMSVerifyRequest) Descriptor ¶
func (*SMSVerifyRequest) Descriptor() ([]byte, []int)
func (*SMSVerifyRequest) GetAuthCode ¶
func (m *SMSVerifyRequest) GetAuthCode() string
func (*SMSVerifyRequest) GetPhoneNumber ¶
func (m *SMSVerifyRequest) GetPhoneNumber() string
func (*SMSVerifyRequest) GetType ¶
func (m *SMSVerifyRequest) GetType() SMSRequest_Type
func (*SMSVerifyRequest) ProtoMessage ¶
func (*SMSVerifyRequest) ProtoMessage()
func (*SMSVerifyRequest) Reset ¶
func (m *SMSVerifyRequest) Reset()
func (*SMSVerifyRequest) String ¶
func (m *SMSVerifyRequest) String() string
func (*SMSVerifyRequest) XXX_DiscardUnknown ¶
func (m *SMSVerifyRequest) XXX_DiscardUnknown()
func (*SMSVerifyRequest) XXX_Marshal ¶
func (m *SMSVerifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SMSVerifyRequest) XXX_Merge ¶
func (dst *SMSVerifyRequest) XXX_Merge(src proto.Message)
func (*SMSVerifyRequest) XXX_Size ¶
func (m *SMSVerifyRequest) XXX_Size() int
func (*SMSVerifyRequest) XXX_Unmarshal ¶
func (m *SMSVerifyRequest) XXX_Unmarshal(b []byte) error
type ServerStatus ¶
type ServerStatus struct { Status StatusCode `protobuf:"varint,1,opt,name=status,proto3,enum=protos.StatusCode" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ServerStatus) Descriptor ¶
func (*ServerStatus) Descriptor() ([]byte, []int)
func (*ServerStatus) GetStatus ¶
func (m *ServerStatus) GetStatus() StatusCode
func (*ServerStatus) ProtoMessage ¶
func (*ServerStatus) ProtoMessage()
func (*ServerStatus) Reset ¶
func (m *ServerStatus) Reset()
func (*ServerStatus) String ¶
func (m *ServerStatus) String() string
func (*ServerStatus) XXX_DiscardUnknown ¶
func (m *ServerStatus) XXX_DiscardUnknown()
func (*ServerStatus) XXX_Marshal ¶
func (m *ServerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServerStatus) XXX_Merge ¶
func (dst *ServerStatus) XXX_Merge(src proto.Message)
func (*ServerStatus) XXX_Size ¶
func (m *ServerStatus) XXX_Size() int
func (*ServerStatus) XXX_Unmarshal ¶
func (m *ServerStatus) XXX_Unmarshal(b []byte) error
type SmsClient ¶
type SmsClient interface { SendSMS(ctx context.Context, in *SMSRequest, opts ...grpc.CallOption) (*SMSResponse, error) VerifySMS(ctx context.Context, in *SMSVerifyRequest, opts ...grpc.CallOption) (*ServerStatus, error) CheckPhone(ctx context.Context, in *CheckPhoneRequest, opts ...grpc.CallOption) (*ServerStatus, error) }
SmsClient is the client API for Sms service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSmsClient ¶
func NewSmsClient(cc *grpc.ClientConn) SmsClient
type SmsServer ¶
type SmsServer interface { SendSMS(context.Context, *SMSRequest) (*SMSResponse, error) VerifySMS(context.Context, *SMSVerifyRequest) (*ServerStatus, error) CheckPhone(context.Context, *CheckPhoneRequest) (*ServerStatus, error) }
SmsServer is the server API for Sms service.
type StatusCode ¶
type StatusCode int32
const ( StatusCode_SUCCESS StatusCode = 0 StatusCode_FAILED StatusCode = 1 StatusCode_SMS_SEND_TRY StatusCode = 2 StatusCode_SMS_MINUTE_LIMIT StatusCode = 3 StatusCode_SMS_HOUR_LIMIT StatusCode = 4 StatusCode_SMS_DAY_LIMIT StatusCode = 5 StatusCode_SMS_PHONE_NOT_EXISTS StatusCode = 6 StatusCode_EMAIL_MINUTE_LIMIT StatusCode = 7 StatusCode_EMAIL_HOUR_LIMIT StatusCode = 8 StatusCode_EMAIL_DAY_LIMIT StatusCode = 9 )
func (StatusCode) EnumDescriptor ¶
func (StatusCode) EnumDescriptor() ([]byte, []int)
func (StatusCode) String ¶
func (x StatusCode) String() string