v1

package
v0.0.0-...-9bd63dd Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const OperationAuthGetCaptcha = "/api.auth.service.v1.Auth/GetCaptcha"
View Source
const OperationAuthVerifyCaptcha = "/api.auth.service.v1.Auth/VerifyCaptcha"

Variables

View Source
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)

View Source
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

Cause function returns cause value.

func (AuthorizeReqValidationError) Error

Error satisfies the builtin error interface

func (AuthorizeReqValidationError) ErrorName

func (e AuthorizeReqValidationError) ErrorName() string

ErrorName returns error name.

func (AuthorizeReqValidationError) Field

Field function returns field value.

func (AuthorizeReqValidationError) Key

Key function returns key value.

func (AuthorizeReqValidationError) Reason

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

Cause function returns cause value.

func (AuthorizeRespValidationError) Error

Error satisfies the builtin error interface

func (AuthorizeRespValidationError) ErrorName

func (e AuthorizeRespValidationError) ErrorName() string

ErrorName returns error name.

func (AuthorizeRespValidationError) Field

Field function returns field value.

func (AuthorizeRespValidationError) Key

Key function returns key value.

func (AuthorizeRespValidationError) Reason

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

Cause function returns cause value.

func (GetCaptchaReqValidationError) Error

Error satisfies the builtin error interface

func (GetCaptchaReqValidationError) ErrorName

func (e GetCaptchaReqValidationError) ErrorName() string

ErrorName returns error name.

func (GetCaptchaReqValidationError) Field

Field function returns field value.

func (GetCaptchaReqValidationError) Key

Key function returns key value.

func (GetCaptchaReqValidationError) Reason

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

Cause function returns cause value.

func (GetCaptchaRespValidationError) Error

Error satisfies the builtin error interface

func (GetCaptchaRespValidationError) ErrorName

func (e GetCaptchaRespValidationError) ErrorName() string

ErrorName returns error name.

func (GetCaptchaRespValidationError) Field

Field function returns field value.

func (GetCaptchaRespValidationError) Key

Key function returns key value.

func (GetCaptchaRespValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use LogoutReq.ProtoReflect.Descriptor instead.

func (*LogoutReq) GetRedirectUri

func (x *LogoutReq) GetRedirectUri() string

func (*LogoutReq) ProtoMessage

func (*LogoutReq) ProtoMessage()

func (*LogoutReq) ProtoReflect

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

func (*LogoutReq) Reset

func (x *LogoutReq) Reset()

func (*LogoutReq) String

func (x *LogoutReq) String() string

func (*LogoutReq) Validate

func (m *LogoutReq) Validate() error

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

func (m *LogoutReq) ValidateAll() error

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

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

Error satisfies the builtin error interface

func (LogoutRespValidationError) ErrorName

func (e LogoutRespValidationError) ErrorName() string

ErrorName returns error name.

func (LogoutRespValidationError) Field

Field function returns field value.

func (LogoutRespValidationError) Key

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

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

Cause function returns cause value.

func (RefreshTokenReqValidationError) Error

Error satisfies the builtin error interface

func (RefreshTokenReqValidationError) ErrorName

func (e RefreshTokenReqValidationError) ErrorName() string

ErrorName returns error name.

func (RefreshTokenReqValidationError) Field

Field function returns field value.

func (RefreshTokenReqValidationError) Key

Key function returns key value.

func (RefreshTokenReqValidationError) Reason

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

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

Cause function returns cause value.

func (RefreshTokenRespValidationError) Error

Error satisfies the builtin error interface

func (RefreshTokenRespValidationError) ErrorName

ErrorName returns error name.

func (RefreshTokenRespValidationError) Field

Field function returns field value.

func (RefreshTokenRespValidationError) Key

Key function returns key value.

func (RefreshTokenRespValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use TokenReq.ProtoReflect.Descriptor instead.

func (*TokenReq) GetClientId

func (x *TokenReq) GetClientId() string

func (*TokenReq) GetCode

func (x *TokenReq) GetCode() string

func (*TokenReq) GetGrantType

func (x *TokenReq) GetGrantType() string

func (*TokenReq) ProtoMessage

func (*TokenReq) ProtoMessage()

func (*TokenReq) ProtoReflect

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

func (*TokenReq) Reset

func (x *TokenReq) Reset()

func (*TokenReq) String

func (x *TokenReq) String() string

func (*TokenReq) Validate

func (m *TokenReq) Validate() error

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

func (m *TokenReq) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use TokenResp.ProtoReflect.Descriptor instead.

func (*TokenResp) GetAccessToken

func (x *TokenResp) GetAccessToken() string

func (*TokenResp) GetExpiresIn

func (x *TokenResp) GetExpiresIn() int64

func (*TokenResp) GetRefreshToken

func (x *TokenResp) GetRefreshToken() string

func (*TokenResp) GetScope

func (x *TokenResp) GetScope() string

func (*TokenResp) GetTokenType

func (x *TokenResp) GetTokenType() string

func (*TokenResp) ProtoMessage

func (*TokenResp) ProtoMessage()

func (*TokenResp) ProtoReflect

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

func (*TokenResp) Reset

func (x *TokenResp) Reset()

func (*TokenResp) String

func (x *TokenResp) String() string

func (*TokenResp) Validate

func (m *TokenResp) Validate() error

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

func (m *TokenResp) ValidateAll() error

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

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) VerifyCaptcha

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

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

Cause function returns cause value.

func (VerifyCaptchaReqValidationError) Error

Error satisfies the builtin error interface

func (VerifyCaptchaReqValidationError) ErrorName

ErrorName returns error name.

func (VerifyCaptchaReqValidationError) Field

Field function returns field value.

func (VerifyCaptchaReqValidationError) Key

Key function returns key value.

func (VerifyCaptchaReqValidationError) Reason

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

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

Cause function returns cause value.

func (VerifyCaptchaRespValidationError) Error

Error satisfies the builtin error interface

func (VerifyCaptchaRespValidationError) ErrorName

ErrorName returns error name.

func (VerifyCaptchaRespValidationError) Field

Field function returns field value.

func (VerifyCaptchaRespValidationError) Key

Key function returns key value.

func (VerifyCaptchaRespValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use VerifyReq.ProtoReflect.Descriptor instead.

func (*VerifyReq) ProtoMessage

func (*VerifyReq) ProtoMessage()

func (*VerifyReq) ProtoReflect

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

func (*VerifyReq) Reset

func (x *VerifyReq) Reset()

func (*VerifyReq) String

func (x *VerifyReq) String() string

func (*VerifyReq) Validate

func (m *VerifyReq) Validate() error

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

func (m *VerifyReq) ValidateAll() error

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

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

Error satisfies the builtin error interface

func (VerifyRespValidationError) ErrorName

func (e VerifyRespValidationError) ErrorName() string

ErrorName returns error name.

func (VerifyRespValidationError) Field

Field function returns field value.

func (VerifyRespValidationError) Key

Key function returns key value.

func (VerifyRespValidationError) Reason

func (e VerifyRespValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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