Documentation ¶
Overview ¶
Code generated by protoc-gen-auth. DO NOT EDIT! source: account.proto
Package account is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Code generated by protoc-gen-auth. DO NOT EDIT! source: auth.proto
Package account is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Code generated by protoc-gen-auth. DO NOT EDIT! source: bind.proto
Package account is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Code generated by protoc-gen-auth. DO NOT EDIT! source: include.proto
Code generated by protoc-gen-auth. DO NOT EDIT! source: inner_secret.proto
Package account is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Code generated by protoc-gen-auth. DO NOT EDIT! source: password.proto
Package account is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Code generated by protoc-gen-auth. DO NOT EDIT! source: profile.proto
Package account is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterAccountHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAccountHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountClient) error
- func RegisterAccountHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAccountHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountServer) error
- func RegisterAccountScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterAccountServer(s *grpc.Server, srv AccountServer)
- func RegisterAuthHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthClient) error
- func RegisterAuthHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServer) error
- func RegisterAuthScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterAuthServer(s *grpc.Server, srv AuthServer)
- func RegisterBindHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBindHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BindClient) error
- func RegisterBindHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBindHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BindServer) error
- func RegisterBindScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterBindServer(s *grpc.Server, srv BindServer)
- func RegisterInnerSecretHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterInnerSecretHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InnerSecretClient) error
- func RegisterInnerSecretHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterInnerSecretHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InnerSecretServer) error
- func RegisterInnerSecretScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterInnerSecretServer(s *grpc.Server, srv InnerSecretServer)
- func RegisterPasswordHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPasswordHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PasswordClient) error
- func RegisterPasswordHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPasswordHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PasswordServer) error
- func RegisterPasswordScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterPasswordServer(s *grpc.Server, srv PasswordServer)
- func RegisterProfileHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterProfileHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfileClient) error
- func RegisterProfileHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterProfileHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfileServer) error
- func RegisterProfileScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterProfileServer(s *grpc.Server, srv ProfileServer)
- type AccountClient
- type AccountServer
- type AuthClient
- type AuthServer
- type AuthType
- type BindClient
- type BindRequest
- func (*BindRequest) Descriptor() ([]byte, []int)
- func (m *BindRequest) GetBind() *Binding
- func (m *BindRequest) GetCode() string
- func (*BindRequest) ProtoMessage()
- func (m *BindRequest) Reset()
- func (m *BindRequest) String() string
- func (m *BindRequest) Validate() error
- func (m *BindRequest) XXX_DiscardUnknown()
- func (m *BindRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BindRequest) XXX_Merge(src proto.Message)
- func (m *BindRequest) XXX_Size() int
- func (m *BindRequest) XXX_Unmarshal(b []byte) error
- type BindRequestValidationError
- func (e BindRequestValidationError) Cause() error
- func (e BindRequestValidationError) Error() string
- func (e BindRequestValidationError) ErrorName() string
- func (e BindRequestValidationError) Field() string
- func (e BindRequestValidationError) Key() bool
- func (e BindRequestValidationError) Reason() string
- type BindServer
- type Binding
- func (*Binding) Descriptor() ([]byte, []int)
- func (m *Binding) GetSourceId() string
- func (m *Binding) GetSourceType() AuthType
- func (*Binding) ProtoMessage()
- func (m *Binding) Reset()
- func (m *Binding) String() string
- func (m *Binding) Validate() error
- func (m *Binding) XXX_DiscardUnknown()
- func (m *Binding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Binding) XXX_Merge(src proto.Message)
- func (m *Binding) XXX_Size() int
- func (m *Binding) XXX_Unmarshal(b []byte) error
- type BindingValidationError
- type Bindings
- func (*Bindings) Descriptor() ([]byte, []int)
- func (m *Bindings) GetBinds() []*Binding
- func (*Bindings) ProtoMessage()
- func (m *Bindings) Reset()
- func (m *Bindings) String() string
- func (m *Bindings) Validate() error
- func (m *Bindings) XXX_DiscardUnknown()
- func (m *Bindings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bindings) XXX_Merge(src proto.Message)
- func (m *Bindings) XXX_Size() int
- func (m *Bindings) XXX_Unmarshal(b []byte) error
- type BindingsValidationError
- type Gender
- type Info
- func (*Info) Descriptor() ([]byte, []int)
- func (m *Info) GetAvatar() string
- func (m *Info) GetCreatedAt() *timestamp.Timestamp
- func (m *Info) GetExtend() *any.Any
- func (m *Info) GetGender() Gender
- func (m *Info) GetLocation() string
- func (m *Info) GetNickname() string
- func (m *Info) GetSecret() *Secret
- func (m *Info) GetSignature() string
- func (m *Info) GetSigns() string
- func (m *Info) GetStatus() Status
- func (m *Info) GetUniqueId() uint64
- func (m *Info) GetUpdatedAt() *timestamp.Timestamp
- func (*Info) ProtoMessage()
- func (m *Info) Reset()
- func (m *Info) String() string
- func (m *Info) Validate() error
- func (m *Info) XXX_DiscardUnknown()
- func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Info) XXX_Merge(src proto.Message)
- func (m *Info) XXX_Size() int
- func (m *Info) XXX_Unmarshal(b []byte) error
- type InfoValidationError
- type Infos
- func (*Infos) Descriptor() ([]byte, []int)
- func (m *Infos) GetAccounts() map[uint64]*Info
- func (*Infos) ProtoMessage()
- func (m *Infos) Reset()
- func (m *Infos) String() string
- func (m *Infos) Validate() error
- func (m *Infos) XXX_DiscardUnknown()
- func (m *Infos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Infos) XXX_Merge(src proto.Message)
- func (m *Infos) XXX_Size() int
- func (m *Infos) XXX_Unmarshal(b []byte) error
- type InfosValidationError
- type InnerSecretClient
- type InnerSecretServer
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)
- func (m *LoginRequest) GetCode() string
- func (m *LoginRequest) GetPassword() string
- func (m *LoginRequest) GetRelateId() string
- func (m *LoginRequest) GetSecure() isLoginRequest_Secure
- func (*LoginRequest) ProtoMessage()
- func (m *LoginRequest) Reset()
- func (m *LoginRequest) String() string
- func (m *LoginRequest) Validate() error
- func (m *LoginRequest) XXX_DiscardUnknown()
- func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginRequest) XXX_Merge(src proto.Message)
- func (*LoginRequest) XXX_OneofWrappers() []interface{}
- func (m *LoginRequest) XXX_Size() int
- func (m *LoginRequest) XXX_Unmarshal(b []byte) error
- type LoginRequestValidationError
- func (e LoginRequestValidationError) Cause() error
- func (e LoginRequestValidationError) Error() string
- func (e LoginRequestValidationError) ErrorName() string
- func (e LoginRequestValidationError) Field() string
- func (e LoginRequestValidationError) Key() bool
- func (e LoginRequestValidationError) Reason() string
- type LoginRequest_Code
- type LoginRequest_Password
- type OAuthRequest
- func (*OAuthRequest) Descriptor() ([]byte, []int)
- func (m *OAuthRequest) GetAccessToken() string
- func (m *OAuthRequest) GetOpenId() string
- func (m *OAuthRequest) GetType() AuthType
- func (*OAuthRequest) ProtoMessage()
- func (m *OAuthRequest) Reset()
- func (m *OAuthRequest) String() string
- func (m *OAuthRequest) Validate() error
- func (m *OAuthRequest) XXX_DiscardUnknown()
- func (m *OAuthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OAuthRequest) XXX_Merge(src proto.Message)
- func (m *OAuthRequest) XXX_Size() int
- func (m *OAuthRequest) XXX_Unmarshal(b []byte) error
- type OAuthRequestValidationError
- func (e OAuthRequestValidationError) Cause() error
- func (e OAuthRequestValidationError) Error() string
- func (e OAuthRequestValidationError) ErrorName() string
- func (e OAuthRequestValidationError) Field() string
- func (e OAuthRequestValidationError) Key() bool
- func (e OAuthRequestValidationError) Reason() string
- type PasswordClient
- type PasswordRequest
- func (*PasswordRequest) Descriptor() ([]byte, []int)
- func (m *PasswordRequest) GetOldPassword() string
- func (m *PasswordRequest) GetPassword() string
- func (m *PasswordRequest) GetVerifyCode() string
- func (*PasswordRequest) ProtoMessage()
- func (m *PasswordRequest) Reset()
- func (m *PasswordRequest) String() string
- func (m *PasswordRequest) Validate() error
- func (m *PasswordRequest) XXX_DiscardUnknown()
- func (m *PasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PasswordRequest) XXX_Merge(src proto.Message)
- func (m *PasswordRequest) XXX_Size() int
- func (m *PasswordRequest) XXX_Unmarshal(b []byte) error
- type PasswordRequestValidationError
- func (e PasswordRequestValidationError) Cause() error
- func (e PasswordRequestValidationError) Error() string
- func (e PasswordRequestValidationError) ErrorName() string
- func (e PasswordRequestValidationError) Field() string
- func (e PasswordRequestValidationError) Key() bool
- func (e PasswordRequestValidationError) Reason() string
- type PasswordServer
- type ProfileClient
- type ProfileServer
- type Properties
- func (*Properties) Descriptor() ([]byte, []int)
- func (m *Properties) GetKvs() map[string]*_struct.Struct
- func (*Properties) ProtoMessage()
- func (m *Properties) Reset()
- func (m *Properties) String() string
- func (m *Properties) Validate() error
- func (m *Properties) XXX_DiscardUnknown()
- func (m *Properties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Properties) XXX_Merge(src proto.Message)
- func (m *Properties) XXX_Size() int
- func (m *Properties) XXX_Unmarshal(b []byte) error
- type PropertiesValidationError
- type Property
- func (*Property) Descriptor() ([]byte, []int)
- func (m *Property) GetName() string
- func (m *Property) GetValue() *_struct.Struct
- func (*Property) ProtoMessage()
- func (m *Property) Reset()
- func (m *Property) String() string
- func (m *Property) Validate() error
- func (m *Property) XXX_DiscardUnknown()
- func (m *Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Property) XXX_Merge(src proto.Message)
- func (m *Property) XXX_Size() int
- func (m *Property) XXX_Unmarshal(b []byte) error
- type PropertyValidationError
- type Secret
- func (*Secret) Descriptor() ([]byte, []int)
- func (m *Secret) GetToken() string
- func (*Secret) ProtoMessage()
- func (m *Secret) Reset()
- func (m *Secret) String() string
- func (m *Secret) Validate() error
- func (m *Secret) XXX_DiscardUnknown()
- func (m *Secret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Secret) XXX_Merge(src proto.Message)
- func (m *Secret) XXX_Size() int
- func (m *Secret) XXX_Unmarshal(b []byte) error
- type SecretValidationError
- type Status
- type UnimplementedAccountServer
- func (*UnimplementedAccountServer) GetInfo(ctx context.Context, req *common.UniqueId) (*Info, error)
- func (*UnimplementedAccountServer) GetInfos(ctx context.Context, req *common.UniqueIds) (*Infos, error)
- func (*UnimplementedAccountServer) UpdateInfo(ctx context.Context, req *VariableInfo) (*Info, error)
- type UnimplementedAuthServer
- func (*UnimplementedAuthServer) Guest(ctx context.Context, req *empty.Empty) (*Info, error)
- func (*UnimplementedAuthServer) Login(ctx context.Context, req *LoginRequest) (*Info, error)
- func (*UnimplementedAuthServer) OAuth(ctx context.Context, req *OAuthRequest) (*Info, error)
- func (*UnimplementedAuthServer) Refresh(ctx context.Context, req *empty.Empty) (*Info, error)
- type UnimplementedBindServer
- type UnimplementedInnerSecretServer
- type UnimplementedPasswordServer
- func (*UnimplementedPasswordServer) Reset(ctx context.Context, req *PasswordRequest) (*Secret, error)
- func (*UnimplementedPasswordServer) Set(ctx context.Context, req *PasswordRequest) (*Secret, error)
- func (*UnimplementedPasswordServer) Update(ctx context.Context, req *PasswordRequest) (*Secret, error)
- type UnimplementedProfileServer
- type VariableInfo
- func (*VariableInfo) Descriptor() ([]byte, []int)
- func (m *VariableInfo) GetAvatar() string
- func (m *VariableInfo) GetGender() Gender
- func (m *VariableInfo) GetNickname() string
- func (m *VariableInfo) GetSignature() string
- func (*VariableInfo) ProtoMessage()
- func (m *VariableInfo) Reset()
- func (m *VariableInfo) String() string
- func (m *VariableInfo) Validate() error
- func (m *VariableInfo) XXX_DiscardUnknown()
- func (m *VariableInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VariableInfo) XXX_Merge(src proto.Message)
- func (m *VariableInfo) XXX_Size() int
- func (m *VariableInfo) XXX_Unmarshal(b []byte) error
- type VariableInfoValidationError
- func (e VariableInfoValidationError) Cause() error
- func (e VariableInfoValidationError) Error() string
- func (e VariableInfoValidationError) ErrorName() string
- func (e VariableInfoValidationError) Field() string
- func (e VariableInfoValidationError) Key() bool
- func (e VariableInfoValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var AuthType_name = map[int32]string{
0: "AUTH_TYPE_UNSPECIFIED",
1: "AUTH_TYPE_APPLE_ID",
2: "AUTH_TYPE_ACCOUNT",
3: "AUTH_TYPE_WECHAT",
4: "AUTH_TYPE_QQ",
5: "AUTH_TYPE_WEIBO",
}
var AuthType_value = map[string]int32{
"AUTH_TYPE_UNSPECIFIED": 0,
"AUTH_TYPE_APPLE_ID": 1,
"AUTH_TYPE_ACCOUNT": 2,
"AUTH_TYPE_WECHAT": 3,
"AUTH_TYPE_QQ": 4,
"AUTH_TYPE_WEIBO": 5,
}
var Gender_name = map[int32]string{
0: "GENDER_UNSPECIFIED",
1: "GENDER_MALE",
2: "GENDER_FEMALE",
3: "GENDER_OTHER",
}
var Gender_value = map[string]int32{
"GENDER_UNSPECIFIED": 0,
"GENDER_MALE": 1,
"GENDER_FEMALE": 2,
"GENDER_OTHER": 3,
}
var Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "STATUS_ACTIVE",
2: "STATUS_BLOCKED",
}
var Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"STATUS_ACTIVE": 1,
"STATUS_BLOCKED": 2,
}
Functions ¶
func RegisterAccountHandler ¶
func RegisterAccountHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAccountHandler registers the http handlers for service Account to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAccountHandlerClient ¶
func RegisterAccountHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountClient) error
RegisterAccountHandlerClient registers the http handlers for service Account to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AccountClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AccountClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AccountClient" to call the correct interceptors.
func RegisterAccountHandlerFromEndpoint ¶
func RegisterAccountHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAccountHandlerFromEndpoint is same as RegisterAccountHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAccountHandlerServer ¶
func RegisterAccountHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountServer) error
RegisterAccountHandlerServer registers the http handlers for service Account to "mux". UnaryRPC :call AccountServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterAccountScopeServer ¶
func RegisterAccountScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv AccountServer) error
Register scoped server.
func RegisterAccountServer ¶
func RegisterAccountServer(s *grpc.Server, srv AccountServer)
func RegisterAuthHandler ¶
RegisterAuthHandler registers the http handlers for service Auth to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAuthHandlerClient ¶
RegisterAuthHandlerClient registers the http handlers for service Auth to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthClient" to call the correct interceptors.
func RegisterAuthHandlerFromEndpoint ¶
func RegisterAuthHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAuthHandlerFromEndpoint is same as RegisterAuthHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAuthHandlerServer ¶
RegisterAuthHandlerServer registers the http handlers for service Auth to "mux". UnaryRPC :call AuthServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterAuthScopeServer ¶
func RegisterAuthScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv AuthServer) error
Register scoped server.
func RegisterAuthServer ¶
func RegisterAuthServer(s *grpc.Server, srv AuthServer)
func RegisterBindHandler ¶
RegisterBindHandler registers the http handlers for service Bind to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBindHandlerClient ¶
RegisterBindHandlerClient registers the http handlers for service Bind to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BindClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BindClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BindClient" to call the correct interceptors.
func RegisterBindHandlerFromEndpoint ¶
func RegisterBindHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBindHandlerFromEndpoint is same as RegisterBindHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBindHandlerServer ¶
RegisterBindHandlerServer registers the http handlers for service Bind to "mux". UnaryRPC :call BindServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterBindScopeServer ¶
func RegisterBindScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv BindServer) error
Register scoped server.
func RegisterBindServer ¶
func RegisterBindServer(s *grpc.Server, srv BindServer)
func RegisterInnerSecretHandler ¶
func RegisterInnerSecretHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterInnerSecretHandler registers the http handlers for service InnerSecret to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterInnerSecretHandlerClient ¶
func RegisterInnerSecretHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InnerSecretClient) error
RegisterInnerSecretHandlerClient registers the http handlers for service InnerSecret to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InnerSecretClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InnerSecretClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InnerSecretClient" to call the correct interceptors.
func RegisterInnerSecretHandlerFromEndpoint ¶
func RegisterInnerSecretHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterInnerSecretHandlerFromEndpoint is same as RegisterInnerSecretHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterInnerSecretHandlerServer ¶
func RegisterInnerSecretHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InnerSecretServer) error
RegisterInnerSecretHandlerServer registers the http handlers for service InnerSecret to "mux". UnaryRPC :call InnerSecretServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterInnerSecretScopeServer ¶
func RegisterInnerSecretScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv InnerSecretServer) error
Register scoped server.
func RegisterInnerSecretServer ¶
func RegisterInnerSecretServer(s *grpc.Server, srv InnerSecretServer)
func RegisterPasswordHandler ¶
func RegisterPasswordHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterPasswordHandler registers the http handlers for service Password to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPasswordHandlerClient ¶
func RegisterPasswordHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PasswordClient) error
RegisterPasswordHandlerClient registers the http handlers for service Password to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PasswordClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PasswordClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PasswordClient" to call the correct interceptors.
func RegisterPasswordHandlerFromEndpoint ¶
func RegisterPasswordHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPasswordHandlerFromEndpoint is same as RegisterPasswordHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPasswordHandlerServer ¶
func RegisterPasswordHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PasswordServer) error
RegisterPasswordHandlerServer registers the http handlers for service Password to "mux". UnaryRPC :call PasswordServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterPasswordScopeServer ¶
func RegisterPasswordScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv PasswordServer) error
Register scoped server.
func RegisterPasswordServer ¶
func RegisterPasswordServer(s *grpc.Server, srv PasswordServer)
func RegisterProfileHandler ¶
func RegisterProfileHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterProfileHandler registers the http handlers for service Profile to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterProfileHandlerClient ¶
func RegisterProfileHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfileClient) error
RegisterProfileHandlerClient registers the http handlers for service Profile to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProfileClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProfileClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProfileClient" to call the correct interceptors.
func RegisterProfileHandlerFromEndpoint ¶
func RegisterProfileHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterProfileHandlerFromEndpoint is same as RegisterProfileHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterProfileHandlerServer ¶
func RegisterProfileHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfileServer) error
RegisterProfileHandlerServer registers the http handlers for service Profile to "mux". UnaryRPC :call ProfileServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterProfileScopeServer ¶
func RegisterProfileScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv ProfileServer) error
Register scoped server.
func RegisterProfileServer ¶
func RegisterProfileServer(s *grpc.Server, srv ProfileServer)
Types ¶
type AccountClient ¶
type AccountClient interface { // Get account info. GetInfo(ctx context.Context, in *common.UniqueId, opts ...grpc.CallOption) (*Info, error) // Get account infos. GetInfos(ctx context.Context, in *common.UniqueIds, opts ...grpc.CallOption) (*Infos, error) // Update account info. UpdateInfo(ctx context.Context, in *VariableInfo, opts ...grpc.CallOption) (*Info, error) }
AccountClient is the client API for Account service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAccountClient ¶
func NewAccountClient(cc *grpc.ClientConn) AccountClient
type AccountServer ¶
type AccountServer interface { // Get account info. GetInfo(context.Context, *common.UniqueId) (*Info, error) // Get account infos. GetInfos(context.Context, *common.UniqueIds) (*Infos, error) // Update account info. UpdateInfo(context.Context, *VariableInfo) (*Info, error) }
AccountServer is the server API for Account service.
type AuthClient ¶
type AuthClient interface { // Auth as guest. Guest(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Info, error) // Login. Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*Info, error) // OAuth. OAuth(ctx context.Context, in *OAuthRequest, opts ...grpc.CallOption) (*Info, error) // Refresh account token. Refresh(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Info, error) }
AuthClient is the client API for Auth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthClient ¶
func NewAuthClient(cc *grpc.ClientConn) AuthClient
type AuthServer ¶
type AuthServer interface { // Auth as guest. Guest(context.Context, *empty.Empty) (*Info, error) // Login. Login(context.Context, *LoginRequest) (*Info, error) // OAuth. OAuth(context.Context, *OAuthRequest) (*Info, error) // Refresh account token. Refresh(context.Context, *empty.Empty) (*Info, error) }
AuthServer is the server API for Auth service.
type AuthType ¶
type AuthType int32
Auth source enums.
func (AuthType) EnumDescriptor ¶
func (*AuthType) UnmarshalJSON ¶
type BindClient ¶
type BindClient interface { // Apply account bind. Apply(ctx context.Context, in *BindRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Cancel account bind. Cancel(ctx context.Context, in *BindRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Get all bind info. Gets(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Bindings, error) }
BindClient is the client API for Bind service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBindClient ¶
func NewBindClient(cc *grpc.ClientConn) BindClient
type BindRequest ¶
type BindRequest struct { Bind *Binding `protobuf:"bytes,1,req,name=bind" json:"bind,omitempty"` Code *string `protobuf:"bytes,2,opt,name=code" json:"code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Account binding request.
func (*BindRequest) Descriptor ¶
func (*BindRequest) Descriptor() ([]byte, []int)
func (*BindRequest) GetBind ¶
func (m *BindRequest) GetBind() *Binding
func (*BindRequest) GetCode ¶
func (m *BindRequest) GetCode() string
func (*BindRequest) ProtoMessage ¶
func (*BindRequest) ProtoMessage()
func (*BindRequest) Reset ¶
func (m *BindRequest) Reset()
func (*BindRequest) String ¶
func (m *BindRequest) String() string
func (*BindRequest) Validate ¶
func (m *BindRequest) Validate() error
Validate checks the field values on BindRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*BindRequest) XXX_DiscardUnknown ¶
func (m *BindRequest) XXX_DiscardUnknown()
func (*BindRequest) XXX_Marshal ¶
func (m *BindRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BindRequest) XXX_Merge ¶
func (m *BindRequest) XXX_Merge(src proto.Message)
func (*BindRequest) XXX_Size ¶
func (m *BindRequest) XXX_Size() int
func (*BindRequest) XXX_Unmarshal ¶
func (m *BindRequest) XXX_Unmarshal(b []byte) error
type BindRequestValidationError ¶
type BindRequestValidationError struct {
// contains filtered or unexported fields
}
BindRequestValidationError is the validation error returned by BindRequest.Validate if the designated constraints aren't met.
func (BindRequestValidationError) Cause ¶
func (e BindRequestValidationError) Cause() error
Cause function returns cause value.
func (BindRequestValidationError) Error ¶
func (e BindRequestValidationError) Error() string
Error satisfies the builtin error interface
func (BindRequestValidationError) ErrorName ¶
func (e BindRequestValidationError) ErrorName() string
ErrorName returns error name.
func (BindRequestValidationError) Field ¶
func (e BindRequestValidationError) Field() string
Field function returns field value.
func (BindRequestValidationError) Key ¶
func (e BindRequestValidationError) Key() bool
Key function returns key value.
func (BindRequestValidationError) Reason ¶
func (e BindRequestValidationError) Reason() string
Reason function returns reason value.
type BindServer ¶
type BindServer interface { // Apply account bind. Apply(context.Context, *BindRequest) (*empty.Empty, error) // Cancel account bind. Cancel(context.Context, *BindRequest) (*empty.Empty, error) // Get all bind info. Gets(context.Context, *empty.Empty) (*Bindings, error) }
BindServer is the server API for Bind service.
type Binding ¶
type Binding struct { SourceType *AuthType `protobuf:"varint,1,req,name=source_type,json=sourceType,enum=appootb.account.AuthType" json:"source_type,omitempty"` SourceId *string `protobuf:"bytes,2,req,name=source_id,json=sourceId" json:"source_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Account binding information.
func (*Binding) Descriptor ¶
func (*Binding) GetSourceId ¶
func (*Binding) GetSourceType ¶
func (*Binding) ProtoMessage ¶
func (*Binding) ProtoMessage()
func (*Binding) Validate ¶
Validate checks the field values on Binding with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Binding) XXX_DiscardUnknown ¶
func (m *Binding) XXX_DiscardUnknown()
func (*Binding) XXX_Marshal ¶
func (*Binding) XXX_Unmarshal ¶
type BindingValidationError ¶
type BindingValidationError struct {
// contains filtered or unexported fields
}
BindingValidationError is the validation error returned by Binding.Validate if the designated constraints aren't met.
func (BindingValidationError) Cause ¶
func (e BindingValidationError) Cause() error
Cause function returns cause value.
func (BindingValidationError) Error ¶
func (e BindingValidationError) Error() string
Error satisfies the builtin error interface
func (BindingValidationError) ErrorName ¶
func (e BindingValidationError) ErrorName() string
ErrorName returns error name.
func (BindingValidationError) Field ¶
func (e BindingValidationError) Field() string
Field function returns field value.
func (BindingValidationError) Key ¶
func (e BindingValidationError) Key() bool
Key function returns key value.
func (BindingValidationError) Reason ¶
func (e BindingValidationError) Reason() string
Reason function returns reason value.
type Bindings ¶
type Bindings struct { Binds []*Binding `protobuf:"bytes,1,rep,name=binds" json:"binds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Account bindings.
func (*Bindings) Descriptor ¶
func (*Bindings) ProtoMessage ¶
func (*Bindings) ProtoMessage()
func (*Bindings) Validate ¶
Validate checks the field values on Bindings with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Bindings) XXX_DiscardUnknown ¶
func (m *Bindings) XXX_DiscardUnknown()
func (*Bindings) XXX_Marshal ¶
func (*Bindings) XXX_Unmarshal ¶
type BindingsValidationError ¶
type BindingsValidationError struct {
// contains filtered or unexported fields
}
BindingsValidationError is the validation error returned by Bindings.Validate if the designated constraints aren't met.
func (BindingsValidationError) Cause ¶
func (e BindingsValidationError) Cause() error
Cause function returns cause value.
func (BindingsValidationError) Error ¶
func (e BindingsValidationError) Error() string
Error satisfies the builtin error interface
func (BindingsValidationError) ErrorName ¶
func (e BindingsValidationError) ErrorName() string
ErrorName returns error name.
func (BindingsValidationError) Field ¶
func (e BindingsValidationError) Field() string
Field function returns field value.
func (BindingsValidationError) Key ¶
func (e BindingsValidationError) Key() bool
Key function returns key value.
func (BindingsValidationError) Reason ¶
func (e BindingsValidationError) Reason() string
Reason function returns reason value.
type Gender ¶
type Gender int32
Account gender enums.
func (Gender) EnumDescriptor ¶
func (*Gender) UnmarshalJSON ¶
type Info ¶
type Info struct { UniqueId *uint64 `protobuf:"varint,1,req,name=unique_id,json=uniqueId" json:"unique_id,omitempty"` Nickname *string `protobuf:"bytes,2,req,name=nickname" json:"nickname,omitempty"` Avatar *string `protobuf:"bytes,3,req,name=avatar" json:"avatar,omitempty"` Status *Status `protobuf:"varint,4,req,name=status,enum=appootb.account.Status" json:"status,omitempty"` Signature *string `protobuf:"bytes,5,opt,name=signature" json:"signature,omitempty"` Gender *Gender `protobuf:"varint,6,opt,name=gender,enum=appootb.account.Gender" json:"gender,omitempty"` Signs *string `protobuf:"bytes,7,opt,name=signs" json:"signs,omitempty"` Location *string `protobuf:"bytes,8,opt,name=location" json:"location,omitempty"` Secret *Secret `protobuf:"bytes,9,opt,name=secret" json:"secret,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,97,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,98,opt,name=updated_at,json=updatedAt" json:"updated_at,omitempty"` Extend *any.Any `protobuf:"bytes,99,opt,name=extend" json:"extend,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Account information.
func (*Info) Descriptor ¶
func (*Info) GetCreatedAt ¶
func (*Info) GetLocation ¶
func (*Info) GetNickname ¶
func (*Info) GetSignature ¶
func (*Info) GetUniqueId ¶
func (*Info) GetUpdatedAt ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) Validate ¶
Validate checks the field values on Info with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Info) XXX_DiscardUnknown ¶
func (m *Info) XXX_DiscardUnknown()
func (*Info) XXX_Unmarshal ¶
type InfoValidationError ¶
type InfoValidationError struct {
// contains filtered or unexported fields
}
InfoValidationError is the validation error returned by Info.Validate if the designated constraints aren't met.
func (InfoValidationError) Cause ¶
func (e InfoValidationError) Cause() error
Cause function returns cause value.
func (InfoValidationError) Error ¶
func (e InfoValidationError) Error() string
Error satisfies the builtin error interface
func (InfoValidationError) ErrorName ¶
func (e InfoValidationError) ErrorName() string
ErrorName returns error name.
func (InfoValidationError) Field ¶
func (e InfoValidationError) Field() string
Field function returns field value.
func (InfoValidationError) Key ¶
func (e InfoValidationError) Key() bool
Key function returns key value.
func (InfoValidationError) Reason ¶
func (e InfoValidationError) Reason() string
Reason function returns reason value.
type Infos ¶
type Infos struct { Accounts map[uint64]*Info `` /* 137-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Accounts information.
func (*Infos) Descriptor ¶
func (*Infos) GetAccounts ¶
func (*Infos) ProtoMessage ¶
func (*Infos) ProtoMessage()
func (*Infos) Validate ¶
Validate checks the field values on Infos with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Infos) XXX_DiscardUnknown ¶
func (m *Infos) XXX_DiscardUnknown()
func (*Infos) XXX_Marshal ¶
func (*Infos) XXX_Unmarshal ¶
type InfosValidationError ¶
type InfosValidationError struct {
// contains filtered or unexported fields
}
InfosValidationError is the validation error returned by Infos.Validate if the designated constraints aren't met.
func (InfosValidationError) Cause ¶
func (e InfosValidationError) Cause() error
Cause function returns cause value.
func (InfosValidationError) Error ¶
func (e InfosValidationError) Error() string
Error satisfies the builtin error interface
func (InfosValidationError) ErrorName ¶
func (e InfosValidationError) ErrorName() string
ErrorName returns error name.
func (InfosValidationError) Field ¶
func (e InfosValidationError) Field() string
Field function returns field value.
func (InfosValidationError) Key ¶
func (e InfosValidationError) Key() bool
Key function returns key value.
func (InfosValidationError) Reason ¶
func (e InfosValidationError) Reason() string
Reason function returns reason value.
type InnerSecretClient ¶
type InnerSecretClient interface { // Get token info. GetSecretInfo(ctx context.Context, in *Secret, opts ...grpc.CallOption) (*secret.Info, error) }
InnerSecretClient is the client API for InnerSecret service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewInnerSecretClient ¶
func NewInnerSecretClient(cc *grpc.ClientConn) InnerSecretClient
type InnerSecretServer ¶
type InnerSecretServer interface { // Get token info. GetSecretInfo(context.Context, *Secret) (*secret.Info, error) }
InnerSecretServer is the server API for InnerSecret service.
type LoginRequest ¶
type LoginRequest struct { RelateId *string `protobuf:"bytes,1,req,name=relate_id,json=relateId" json:"relate_id,omitempty"` // Types that are valid to be assigned to Secure: // *LoginRequest_Code // *LoginRequest_Password Secure isLoginRequest_Secure `protobuf_oneof:"secure"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Login request.
func (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
func (*LoginRequest) GetCode ¶
func (m *LoginRequest) GetCode() string
func (*LoginRequest) GetPassword ¶
func (m *LoginRequest) GetPassword() string
func (*LoginRequest) GetRelateId ¶
func (m *LoginRequest) GetRelateId() string
func (*LoginRequest) GetSecure ¶
func (m *LoginRequest) GetSecure() isLoginRequest_Secure
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) Reset ¶
func (m *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (m *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, an error is returned.
func (*LoginRequest) XXX_DiscardUnknown ¶
func (m *LoginRequest) XXX_DiscardUnknown()
func (*LoginRequest) XXX_Marshal ¶
func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoginRequest) XXX_Merge ¶
func (m *LoginRequest) XXX_Merge(src proto.Message)
func (*LoginRequest) XXX_OneofWrappers ¶
func (*LoginRequest) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*LoginRequest) XXX_Size ¶
func (m *LoginRequest) XXX_Size() int
func (*LoginRequest) XXX_Unmarshal ¶
func (m *LoginRequest) XXX_Unmarshal(b []byte) error
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 ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
Reason function returns reason value.
type LoginRequest_Code ¶
type LoginRequest_Code struct {
Code string `protobuf:"bytes,2,opt,name=code,oneof"`
}
type LoginRequest_Password ¶
type LoginRequest_Password struct {
Password string `protobuf:"bytes,3,opt,name=password,oneof"`
}
type OAuthRequest ¶
type OAuthRequest struct { Type *AuthType `protobuf:"varint,1,req,name=type,enum=appootb.account.AuthType" json:"type,omitempty"` OpenId *string `protobuf:"bytes,2,req,name=open_id,json=openId" json:"open_id,omitempty"` AccessToken *string `protobuf:"bytes,3,req,name=access_token,json=accessToken" json:"access_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
OAuth request.
func (*OAuthRequest) Descriptor ¶
func (*OAuthRequest) Descriptor() ([]byte, []int)
func (*OAuthRequest) GetAccessToken ¶
func (m *OAuthRequest) GetAccessToken() string
func (*OAuthRequest) GetOpenId ¶
func (m *OAuthRequest) GetOpenId() string
func (*OAuthRequest) GetType ¶
func (m *OAuthRequest) GetType() AuthType
func (*OAuthRequest) ProtoMessage ¶
func (*OAuthRequest) ProtoMessage()
func (*OAuthRequest) Reset ¶
func (m *OAuthRequest) Reset()
func (*OAuthRequest) String ¶
func (m *OAuthRequest) String() string
func (*OAuthRequest) Validate ¶
func (m *OAuthRequest) Validate() error
Validate checks the field values on OAuthRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*OAuthRequest) XXX_DiscardUnknown ¶
func (m *OAuthRequest) XXX_DiscardUnknown()
func (*OAuthRequest) XXX_Marshal ¶
func (m *OAuthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OAuthRequest) XXX_Merge ¶
func (m *OAuthRequest) XXX_Merge(src proto.Message)
func (*OAuthRequest) XXX_Size ¶
func (m *OAuthRequest) XXX_Size() int
func (*OAuthRequest) XXX_Unmarshal ¶
func (m *OAuthRequest) XXX_Unmarshal(b []byte) error
type OAuthRequestValidationError ¶
type OAuthRequestValidationError struct {
// contains filtered or unexported fields
}
OAuthRequestValidationError is the validation error returned by OAuthRequest.Validate if the designated constraints aren't met.
func (OAuthRequestValidationError) Cause ¶
func (e OAuthRequestValidationError) Cause() error
Cause function returns cause value.
func (OAuthRequestValidationError) Error ¶
func (e OAuthRequestValidationError) Error() string
Error satisfies the builtin error interface
func (OAuthRequestValidationError) ErrorName ¶
func (e OAuthRequestValidationError) ErrorName() string
ErrorName returns error name.
func (OAuthRequestValidationError) Field ¶
func (e OAuthRequestValidationError) Field() string
Field function returns field value.
func (OAuthRequestValidationError) Key ¶
func (e OAuthRequestValidationError) Key() bool
Key function returns key value.
func (OAuthRequestValidationError) Reason ¶
func (e OAuthRequestValidationError) Reason() string
Reason function returns reason value.
type PasswordClient ¶
type PasswordClient interface { // Set account password. Set(ctx context.Context, in *PasswordRequest, opts ...grpc.CallOption) (*Secret, error) // Update account password. Update(ctx context.Context, in *PasswordRequest, opts ...grpc.CallOption) (*Secret, error) // Reset account password. Reset(ctx context.Context, in *PasswordRequest, opts ...grpc.CallOption) (*Secret, error) }
PasswordClient is the client API for Password service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPasswordClient ¶
func NewPasswordClient(cc *grpc.ClientConn) PasswordClient
type PasswordRequest ¶
type PasswordRequest struct { Password *string `protobuf:"bytes,1,req,name=password" json:"password,omitempty"` OldPassword *string `protobuf:"bytes,2,opt,name=old_password,json=oldPassword" json:"old_password,omitempty"` VerifyCode *string `protobuf:"bytes,3,opt,name=verify_code,json=verifyCode" json:"verify_code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Account password request.
func (*PasswordRequest) Descriptor ¶
func (*PasswordRequest) Descriptor() ([]byte, []int)
func (*PasswordRequest) GetOldPassword ¶
func (m *PasswordRequest) GetOldPassword() string
func (*PasswordRequest) GetPassword ¶
func (m *PasswordRequest) GetPassword() string
func (*PasswordRequest) GetVerifyCode ¶
func (m *PasswordRequest) GetVerifyCode() string
func (*PasswordRequest) ProtoMessage ¶
func (*PasswordRequest) ProtoMessage()
func (*PasswordRequest) Reset ¶
func (m *PasswordRequest) Reset()
func (*PasswordRequest) String ¶
func (m *PasswordRequest) String() string
func (*PasswordRequest) Validate ¶
func (m *PasswordRequest) Validate() error
Validate checks the field values on PasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*PasswordRequest) XXX_DiscardUnknown ¶
func (m *PasswordRequest) XXX_DiscardUnknown()
func (*PasswordRequest) XXX_Marshal ¶
func (m *PasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PasswordRequest) XXX_Merge ¶
func (m *PasswordRequest) XXX_Merge(src proto.Message)
func (*PasswordRequest) XXX_Size ¶
func (m *PasswordRequest) XXX_Size() int
func (*PasswordRequest) XXX_Unmarshal ¶
func (m *PasswordRequest) XXX_Unmarshal(b []byte) error
type PasswordRequestValidationError ¶
type PasswordRequestValidationError struct {
// contains filtered or unexported fields
}
PasswordRequestValidationError is the validation error returned by PasswordRequest.Validate if the designated constraints aren't met.
func (PasswordRequestValidationError) Cause ¶
func (e PasswordRequestValidationError) Cause() error
Cause function returns cause value.
func (PasswordRequestValidationError) Error ¶
func (e PasswordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PasswordRequestValidationError) ErrorName ¶
func (e PasswordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PasswordRequestValidationError) Field ¶
func (e PasswordRequestValidationError) Field() string
Field function returns field value.
func (PasswordRequestValidationError) Key ¶
func (e PasswordRequestValidationError) Key() bool
Key function returns key value.
func (PasswordRequestValidationError) Reason ¶
func (e PasswordRequestValidationError) Reason() string
Reason function returns reason value.
type PasswordServer ¶
type PasswordServer interface { // Set account password. Set(context.Context, *PasswordRequest) (*Secret, error) // Update account password. Update(context.Context, *PasswordRequest) (*Secret, error) // Reset account password. Reset(context.Context, *PasswordRequest) (*Secret, error) }
PasswordServer is the server API for Password service.
type ProfileClient ¶
type ProfileClient interface { // Set or update account property. Set(ctx context.Context, in *Property, opts ...grpc.CallOption) (*empty.Empty, error) // Get account property. Get(ctx context.Context, in *Property, opts ...grpc.CallOption) (*Property, error) // Get account all properties. Gets(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Properties, error) }
ProfileClient is the client API for Profile service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewProfileClient ¶
func NewProfileClient(cc *grpc.ClientConn) ProfileClient
type ProfileServer ¶
type ProfileServer interface { // Set or update account property. Set(context.Context, *Property) (*empty.Empty, error) // Get account property. Get(context.Context, *Property) (*Property, error) // Get account all properties. Gets(context.Context, *empty.Empty) (*Properties, error) }
ProfileServer is the server API for Profile service.
type Properties ¶
type Properties struct { Kvs map[string]*_struct.Struct `` /* 126-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Account properties.
func (*Properties) Descriptor ¶
func (*Properties) Descriptor() ([]byte, []int)
func (*Properties) ProtoMessage ¶
func (*Properties) ProtoMessage()
func (*Properties) Reset ¶
func (m *Properties) Reset()
func (*Properties) String ¶
func (m *Properties) String() string
func (*Properties) Validate ¶
func (m *Properties) Validate() error
Validate checks the field values on Properties with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Properties) XXX_DiscardUnknown ¶
func (m *Properties) XXX_DiscardUnknown()
func (*Properties) XXX_Marshal ¶
func (m *Properties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Properties) XXX_Merge ¶
func (m *Properties) XXX_Merge(src proto.Message)
func (*Properties) XXX_Size ¶
func (m *Properties) XXX_Size() int
func (*Properties) XXX_Unmarshal ¶
func (m *Properties) XXX_Unmarshal(b []byte) error
type PropertiesValidationError ¶
type PropertiesValidationError struct {
// contains filtered or unexported fields
}
PropertiesValidationError is the validation error returned by Properties.Validate if the designated constraints aren't met.
func (PropertiesValidationError) Cause ¶
func (e PropertiesValidationError) Cause() error
Cause function returns cause value.
func (PropertiesValidationError) Error ¶
func (e PropertiesValidationError) Error() string
Error satisfies the builtin error interface
func (PropertiesValidationError) ErrorName ¶
func (e PropertiesValidationError) ErrorName() string
ErrorName returns error name.
func (PropertiesValidationError) Field ¶
func (e PropertiesValidationError) Field() string
Field function returns field value.
func (PropertiesValidationError) Key ¶
func (e PropertiesValidationError) Key() bool
Key function returns key value.
func (PropertiesValidationError) Reason ¶
func (e PropertiesValidationError) Reason() string
Reason function returns reason value.
type Property ¶
type Property struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Value *_struct.Struct `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Account property.
func (*Property) Descriptor ¶
func (*Property) ProtoMessage ¶
func (*Property) ProtoMessage()
func (*Property) Validate ¶
Validate checks the field values on Property with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Property) XXX_DiscardUnknown ¶
func (m *Property) XXX_DiscardUnknown()
func (*Property) XXX_Marshal ¶
func (*Property) XXX_Unmarshal ¶
type PropertyValidationError ¶
type PropertyValidationError struct {
// contains filtered or unexported fields
}
PropertyValidationError is the validation error returned by Property.Validate if the designated constraints aren't met.
func (PropertyValidationError) Cause ¶
func (e PropertyValidationError) Cause() error
Cause function returns cause value.
func (PropertyValidationError) Error ¶
func (e PropertyValidationError) Error() string
Error satisfies the builtin error interface
func (PropertyValidationError) ErrorName ¶
func (e PropertyValidationError) ErrorName() string
ErrorName returns error name.
func (PropertyValidationError) Field ¶
func (e PropertyValidationError) Field() string
Field function returns field value.
func (PropertyValidationError) Key ¶
func (e PropertyValidationError) Key() bool
Key function returns key value.
func (PropertyValidationError) Reason ¶
func (e PropertyValidationError) Reason() string
Reason function returns reason value.
type Secret ¶
type Secret struct { Token *string `protobuf:"bytes,1,req,name=token" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Account secret.
func (*Secret) Descriptor ¶
func (*Secret) ProtoMessage ¶
func (*Secret) ProtoMessage()
func (*Secret) Validate ¶
Validate checks the field values on Secret with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Secret) XXX_DiscardUnknown ¶
func (m *Secret) XXX_DiscardUnknown()
func (*Secret) XXX_Marshal ¶
func (*Secret) XXX_Unmarshal ¶
type SecretValidationError ¶
type SecretValidationError struct {
// contains filtered or unexported fields
}
SecretValidationError is the validation error returned by Secret.Validate if the designated constraints aren't met.
func (SecretValidationError) Cause ¶
func (e SecretValidationError) Cause() error
Cause function returns cause value.
func (SecretValidationError) Error ¶
func (e SecretValidationError) Error() string
Error satisfies the builtin error interface
func (SecretValidationError) ErrorName ¶
func (e SecretValidationError) ErrorName() string
ErrorName returns error name.
func (SecretValidationError) Field ¶
func (e SecretValidationError) Field() string
Field function returns field value.
func (SecretValidationError) Key ¶
func (e SecretValidationError) Key() bool
Key function returns key value.
func (SecretValidationError) Reason ¶
func (e SecretValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAccountServer ¶
type UnimplementedAccountServer struct { }
UnimplementedAccountServer can be embedded to have forward compatible implementations.
func (*UnimplementedAccountServer) UpdateInfo ¶
func (*UnimplementedAccountServer) UpdateInfo(ctx context.Context, req *VariableInfo) (*Info, error)
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServer) Login ¶
func (*UnimplementedAuthServer) Login(ctx context.Context, req *LoginRequest) (*Info, error)
func (*UnimplementedAuthServer) OAuth ¶
func (*UnimplementedAuthServer) OAuth(ctx context.Context, req *OAuthRequest) (*Info, error)
type UnimplementedBindServer ¶
type UnimplementedBindServer struct { }
UnimplementedBindServer can be embedded to have forward compatible implementations.
func (*UnimplementedBindServer) Apply ¶
func (*UnimplementedBindServer) Apply(ctx context.Context, req *BindRequest) (*empty.Empty, error)
func (*UnimplementedBindServer) Cancel ¶
func (*UnimplementedBindServer) Cancel(ctx context.Context, req *BindRequest) (*empty.Empty, error)
type UnimplementedInnerSecretServer ¶
type UnimplementedInnerSecretServer struct { }
UnimplementedInnerSecretServer can be embedded to have forward compatible implementations.
func (*UnimplementedInnerSecretServer) GetSecretInfo ¶
type UnimplementedPasswordServer ¶
type UnimplementedPasswordServer struct { }
UnimplementedPasswordServer can be embedded to have forward compatible implementations.
func (*UnimplementedPasswordServer) Reset ¶
func (*UnimplementedPasswordServer) Reset(ctx context.Context, req *PasswordRequest) (*Secret, error)
func (*UnimplementedPasswordServer) Set ¶
func (*UnimplementedPasswordServer) Set(ctx context.Context, req *PasswordRequest) (*Secret, error)
func (*UnimplementedPasswordServer) Update ¶
func (*UnimplementedPasswordServer) Update(ctx context.Context, req *PasswordRequest) (*Secret, error)
type UnimplementedProfileServer ¶
type UnimplementedProfileServer struct { }
UnimplementedProfileServer can be embedded to have forward compatible implementations.
func (*UnimplementedProfileServer) Gets ¶
func (*UnimplementedProfileServer) Gets(ctx context.Context, req *empty.Empty) (*Properties, error)
type VariableInfo ¶
type VariableInfo struct { Nickname *string `protobuf:"bytes,1,opt,name=nickname" json:"nickname,omitempty"` Avatar *string `protobuf:"bytes,2,opt,name=avatar" json:"avatar,omitempty"` Signature *string `protobuf:"bytes,3,opt,name=signature" json:"signature,omitempty"` Gender *Gender `protobuf:"varint,4,opt,name=gender,enum=appootb.account.Gender" json:"gender,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Update account info request.
func (*VariableInfo) Descriptor ¶
func (*VariableInfo) Descriptor() ([]byte, []int)
func (*VariableInfo) GetAvatar ¶
func (m *VariableInfo) GetAvatar() string
func (*VariableInfo) GetGender ¶
func (m *VariableInfo) GetGender() Gender
func (*VariableInfo) GetNickname ¶
func (m *VariableInfo) GetNickname() string
func (*VariableInfo) GetSignature ¶
func (m *VariableInfo) GetSignature() string
func (*VariableInfo) ProtoMessage ¶
func (*VariableInfo) ProtoMessage()
func (*VariableInfo) Reset ¶
func (m *VariableInfo) Reset()
func (*VariableInfo) String ¶
func (m *VariableInfo) String() string
func (*VariableInfo) Validate ¶
func (m *VariableInfo) Validate() error
Validate checks the field values on VariableInfo with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*VariableInfo) XXX_DiscardUnknown ¶
func (m *VariableInfo) XXX_DiscardUnknown()
func (*VariableInfo) XXX_Marshal ¶
func (m *VariableInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VariableInfo) XXX_Merge ¶
func (m *VariableInfo) XXX_Merge(src proto.Message)
func (*VariableInfo) XXX_Size ¶
func (m *VariableInfo) XXX_Size() int
func (*VariableInfo) XXX_Unmarshal ¶
func (m *VariableInfo) XXX_Unmarshal(b []byte) error
type VariableInfoValidationError ¶
type VariableInfoValidationError struct {
// contains filtered or unexported fields
}
VariableInfoValidationError is the validation error returned by VariableInfo.Validate if the designated constraints aren't met.
func (VariableInfoValidationError) Cause ¶
func (e VariableInfoValidationError) Cause() error
Cause function returns cause value.
func (VariableInfoValidationError) Error ¶
func (e VariableInfoValidationError) Error() string
Error satisfies the builtin error interface
func (VariableInfoValidationError) ErrorName ¶
func (e VariableInfoValidationError) ErrorName() string
ErrorName returns error name.
func (VariableInfoValidationError) Field ¶
func (e VariableInfoValidationError) Field() string
Field function returns field value.
func (VariableInfoValidationError) Key ¶
func (e VariableInfoValidationError) Key() bool
Key function returns key value.
func (VariableInfoValidationError) Reason ¶
func (e VariableInfoValidationError) Reason() string
Reason function returns reason value.
Source Files ¶
- account.pb.auth.go
- account.pb.go
- account.pb.gw.go
- account.pb.validate.go
- auth.pb.auth.go
- auth.pb.go
- auth.pb.gw.go
- auth.pb.validate.go
- bind.pb.auth.go
- bind.pb.go
- bind.pb.gw.go
- bind.pb.validate.go
- include.pb.auth.go
- include.pb.go
- include.pb.validate.go
- inner_secret.pb.auth.go
- inner_secret.pb.go
- inner_secret.pb.gw.go
- inner_secret.pb.validate.go
- password.pb.auth.go
- password.pb.go
- password.pb.gw.go
- password.pb.validate.go
- profile.pb.auth.go
- profile.pb.go
- profile.pb.gw.go
- profile.pb.validate.go