Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAuthHTTPServer(s *http.Server, srv AuthHTTPServer)
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- type AuthClient
- type AuthHTTPClient
- type AuthHTTPClientImpl
- type AuthHTTPServer
- type AuthServer
- type AuthorizeReq
- func (*AuthorizeReq) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeReq) GetClientId() string
- func (x *AuthorizeReq) GetRedirectUri() string
- func (x *AuthorizeReq) GetResponseType() string
- func (x *AuthorizeReq) GetScope() string
- func (x *AuthorizeReq) GetState() string
- func (*AuthorizeReq) ProtoMessage()
- func (x *AuthorizeReq) ProtoReflect() protoreflect.Message
- func (x *AuthorizeReq) Reset()
- func (x *AuthorizeReq) String() string
- func (m *AuthorizeReq) Validate() error
- func (m *AuthorizeReq) ValidateAll() error
- type AuthorizeReqMultiError
- type AuthorizeReqValidationError
- func (e AuthorizeReqValidationError) Cause() error
- func (e AuthorizeReqValidationError) Error() string
- func (e AuthorizeReqValidationError) ErrorName() string
- func (e AuthorizeReqValidationError) Field() string
- func (e AuthorizeReqValidationError) Key() bool
- func (e AuthorizeReqValidationError) Reason() string
- type AuthorizeResp
- func (*AuthorizeResp) Descriptor() ([]byte, []int)deprecated
- func (*AuthorizeResp) ProtoMessage()
- func (x *AuthorizeResp) ProtoReflect() protoreflect.Message
- func (x *AuthorizeResp) Reset()
- func (x *AuthorizeResp) String() string
- func (m *AuthorizeResp) Validate() error
- func (m *AuthorizeResp) ValidateAll() error
- type AuthorizeRespMultiError
- type AuthorizeRespValidationError
- func (e AuthorizeRespValidationError) Cause() error
- func (e AuthorizeRespValidationError) Error() string
- func (e AuthorizeRespValidationError) ErrorName() string
- func (e AuthorizeRespValidationError) Field() string
- func (e AuthorizeRespValidationError) Key() bool
- func (e AuthorizeRespValidationError) Reason() string
- type GetCaptchaReq
- func (*GetCaptchaReq) Descriptor() ([]byte, []int)deprecated
- func (*GetCaptchaReq) ProtoMessage()
- func (x *GetCaptchaReq) ProtoReflect() protoreflect.Message
- func (x *GetCaptchaReq) Reset()
- func (x *GetCaptchaReq) String() string
- func (m *GetCaptchaReq) Validate() error
- func (m *GetCaptchaReq) ValidateAll() error
- type GetCaptchaReqMultiError
- type GetCaptchaReqValidationError
- func (e GetCaptchaReqValidationError) Cause() error
- func (e GetCaptchaReqValidationError) Error() string
- func (e GetCaptchaReqValidationError) ErrorName() string
- func (e GetCaptchaReqValidationError) Field() string
- func (e GetCaptchaReqValidationError) Key() bool
- func (e GetCaptchaReqValidationError) Reason() string
- type GetCaptchaResp
- func (*GetCaptchaResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetCaptchaResp) GetCaptchaId() string
- func (x *GetCaptchaResp) GetImgBytes() string
- func (*GetCaptchaResp) ProtoMessage()
- func (x *GetCaptchaResp) ProtoReflect() protoreflect.Message
- func (x *GetCaptchaResp) Reset()
- func (x *GetCaptchaResp) String() string
- func (m *GetCaptchaResp) Validate() error
- func (m *GetCaptchaResp) ValidateAll() error
- type GetCaptchaRespMultiError
- type GetCaptchaRespValidationError
- func (e GetCaptchaRespValidationError) Cause() error
- func (e GetCaptchaRespValidationError) Error() string
- func (e GetCaptchaRespValidationError) ErrorName() string
- func (e GetCaptchaRespValidationError) Field() string
- func (e GetCaptchaRespValidationError) Key() bool
- func (e GetCaptchaRespValidationError) Reason() string
- type LogoutReq
- func (*LogoutReq) Descriptor() ([]byte, []int)deprecated
- func (x *LogoutReq) GetRedirectUri() string
- func (*LogoutReq) ProtoMessage()
- func (x *LogoutReq) ProtoReflect() protoreflect.Message
- func (x *LogoutReq) Reset()
- func (x *LogoutReq) String() string
- func (m *LogoutReq) Validate() error
- func (m *LogoutReq) ValidateAll() error
- type LogoutReqMultiError
- type LogoutReqValidationError
- type LogoutResp
- type LogoutRespMultiError
- type LogoutRespValidationError
- type RefreshTokenReq
- func (*RefreshTokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenReq) GetGrantType() string
- func (x *RefreshTokenReq) GetRefreshToken() string
- func (*RefreshTokenReq) ProtoMessage()
- func (x *RefreshTokenReq) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenReq) Reset()
- func (x *RefreshTokenReq) String() string
- func (m *RefreshTokenReq) Validate() error
- func (m *RefreshTokenReq) ValidateAll() error
- type RefreshTokenReqMultiError
- type RefreshTokenReqValidationError
- func (e RefreshTokenReqValidationError) Cause() error
- func (e RefreshTokenReqValidationError) Error() string
- func (e RefreshTokenReqValidationError) ErrorName() string
- func (e RefreshTokenReqValidationError) Field() string
- func (e RefreshTokenReqValidationError) Key() bool
- func (e RefreshTokenReqValidationError) Reason() string
- type RefreshTokenResp
- func (*RefreshTokenResp) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenResp) GetAccessToken() string
- func (x *RefreshTokenResp) GetExpiresIn() int64
- func (x *RefreshTokenResp) GetRefreshToken() string
- func (x *RefreshTokenResp) GetScope() string
- func (x *RefreshTokenResp) GetTokenType() string
- func (*RefreshTokenResp) ProtoMessage()
- func (x *RefreshTokenResp) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenResp) Reset()
- func (x *RefreshTokenResp) String() string
- func (m *RefreshTokenResp) Validate() error
- func (m *RefreshTokenResp) ValidateAll() error
- type RefreshTokenRespMultiError
- type RefreshTokenRespValidationError
- func (e RefreshTokenRespValidationError) Cause() error
- func (e RefreshTokenRespValidationError) Error() string
- func (e RefreshTokenRespValidationError) ErrorName() string
- func (e RefreshTokenRespValidationError) Field() string
- func (e RefreshTokenRespValidationError) Key() bool
- func (e RefreshTokenRespValidationError) Reason() string
- type TokenReq
- func (*TokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *TokenReq) GetClientId() string
- func (x *TokenReq) GetCode() string
- func (x *TokenReq) GetGrantType() string
- func (*TokenReq) ProtoMessage()
- func (x *TokenReq) ProtoReflect() protoreflect.Message
- func (x *TokenReq) Reset()
- func (x *TokenReq) String() string
- func (m *TokenReq) Validate() error
- func (m *TokenReq) ValidateAll() error
- type TokenReqMultiError
- type TokenReqValidationError
- type TokenResp
- func (*TokenResp) Descriptor() ([]byte, []int)deprecated
- func (x *TokenResp) GetAccessToken() string
- func (x *TokenResp) GetExpiresIn() int64
- func (x *TokenResp) GetRefreshToken() string
- func (x *TokenResp) GetScope() string
- func (x *TokenResp) GetTokenType() string
- func (*TokenResp) ProtoMessage()
- func (x *TokenResp) ProtoReflect() protoreflect.Message
- func (x *TokenResp) Reset()
- func (x *TokenResp) String() string
- func (m *TokenResp) Validate() error
- func (m *TokenResp) ValidateAll() error
- type TokenRespMultiError
- type TokenRespValidationError
- type UnimplementedAuthServer
- type UnsafeAuthServer
- type VerifyCaptchaReq
- func (*VerifyCaptchaReq) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyCaptchaReq) GetCaptchaCode() string
- func (x *VerifyCaptchaReq) GetCaptchaId() string
- func (*VerifyCaptchaReq) ProtoMessage()
- func (x *VerifyCaptchaReq) ProtoReflect() protoreflect.Message
- func (x *VerifyCaptchaReq) Reset()
- func (x *VerifyCaptchaReq) String() string
- func (m *VerifyCaptchaReq) Validate() error
- func (m *VerifyCaptchaReq) ValidateAll() error
- type VerifyCaptchaReqMultiError
- type VerifyCaptchaReqValidationError
- func (e VerifyCaptchaReqValidationError) Cause() error
- func (e VerifyCaptchaReqValidationError) Error() string
- func (e VerifyCaptchaReqValidationError) ErrorName() string
- func (e VerifyCaptchaReqValidationError) Field() string
- func (e VerifyCaptchaReqValidationError) Key() bool
- func (e VerifyCaptchaReqValidationError) Reason() string
- type VerifyCaptchaResp
- func (*VerifyCaptchaResp) Descriptor() ([]byte, []int)deprecated
- func (*VerifyCaptchaResp) ProtoMessage()
- func (x *VerifyCaptchaResp) ProtoReflect() protoreflect.Message
- func (x *VerifyCaptchaResp) Reset()
- func (x *VerifyCaptchaResp) String() string
- func (m *VerifyCaptchaResp) Validate() error
- func (m *VerifyCaptchaResp) ValidateAll() error
- type VerifyCaptchaRespMultiError
- type VerifyCaptchaRespValidationError
- func (e VerifyCaptchaRespValidationError) Cause() error
- func (e VerifyCaptchaRespValidationError) Error() string
- func (e VerifyCaptchaRespValidationError) ErrorName() string
- func (e VerifyCaptchaRespValidationError) Field() string
- func (e VerifyCaptchaRespValidationError) Key() bool
- func (e VerifyCaptchaRespValidationError) Reason() string
- type VerifyReq
- type VerifyReqMultiError
- type VerifyReqValidationError
- type VerifyResp
- func (*VerifyResp) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyResp) GetClientId() string
- func (x *VerifyResp) GetDomain() string
- func (x *VerifyResp) GetExpiresIn() int64
- func (x *VerifyResp) GetScope() string
- func (x *VerifyResp) GetUserId() string
- func (*VerifyResp) ProtoMessage()
- func (x *VerifyResp) ProtoReflect() protoreflect.Message
- func (x *VerifyResp) Reset()
- func (x *VerifyResp) String() string
- func (m *VerifyResp) Validate() error
- func (m *VerifyResp) ValidateAll() error
- type VerifyRespMultiError
- type VerifyRespValidationError
Constants ¶
const OperationAuthGetCaptcha = "/api.auth.service.v1.Auth/GetCaptcha"
const OperationAuthVerifyCaptcha = "/api.auth.service.v1.Auth/VerifyCaptcha"
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.auth.service.v1.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCaptcha", Handler: _Auth_GetCaptcha_Handler, }, { MethodName: "VerifyCaptcha", Handler: _Auth_VerifyCaptcha_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth/service/v1/auth.proto", }
Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auth_service_v1_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthHTTPServer ¶
func RegisterAuthHTTPServer(s *http.Server, srv AuthHTTPServer)
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
Types ¶
type AuthClient ¶
type AuthClient interface { GetCaptcha(ctx context.Context, in *GetCaptchaReq, opts ...grpc.CallOption) (*GetCaptchaResp, error) VerifyCaptcha(ctx context.Context, in *VerifyCaptchaReq, opts ...grpc.CallOption) (*VerifyCaptchaResp, error) }
AuthClient is the client API for Auth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthHTTPClient ¶
type AuthHTTPClient interface { GetCaptcha(ctx context.Context, req *GetCaptchaReq, opts ...http.CallOption) (rsp *GetCaptchaResp, err error) VerifyCaptcha(ctx context.Context, req *VerifyCaptchaReq, opts ...http.CallOption) (rsp *VerifyCaptchaResp, err error) }
func NewAuthHTTPClient ¶
func NewAuthHTTPClient(client *http.Client) AuthHTTPClient
type AuthHTTPClientImpl ¶
type AuthHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AuthHTTPClientImpl) GetCaptcha ¶
func (c *AuthHTTPClientImpl) GetCaptcha(ctx context.Context, in *GetCaptchaReq, opts ...http.CallOption) (*GetCaptchaResp, error)
func (*AuthHTTPClientImpl) VerifyCaptcha ¶
func (c *AuthHTTPClientImpl) VerifyCaptcha(ctx context.Context, in *VerifyCaptchaReq, opts ...http.CallOption) (*VerifyCaptchaResp, error)
type AuthHTTPServer ¶
type AuthHTTPServer interface { GetCaptcha(context.Context, *GetCaptchaReq) (*GetCaptchaResp, error) VerifyCaptcha(context.Context, *VerifyCaptchaReq) (*VerifyCaptchaResp, error) }
type AuthServer ¶
type AuthServer interface { GetCaptcha(context.Context, *GetCaptchaReq) (*GetCaptchaResp, error) VerifyCaptcha(context.Context, *VerifyCaptchaReq) (*VerifyCaptchaResp, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility
type AuthorizeReq ¶
type AuthorizeReq struct { ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ResponseType string `protobuf:"bytes,2,opt,name=response_type,json=responseType,proto3" json:"response_type,omitempty"` Scope string `protobuf:"bytes,3,opt,name=scope,proto3" json:"scope,omitempty"` State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` RedirectUri string `protobuf:"bytes,5,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` // contains filtered or unexported fields }
func (*AuthorizeReq) Descriptor
deprecated
func (*AuthorizeReq) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeReq.ProtoReflect.Descriptor instead.
func (*AuthorizeReq) GetClientId ¶
func (x *AuthorizeReq) GetClientId() string
func (*AuthorizeReq) GetRedirectUri ¶
func (x *AuthorizeReq) GetRedirectUri() string
func (*AuthorizeReq) GetResponseType ¶
func (x *AuthorizeReq) GetResponseType() string
func (*AuthorizeReq) GetScope ¶
func (x *AuthorizeReq) GetScope() string
func (*AuthorizeReq) GetState ¶
func (x *AuthorizeReq) GetState() string
func (*AuthorizeReq) ProtoMessage ¶
func (*AuthorizeReq) ProtoMessage()
func (*AuthorizeReq) ProtoReflect ¶
func (x *AuthorizeReq) ProtoReflect() protoreflect.Message
func (*AuthorizeReq) Reset ¶
func (x *AuthorizeReq) Reset()
func (*AuthorizeReq) String ¶
func (x *AuthorizeReq) String() string
func (*AuthorizeReq) Validate ¶
func (m *AuthorizeReq) Validate() error
Validate checks the field values on AuthorizeReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AuthorizeReq) ValidateAll ¶
func (m *AuthorizeReq) ValidateAll() error
ValidateAll checks the field values on AuthorizeReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AuthorizeReqMultiError, or nil if none found.
type AuthorizeReqMultiError ¶
type AuthorizeReqMultiError []error
AuthorizeReqMultiError is an error wrapping multiple validation errors returned by AuthorizeReq.ValidateAll() if the designated constraints aren't met.
func (AuthorizeReqMultiError) AllErrors ¶
func (m AuthorizeReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthorizeReqMultiError) Error ¶
func (m AuthorizeReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthorizeReqValidationError ¶
type AuthorizeReqValidationError struct {
// contains filtered or unexported fields
}
AuthorizeReqValidationError is the validation error returned by AuthorizeReq.Validate if the designated constraints aren't met.
func (AuthorizeReqValidationError) Cause ¶
func (e AuthorizeReqValidationError) Cause() error
Cause function returns cause value.
func (AuthorizeReqValidationError) Error ¶
func (e AuthorizeReqValidationError) Error() string
Error satisfies the builtin error interface
func (AuthorizeReqValidationError) ErrorName ¶
func (e AuthorizeReqValidationError) ErrorName() string
ErrorName returns error name.
func (AuthorizeReqValidationError) Field ¶
func (e AuthorizeReqValidationError) Field() string
Field function returns field value.
func (AuthorizeReqValidationError) Key ¶
func (e AuthorizeReqValidationError) Key() bool
Key function returns key value.
func (AuthorizeReqValidationError) Reason ¶
func (e AuthorizeReqValidationError) Reason() string
Reason function returns reason value.
type AuthorizeResp ¶
type AuthorizeResp struct {
// contains filtered or unexported fields
}
func (*AuthorizeResp) Descriptor
deprecated
func (*AuthorizeResp) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeResp.ProtoReflect.Descriptor instead.
func (*AuthorizeResp) ProtoMessage ¶
func (*AuthorizeResp) ProtoMessage()
func (*AuthorizeResp) ProtoReflect ¶
func (x *AuthorizeResp) ProtoReflect() protoreflect.Message
func (*AuthorizeResp) Reset ¶
func (x *AuthorizeResp) Reset()
func (*AuthorizeResp) String ¶
func (x *AuthorizeResp) String() string
func (*AuthorizeResp) Validate ¶
func (m *AuthorizeResp) Validate() error
Validate checks the field values on AuthorizeResp with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AuthorizeResp) ValidateAll ¶
func (m *AuthorizeResp) ValidateAll() error
ValidateAll checks the field values on AuthorizeResp with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AuthorizeRespMultiError, or nil if none found.
type AuthorizeRespMultiError ¶
type AuthorizeRespMultiError []error
AuthorizeRespMultiError is an error wrapping multiple validation errors returned by AuthorizeResp.ValidateAll() if the designated constraints aren't met.
func (AuthorizeRespMultiError) AllErrors ¶
func (m AuthorizeRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthorizeRespMultiError) Error ¶
func (m AuthorizeRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthorizeRespValidationError ¶
type AuthorizeRespValidationError struct {
// contains filtered or unexported fields
}
AuthorizeRespValidationError is the validation error returned by AuthorizeResp.Validate if the designated constraints aren't met.
func (AuthorizeRespValidationError) Cause ¶
func (e AuthorizeRespValidationError) Cause() error
Cause function returns cause value.
func (AuthorizeRespValidationError) Error ¶
func (e AuthorizeRespValidationError) Error() string
Error satisfies the builtin error interface
func (AuthorizeRespValidationError) ErrorName ¶
func (e AuthorizeRespValidationError) ErrorName() string
ErrorName returns error name.
func (AuthorizeRespValidationError) Field ¶
func (e AuthorizeRespValidationError) Field() string
Field function returns field value.
func (AuthorizeRespValidationError) Key ¶
func (e AuthorizeRespValidationError) Key() bool
Key function returns key value.
func (AuthorizeRespValidationError) Reason ¶
func (e AuthorizeRespValidationError) Reason() string
Reason function returns reason value.
type GetCaptchaReq ¶
type GetCaptchaReq struct {
// contains filtered or unexported fields
}
func (*GetCaptchaReq) Descriptor
deprecated
func (*GetCaptchaReq) Descriptor() ([]byte, []int)
Deprecated: Use GetCaptchaReq.ProtoReflect.Descriptor instead.
func (*GetCaptchaReq) ProtoMessage ¶
func (*GetCaptchaReq) ProtoMessage()
func (*GetCaptchaReq) ProtoReflect ¶
func (x *GetCaptchaReq) ProtoReflect() protoreflect.Message
func (*GetCaptchaReq) Reset ¶
func (x *GetCaptchaReq) Reset()
func (*GetCaptchaReq) String ¶
func (x *GetCaptchaReq) String() string
func (*GetCaptchaReq) Validate ¶
func (m *GetCaptchaReq) Validate() error
Validate checks the field values on GetCaptchaReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetCaptchaReq) ValidateAll ¶
func (m *GetCaptchaReq) ValidateAll() error
ValidateAll checks the field values on GetCaptchaReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCaptchaReqMultiError, or nil if none found.
type GetCaptchaReqMultiError ¶
type GetCaptchaReqMultiError []error
GetCaptchaReqMultiError is an error wrapping multiple validation errors returned by GetCaptchaReq.ValidateAll() if the designated constraints aren't met.
func (GetCaptchaReqMultiError) AllErrors ¶
func (m GetCaptchaReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCaptchaReqMultiError) Error ¶
func (m GetCaptchaReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCaptchaReqValidationError ¶
type GetCaptchaReqValidationError struct {
// contains filtered or unexported fields
}
GetCaptchaReqValidationError is the validation error returned by GetCaptchaReq.Validate if the designated constraints aren't met.
func (GetCaptchaReqValidationError) Cause ¶
func (e GetCaptchaReqValidationError) Cause() error
Cause function returns cause value.
func (GetCaptchaReqValidationError) Error ¶
func (e GetCaptchaReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetCaptchaReqValidationError) ErrorName ¶
func (e GetCaptchaReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetCaptchaReqValidationError) Field ¶
func (e GetCaptchaReqValidationError) Field() string
Field function returns field value.
func (GetCaptchaReqValidationError) Key ¶
func (e GetCaptchaReqValidationError) Key() bool
Key function returns key value.
func (GetCaptchaReqValidationError) Reason ¶
func (e GetCaptchaReqValidationError) Reason() string
Reason function returns reason value.
type GetCaptchaResp ¶
type GetCaptchaResp struct { CaptchaId string `protobuf:"bytes,1,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"` ImgBytes string `protobuf:"bytes,2,opt,name=img_bytes,json=imgBytes,proto3" json:"img_bytes,omitempty"` // contains filtered or unexported fields }
func (*GetCaptchaResp) Descriptor
deprecated
func (*GetCaptchaResp) Descriptor() ([]byte, []int)
Deprecated: Use GetCaptchaResp.ProtoReflect.Descriptor instead.
func (*GetCaptchaResp) GetCaptchaId ¶
func (x *GetCaptchaResp) GetCaptchaId() string
func (*GetCaptchaResp) GetImgBytes ¶
func (x *GetCaptchaResp) GetImgBytes() string
func (*GetCaptchaResp) ProtoMessage ¶
func (*GetCaptchaResp) ProtoMessage()
func (*GetCaptchaResp) ProtoReflect ¶
func (x *GetCaptchaResp) ProtoReflect() protoreflect.Message
func (*GetCaptchaResp) Reset ¶
func (x *GetCaptchaResp) Reset()
func (*GetCaptchaResp) String ¶
func (x *GetCaptchaResp) String() string
func (*GetCaptchaResp) Validate ¶
func (m *GetCaptchaResp) Validate() error
Validate checks the field values on GetCaptchaResp with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetCaptchaResp) ValidateAll ¶
func (m *GetCaptchaResp) ValidateAll() error
ValidateAll checks the field values on GetCaptchaResp with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCaptchaRespMultiError, or nil if none found.
type GetCaptchaRespMultiError ¶
type GetCaptchaRespMultiError []error
GetCaptchaRespMultiError is an error wrapping multiple validation errors returned by GetCaptchaResp.ValidateAll() if the designated constraints aren't met.
func (GetCaptchaRespMultiError) AllErrors ¶
func (m GetCaptchaRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCaptchaRespMultiError) Error ¶
func (m GetCaptchaRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCaptchaRespValidationError ¶
type GetCaptchaRespValidationError struct {
// contains filtered or unexported fields
}
GetCaptchaRespValidationError is the validation error returned by GetCaptchaResp.Validate if the designated constraints aren't met.
func (GetCaptchaRespValidationError) Cause ¶
func (e GetCaptchaRespValidationError) Cause() error
Cause function returns cause value.
func (GetCaptchaRespValidationError) Error ¶
func (e GetCaptchaRespValidationError) Error() string
Error satisfies the builtin error interface
func (GetCaptchaRespValidationError) ErrorName ¶
func (e GetCaptchaRespValidationError) ErrorName() string
ErrorName returns error name.
func (GetCaptchaRespValidationError) Field ¶
func (e GetCaptchaRespValidationError) Field() string
Field function returns field value.
func (GetCaptchaRespValidationError) Key ¶
func (e GetCaptchaRespValidationError) Key() bool
Key function returns key value.
func (GetCaptchaRespValidationError) Reason ¶
func (e GetCaptchaRespValidationError) Reason() string
Reason function returns reason value.
type LogoutReq ¶
type LogoutReq struct { RedirectUri string `protobuf:"bytes,1,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` // contains filtered or unexported fields }
func (*LogoutReq) Descriptor
deprecated
func (*LogoutReq) GetRedirectUri ¶
func (*LogoutReq) ProtoMessage ¶
func (*LogoutReq) ProtoMessage()
func (*LogoutReq) ProtoReflect ¶
func (x *LogoutReq) ProtoReflect() protoreflect.Message
func (*LogoutReq) Validate ¶
Validate checks the field values on LogoutReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LogoutReq) ValidateAll ¶
ValidateAll checks the field values on LogoutReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LogoutReqMultiError, or nil if none found.
type LogoutReqMultiError ¶
type LogoutReqMultiError []error
LogoutReqMultiError is an error wrapping multiple validation errors returned by LogoutReq.ValidateAll() if the designated constraints aren't met.
func (LogoutReqMultiError) AllErrors ¶
func (m LogoutReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LogoutReqMultiError) Error ¶
func (m LogoutReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LogoutReqValidationError ¶
type LogoutReqValidationError struct {
// contains filtered or unexported fields
}
LogoutReqValidationError is the validation error returned by LogoutReq.Validate if the designated constraints aren't met.
func (LogoutReqValidationError) Cause ¶
func (e LogoutReqValidationError) Cause() error
Cause function returns cause value.
func (LogoutReqValidationError) Error ¶
func (e LogoutReqValidationError) Error() string
Error satisfies the builtin error interface
func (LogoutReqValidationError) ErrorName ¶
func (e LogoutReqValidationError) ErrorName() string
ErrorName returns error name.
func (LogoutReqValidationError) Field ¶
func (e LogoutReqValidationError) Field() string
Field function returns field value.
func (LogoutReqValidationError) Key ¶
func (e LogoutReqValidationError) Key() bool
Key function returns key value.
func (LogoutReqValidationError) Reason ¶
func (e LogoutReqValidationError) Reason() string
Reason function returns reason value.
type LogoutResp ¶
type LogoutResp struct {
// contains filtered or unexported fields
}
func (*LogoutResp) Descriptor
deprecated
func (*LogoutResp) Descriptor() ([]byte, []int)
Deprecated: Use LogoutResp.ProtoReflect.Descriptor instead.
func (*LogoutResp) ProtoMessage ¶
func (*LogoutResp) ProtoMessage()
func (*LogoutResp) ProtoReflect ¶
func (x *LogoutResp) ProtoReflect() protoreflect.Message
func (*LogoutResp) Reset ¶
func (x *LogoutResp) Reset()
func (*LogoutResp) String ¶
func (x *LogoutResp) String() string
func (*LogoutResp) Validate ¶
func (m *LogoutResp) Validate() error
Validate checks the field values on LogoutResp with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LogoutResp) ValidateAll ¶
func (m *LogoutResp) ValidateAll() error
ValidateAll checks the field values on LogoutResp with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LogoutRespMultiError, or nil if none found.
type LogoutRespMultiError ¶
type LogoutRespMultiError []error
LogoutRespMultiError is an error wrapping multiple validation errors returned by LogoutResp.ValidateAll() if the designated constraints aren't met.
func (LogoutRespMultiError) AllErrors ¶
func (m LogoutRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LogoutRespMultiError) Error ¶
func (m LogoutRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LogoutRespValidationError ¶
type LogoutRespValidationError struct {
// contains filtered or unexported fields
}
LogoutRespValidationError is the validation error returned by LogoutResp.Validate if the designated constraints aren't met.
func (LogoutRespValidationError) Cause ¶
func (e LogoutRespValidationError) Cause() error
Cause function returns cause value.
func (LogoutRespValidationError) Error ¶
func (e LogoutRespValidationError) Error() string
Error satisfies the builtin error interface
func (LogoutRespValidationError) ErrorName ¶
func (e LogoutRespValidationError) ErrorName() string
ErrorName returns error name.
func (LogoutRespValidationError) Field ¶
func (e LogoutRespValidationError) Field() string
Field function returns field value.
func (LogoutRespValidationError) Key ¶
func (e LogoutRespValidationError) Key() bool
Key function returns key value.
func (LogoutRespValidationError) Reason ¶
func (e LogoutRespValidationError) Reason() string
Reason function returns reason value.
type RefreshTokenReq ¶
type RefreshTokenReq struct { GrantType string `protobuf:"bytes,1,opt,name=grant_type,json=grantType,proto3" json:"grant_type,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokenReq) Descriptor
deprecated
func (*RefreshTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenReq.ProtoReflect.Descriptor instead.
func (*RefreshTokenReq) GetGrantType ¶
func (x *RefreshTokenReq) GetGrantType() string
func (*RefreshTokenReq) GetRefreshToken ¶
func (x *RefreshTokenReq) GetRefreshToken() string
func (*RefreshTokenReq) ProtoMessage ¶
func (*RefreshTokenReq) ProtoMessage()
func (*RefreshTokenReq) ProtoReflect ¶
func (x *RefreshTokenReq) ProtoReflect() protoreflect.Message
func (*RefreshTokenReq) Reset ¶
func (x *RefreshTokenReq) Reset()
func (*RefreshTokenReq) String ¶
func (x *RefreshTokenReq) String() string
func (*RefreshTokenReq) Validate ¶
func (m *RefreshTokenReq) Validate() error
Validate checks the field values on RefreshTokenReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RefreshTokenReq) ValidateAll ¶
func (m *RefreshTokenReq) ValidateAll() error
ValidateAll checks the field values on RefreshTokenReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RefreshTokenReqMultiError, or nil if none found.
type RefreshTokenReqMultiError ¶
type RefreshTokenReqMultiError []error
RefreshTokenReqMultiError is an error wrapping multiple validation errors returned by RefreshTokenReq.ValidateAll() if the designated constraints aren't met.
func (RefreshTokenReqMultiError) AllErrors ¶
func (m RefreshTokenReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RefreshTokenReqMultiError) Error ¶
func (m RefreshTokenReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RefreshTokenReqValidationError ¶
type RefreshTokenReqValidationError struct {
// contains filtered or unexported fields
}
RefreshTokenReqValidationError is the validation error returned by RefreshTokenReq.Validate if the designated constraints aren't met.
func (RefreshTokenReqValidationError) Cause ¶
func (e RefreshTokenReqValidationError) Cause() error
Cause function returns cause value.
func (RefreshTokenReqValidationError) Error ¶
func (e RefreshTokenReqValidationError) Error() string
Error satisfies the builtin error interface
func (RefreshTokenReqValidationError) ErrorName ¶
func (e RefreshTokenReqValidationError) ErrorName() string
ErrorName returns error name.
func (RefreshTokenReqValidationError) Field ¶
func (e RefreshTokenReqValidationError) Field() string
Field function returns field value.
func (RefreshTokenReqValidationError) Key ¶
func (e RefreshTokenReqValidationError) Key() bool
Key function returns key value.
func (RefreshTokenReqValidationError) Reason ¶
func (e RefreshTokenReqValidationError) Reason() string
Reason function returns reason value.
type RefreshTokenResp ¶
type RefreshTokenResp struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` ExpiresIn int64 `protobuf:"varint,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` Scope string `protobuf:"bytes,4,opt,name=scope,proto3" json:"scope,omitempty"` TokenType string `protobuf:"bytes,5,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokenResp) Descriptor
deprecated
func (*RefreshTokenResp) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenResp.ProtoReflect.Descriptor instead.
func (*RefreshTokenResp) GetAccessToken ¶
func (x *RefreshTokenResp) GetAccessToken() string
func (*RefreshTokenResp) GetExpiresIn ¶
func (x *RefreshTokenResp) GetExpiresIn() int64
func (*RefreshTokenResp) GetRefreshToken ¶
func (x *RefreshTokenResp) GetRefreshToken() string
func (*RefreshTokenResp) GetScope ¶
func (x *RefreshTokenResp) GetScope() string
func (*RefreshTokenResp) GetTokenType ¶
func (x *RefreshTokenResp) GetTokenType() string
func (*RefreshTokenResp) ProtoMessage ¶
func (*RefreshTokenResp) ProtoMessage()
func (*RefreshTokenResp) ProtoReflect ¶
func (x *RefreshTokenResp) ProtoReflect() protoreflect.Message
func (*RefreshTokenResp) Reset ¶
func (x *RefreshTokenResp) Reset()
func (*RefreshTokenResp) String ¶
func (x *RefreshTokenResp) String() string
func (*RefreshTokenResp) Validate ¶
func (m *RefreshTokenResp) Validate() error
Validate checks the field values on RefreshTokenResp with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RefreshTokenResp) ValidateAll ¶
func (m *RefreshTokenResp) ValidateAll() error
ValidateAll checks the field values on RefreshTokenResp with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RefreshTokenRespMultiError, or nil if none found.
type RefreshTokenRespMultiError ¶
type RefreshTokenRespMultiError []error
RefreshTokenRespMultiError is an error wrapping multiple validation errors returned by RefreshTokenResp.ValidateAll() if the designated constraints aren't met.
func (RefreshTokenRespMultiError) AllErrors ¶
func (m RefreshTokenRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RefreshTokenRespMultiError) Error ¶
func (m RefreshTokenRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RefreshTokenRespValidationError ¶
type RefreshTokenRespValidationError struct {
// contains filtered or unexported fields
}
RefreshTokenRespValidationError is the validation error returned by RefreshTokenResp.Validate if the designated constraints aren't met.
func (RefreshTokenRespValidationError) Cause ¶
func (e RefreshTokenRespValidationError) Cause() error
Cause function returns cause value.
func (RefreshTokenRespValidationError) Error ¶
func (e RefreshTokenRespValidationError) Error() string
Error satisfies the builtin error interface
func (RefreshTokenRespValidationError) ErrorName ¶
func (e RefreshTokenRespValidationError) ErrorName() string
ErrorName returns error name.
func (RefreshTokenRespValidationError) Field ¶
func (e RefreshTokenRespValidationError) Field() string
Field function returns field value.
func (RefreshTokenRespValidationError) Key ¶
func (e RefreshTokenRespValidationError) Key() bool
Key function returns key value.
func (RefreshTokenRespValidationError) Reason ¶
func (e RefreshTokenRespValidationError) Reason() string
Reason function returns reason value.
type TokenReq ¶
type TokenReq struct { GrantType string `protobuf:"bytes,1,opt,name=grant_type,json=grantType,proto3" json:"grant_type,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // contains filtered or unexported fields }
func (*TokenReq) Descriptor
deprecated
func (*TokenReq) GetClientId ¶
func (*TokenReq) GetGrantType ¶
func (*TokenReq) ProtoMessage ¶
func (*TokenReq) ProtoMessage()
func (*TokenReq) ProtoReflect ¶
func (x *TokenReq) ProtoReflect() protoreflect.Message
func (*TokenReq) Validate ¶
Validate checks the field values on TokenReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TokenReq) ValidateAll ¶
ValidateAll checks the field values on TokenReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TokenReqMultiError, or nil if none found.
type TokenReqMultiError ¶
type TokenReqMultiError []error
TokenReqMultiError is an error wrapping multiple validation errors returned by TokenReq.ValidateAll() if the designated constraints aren't met.
func (TokenReqMultiError) AllErrors ¶
func (m TokenReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TokenReqMultiError) Error ¶
func (m TokenReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TokenReqValidationError ¶
type TokenReqValidationError struct {
// contains filtered or unexported fields
}
TokenReqValidationError is the validation error returned by TokenReq.Validate if the designated constraints aren't met.
func (TokenReqValidationError) Cause ¶
func (e TokenReqValidationError) Cause() error
Cause function returns cause value.
func (TokenReqValidationError) Error ¶
func (e TokenReqValidationError) Error() string
Error satisfies the builtin error interface
func (TokenReqValidationError) ErrorName ¶
func (e TokenReqValidationError) ErrorName() string
ErrorName returns error name.
func (TokenReqValidationError) Field ¶
func (e TokenReqValidationError) Field() string
Field function returns field value.
func (TokenReqValidationError) Key ¶
func (e TokenReqValidationError) Key() bool
Key function returns key value.
func (TokenReqValidationError) Reason ¶
func (e TokenReqValidationError) Reason() string
Reason function returns reason value.
type TokenResp ¶
type TokenResp struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` ExpiresIn int64 `protobuf:"varint,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` Scope string `protobuf:"bytes,4,opt,name=scope,proto3" json:"scope,omitempty"` TokenType string `protobuf:"bytes,5,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` // contains filtered or unexported fields }
func (*TokenResp) Descriptor
deprecated
func (*TokenResp) GetAccessToken ¶
func (*TokenResp) GetExpiresIn ¶
func (*TokenResp) GetRefreshToken ¶
func (*TokenResp) GetTokenType ¶
func (*TokenResp) ProtoMessage ¶
func (*TokenResp) ProtoMessage()
func (*TokenResp) ProtoReflect ¶
func (x *TokenResp) ProtoReflect() protoreflect.Message
func (*TokenResp) Validate ¶
Validate checks the field values on TokenResp with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TokenResp) ValidateAll ¶
ValidateAll checks the field values on TokenResp with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TokenRespMultiError, or nil if none found.
type TokenRespMultiError ¶
type TokenRespMultiError []error
TokenRespMultiError is an error wrapping multiple validation errors returned by TokenResp.ValidateAll() if the designated constraints aren't met.
func (TokenRespMultiError) AllErrors ¶
func (m TokenRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TokenRespMultiError) Error ¶
func (m TokenRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TokenRespValidationError ¶
type TokenRespValidationError struct {
// contains filtered or unexported fields
}
TokenRespValidationError is the validation error returned by TokenResp.Validate if the designated constraints aren't met.
func (TokenRespValidationError) Cause ¶
func (e TokenRespValidationError) Cause() error
Cause function returns cause value.
func (TokenRespValidationError) Error ¶
func (e TokenRespValidationError) Error() string
Error satisfies the builtin error interface
func (TokenRespValidationError) ErrorName ¶
func (e TokenRespValidationError) ErrorName() string
ErrorName returns error name.
func (TokenRespValidationError) Field ¶
func (e TokenRespValidationError) Field() string
Field function returns field value.
func (TokenRespValidationError) Key ¶
func (e TokenRespValidationError) Key() bool
Key function returns key value.
func (TokenRespValidationError) Reason ¶
func (e TokenRespValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) GetCaptcha ¶
func (UnimplementedAuthServer) GetCaptcha(context.Context, *GetCaptchaReq) (*GetCaptchaResp, error)
func (UnimplementedAuthServer) VerifyCaptcha ¶
func (UnimplementedAuthServer) VerifyCaptcha(context.Context, *VerifyCaptchaReq) (*VerifyCaptchaResp, error)
type UnsafeAuthServer ¶
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.
type VerifyCaptchaReq ¶
type VerifyCaptchaReq struct { CaptchaId string `protobuf:"bytes,1,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"` CaptchaCode string `protobuf:"bytes,2,opt,name=captcha_code,json=captchaCode,proto3" json:"captcha_code,omitempty"` // contains filtered or unexported fields }
func (*VerifyCaptchaReq) Descriptor
deprecated
func (*VerifyCaptchaReq) Descriptor() ([]byte, []int)
Deprecated: Use VerifyCaptchaReq.ProtoReflect.Descriptor instead.
func (*VerifyCaptchaReq) GetCaptchaCode ¶
func (x *VerifyCaptchaReq) GetCaptchaCode() string
func (*VerifyCaptchaReq) GetCaptchaId ¶
func (x *VerifyCaptchaReq) GetCaptchaId() string
func (*VerifyCaptchaReq) ProtoMessage ¶
func (*VerifyCaptchaReq) ProtoMessage()
func (*VerifyCaptchaReq) ProtoReflect ¶
func (x *VerifyCaptchaReq) ProtoReflect() protoreflect.Message
func (*VerifyCaptchaReq) Reset ¶
func (x *VerifyCaptchaReq) Reset()
func (*VerifyCaptchaReq) String ¶
func (x *VerifyCaptchaReq) String() string
func (*VerifyCaptchaReq) Validate ¶
func (m *VerifyCaptchaReq) Validate() error
Validate checks the field values on VerifyCaptchaReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*VerifyCaptchaReq) ValidateAll ¶
func (m *VerifyCaptchaReq) ValidateAll() error
ValidateAll checks the field values on VerifyCaptchaReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerifyCaptchaReqMultiError, or nil if none found.
type VerifyCaptchaReqMultiError ¶
type VerifyCaptchaReqMultiError []error
VerifyCaptchaReqMultiError is an error wrapping multiple validation errors returned by VerifyCaptchaReq.ValidateAll() if the designated constraints aren't met.
func (VerifyCaptchaReqMultiError) AllErrors ¶
func (m VerifyCaptchaReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyCaptchaReqMultiError) Error ¶
func (m VerifyCaptchaReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyCaptchaReqValidationError ¶
type VerifyCaptchaReqValidationError struct {
// contains filtered or unexported fields
}
VerifyCaptchaReqValidationError is the validation error returned by VerifyCaptchaReq.Validate if the designated constraints aren't met.
func (VerifyCaptchaReqValidationError) Cause ¶
func (e VerifyCaptchaReqValidationError) Cause() error
Cause function returns cause value.
func (VerifyCaptchaReqValidationError) Error ¶
func (e VerifyCaptchaReqValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyCaptchaReqValidationError) ErrorName ¶
func (e VerifyCaptchaReqValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyCaptchaReqValidationError) Field ¶
func (e VerifyCaptchaReqValidationError) Field() string
Field function returns field value.
func (VerifyCaptchaReqValidationError) Key ¶
func (e VerifyCaptchaReqValidationError) Key() bool
Key function returns key value.
func (VerifyCaptchaReqValidationError) Reason ¶
func (e VerifyCaptchaReqValidationError) Reason() string
Reason function returns reason value.
type VerifyCaptchaResp ¶
type VerifyCaptchaResp struct {
// contains filtered or unexported fields
}
func (*VerifyCaptchaResp) Descriptor
deprecated
func (*VerifyCaptchaResp) Descriptor() ([]byte, []int)
Deprecated: Use VerifyCaptchaResp.ProtoReflect.Descriptor instead.
func (*VerifyCaptchaResp) ProtoMessage ¶
func (*VerifyCaptchaResp) ProtoMessage()
func (*VerifyCaptchaResp) ProtoReflect ¶
func (x *VerifyCaptchaResp) ProtoReflect() protoreflect.Message
func (*VerifyCaptchaResp) Reset ¶
func (x *VerifyCaptchaResp) Reset()
func (*VerifyCaptchaResp) String ¶
func (x *VerifyCaptchaResp) String() string
func (*VerifyCaptchaResp) Validate ¶
func (m *VerifyCaptchaResp) Validate() error
Validate checks the field values on VerifyCaptchaResp with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*VerifyCaptchaResp) ValidateAll ¶
func (m *VerifyCaptchaResp) ValidateAll() error
ValidateAll checks the field values on VerifyCaptchaResp with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerifyCaptchaRespMultiError, or nil if none found.
type VerifyCaptchaRespMultiError ¶
type VerifyCaptchaRespMultiError []error
VerifyCaptchaRespMultiError is an error wrapping multiple validation errors returned by VerifyCaptchaResp.ValidateAll() if the designated constraints aren't met.
func (VerifyCaptchaRespMultiError) AllErrors ¶
func (m VerifyCaptchaRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyCaptchaRespMultiError) Error ¶
func (m VerifyCaptchaRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyCaptchaRespValidationError ¶
type VerifyCaptchaRespValidationError struct {
// contains filtered or unexported fields
}
VerifyCaptchaRespValidationError is the validation error returned by VerifyCaptchaResp.Validate if the designated constraints aren't met.
func (VerifyCaptchaRespValidationError) Cause ¶
func (e VerifyCaptchaRespValidationError) Cause() error
Cause function returns cause value.
func (VerifyCaptchaRespValidationError) Error ¶
func (e VerifyCaptchaRespValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyCaptchaRespValidationError) ErrorName ¶
func (e VerifyCaptchaRespValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyCaptchaRespValidationError) Field ¶
func (e VerifyCaptchaRespValidationError) Field() string
Field function returns field value.
func (VerifyCaptchaRespValidationError) Key ¶
func (e VerifyCaptchaRespValidationError) Key() bool
Key function returns key value.
func (VerifyCaptchaRespValidationError) Reason ¶
func (e VerifyCaptchaRespValidationError) Reason() string
Reason function returns reason value.
type VerifyReq ¶
type VerifyReq struct {
// contains filtered or unexported fields
}
Token : Bearer access_token
func (*VerifyReq) Descriptor
deprecated
func (*VerifyReq) ProtoMessage ¶
func (*VerifyReq) ProtoMessage()
func (*VerifyReq) ProtoReflect ¶
func (x *VerifyReq) ProtoReflect() protoreflect.Message
func (*VerifyReq) Validate ¶
Validate checks the field values on VerifyReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*VerifyReq) ValidateAll ¶
ValidateAll checks the field values on VerifyReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerifyReqMultiError, or nil if none found.
type VerifyReqMultiError ¶
type VerifyReqMultiError []error
VerifyReqMultiError is an error wrapping multiple validation errors returned by VerifyReq.ValidateAll() if the designated constraints aren't met.
func (VerifyReqMultiError) AllErrors ¶
func (m VerifyReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyReqMultiError) Error ¶
func (m VerifyReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyReqValidationError ¶
type VerifyReqValidationError struct {
// contains filtered or unexported fields
}
VerifyReqValidationError is the validation error returned by VerifyReq.Validate if the designated constraints aren't met.
func (VerifyReqValidationError) Cause ¶
func (e VerifyReqValidationError) Cause() error
Cause function returns cause value.
func (VerifyReqValidationError) Error ¶
func (e VerifyReqValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyReqValidationError) ErrorName ¶
func (e VerifyReqValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyReqValidationError) Field ¶
func (e VerifyReqValidationError) Field() string
Field function returns field value.
func (VerifyReqValidationError) Key ¶
func (e VerifyReqValidationError) Key() bool
Key function returns key value.
func (VerifyReqValidationError) Reason ¶
func (e VerifyReqValidationError) Reason() string
Reason function returns reason value.
type VerifyResp ¶
type VerifyResp struct { ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` ExpiresIn int64 `protobuf:"varint,3,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` Scope string `protobuf:"bytes,4,opt,name=scope,proto3" json:"scope,omitempty"` UserId string `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*VerifyResp) Descriptor
deprecated
func (*VerifyResp) Descriptor() ([]byte, []int)
Deprecated: Use VerifyResp.ProtoReflect.Descriptor instead.
func (*VerifyResp) GetClientId ¶
func (x *VerifyResp) GetClientId() string
func (*VerifyResp) GetDomain ¶
func (x *VerifyResp) GetDomain() string
func (*VerifyResp) GetExpiresIn ¶
func (x *VerifyResp) GetExpiresIn() int64
func (*VerifyResp) GetScope ¶
func (x *VerifyResp) GetScope() string
func (*VerifyResp) GetUserId ¶
func (x *VerifyResp) GetUserId() string
func (*VerifyResp) ProtoMessage ¶
func (*VerifyResp) ProtoMessage()
func (*VerifyResp) ProtoReflect ¶
func (x *VerifyResp) ProtoReflect() protoreflect.Message
func (*VerifyResp) Reset ¶
func (x *VerifyResp) Reset()
func (*VerifyResp) String ¶
func (x *VerifyResp) String() string
func (*VerifyResp) Validate ¶
func (m *VerifyResp) Validate() error
Validate checks the field values on VerifyResp with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*VerifyResp) ValidateAll ¶
func (m *VerifyResp) ValidateAll() error
ValidateAll checks the field values on VerifyResp with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerifyRespMultiError, or nil if none found.
type VerifyRespMultiError ¶
type VerifyRespMultiError []error
VerifyRespMultiError is an error wrapping multiple validation errors returned by VerifyResp.ValidateAll() if the designated constraints aren't met.
func (VerifyRespMultiError) AllErrors ¶
func (m VerifyRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyRespMultiError) Error ¶
func (m VerifyRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyRespValidationError ¶
type VerifyRespValidationError struct {
// contains filtered or unexported fields
}
VerifyRespValidationError is the validation error returned by VerifyResp.Validate if the designated constraints aren't met.
func (VerifyRespValidationError) Cause ¶
func (e VerifyRespValidationError) Cause() error
Cause function returns cause value.
func (VerifyRespValidationError) Error ¶
func (e VerifyRespValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyRespValidationError) ErrorName ¶
func (e VerifyRespValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyRespValidationError) Field ¶
func (e VerifyRespValidationError) Field() string
Field function returns field value.
func (VerifyRespValidationError) Key ¶
func (e VerifyRespValidationError) Key() bool
Key function returns key value.
func (VerifyRespValidationError) Reason ¶
func (e VerifyRespValidationError) Reason() string
Reason function returns reason value.