Documentation ¶
Index ¶
- Variables
- func NewAuthEndpoints() []*api.Endpoint
- func RegisterAuthHandler(s server.Server, hdlr AuthHandler, opts ...server.HandlerOption) error
- type AuthHandler
- type AuthService
- type DelTokenByUserRequest
- func (*DelTokenByUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DelTokenByUserRequest) GetUserId() int64
- func (*DelTokenByUserRequest) ProtoMessage()
- func (x *DelTokenByUserRequest) ProtoReflect() protoreflect.Message
- func (x *DelTokenByUserRequest) Reset()
- func (x *DelTokenByUserRequest) String() string
- func (m *DelTokenByUserRequest) Validate() error
- func (m *DelTokenByUserRequest) ValidateAll() error
- type DelTokenByUserRequestMultiError
- type DelTokenByUserRequestValidationError
- func (e DelTokenByUserRequestValidationError) Cause() error
- func (e DelTokenByUserRequestValidationError) Error() string
- func (e DelTokenByUserRequestValidationError) ErrorName() string
- func (e DelTokenByUserRequestValidationError) Field() string
- func (e DelTokenByUserRequestValidationError) Key() bool
- func (e DelTokenByUserRequestValidationError) Reason() string
- type DelTokenRequest
- func (*DelTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DelTokenRequest) GetPlatformApp() string
- func (x *DelTokenRequest) GetToken() string
- func (*DelTokenRequest) ProtoMessage()
- func (x *DelTokenRequest) ProtoReflect() protoreflect.Message
- func (x *DelTokenRequest) Reset()
- func (x *DelTokenRequest) String() string
- func (m *DelTokenRequest) Validate() error
- func (m *DelTokenRequest) ValidateAll() error
- type DelTokenRequestMultiError
- type DelTokenRequestValidationError
- func (e DelTokenRequestValidationError) Cause() error
- func (e DelTokenRequestValidationError) Error() string
- func (e DelTokenRequestValidationError) ErrorName() string
- func (e DelTokenRequestValidationError) Field() string
- func (e DelTokenRequestValidationError) Key() bool
- func (e DelTokenRequestValidationError) Reason() string
- type GetTokenRequest
- func (*GetTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTokenRequest) GetDeviceName() string
- func (x *GetTokenRequest) GetLanguage() string
- func (x *GetTokenRequest) GetLoginCountry() string
- func (x *GetTokenRequest) GetLoginFingerprint() string
- func (x *GetTokenRequest) GetLoginIp() string
- func (x *GetTokenRequest) GetLoginType() string
- func (x *GetTokenRequest) GetPlatform() string
- func (x *GetTokenRequest) GetPlatformApp() string
- func (x *GetTokenRequest) GetRole() string
- func (x *GetTokenRequest) GetUserId() int64
- func (x *GetTokenRequest) GetVersion() string
- func (*GetTokenRequest) ProtoMessage()
- func (x *GetTokenRequest) ProtoReflect() protoreflect.Message
- func (x *GetTokenRequest) Reset()
- func (x *GetTokenRequest) String() string
- func (m *GetTokenRequest) Validate() error
- func (m *GetTokenRequest) ValidateAll() error
- type GetTokenRequestMultiError
- type GetTokenRequestValidationError
- func (e GetTokenRequestValidationError) Cause() error
- func (e GetTokenRequestValidationError) Error() string
- func (e GetTokenRequestValidationError) ErrorName() string
- func (e GetTokenRequestValidationError) Field() string
- func (e GetTokenRequestValidationError) Key() bool
- func (e GetTokenRequestValidationError) Reason() string
- type GetTokenResponse
- func (*GetTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTokenResponse) GetToken() string
- func (*GetTokenResponse) ProtoMessage()
- func (x *GetTokenResponse) ProtoReflect() protoreflect.Message
- func (x *GetTokenResponse) Reset()
- func (x *GetTokenResponse) String() string
- func (m *GetTokenResponse) Validate() error
- func (m *GetTokenResponse) ValidateAll() error
- type GetTokenResponseMultiError
- type GetTokenResponseValidationError
- func (e GetTokenResponseValidationError) Cause() error
- func (e GetTokenResponseValidationError) Error() string
- func (e GetTokenResponseValidationError) ErrorName() string
- func (e GetTokenResponseValidationError) Field() string
- func (e GetTokenResponseValidationError) Key() bool
- func (e GetTokenResponseValidationError) Reason() string
- type RefreshTokenRequest
- func (*RefreshTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenRequest) GetAction() int32
- func (x *RefreshTokenRequest) GetDeviceFingerprint() string
- func (x *RefreshTokenRequest) GetDeviceName() string
- func (x *RefreshTokenRequest) GetIp() string
- func (x *RefreshTokenRequest) GetLanguage() string
- func (x *RefreshTokenRequest) GetPlatform() string
- func (x *RefreshTokenRequest) GetPlatformApp() string
- func (x *RefreshTokenRequest) GetToken() string
- func (x *RefreshTokenRequest) GetVersion() string
- func (*RefreshTokenRequest) ProtoMessage()
- func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenRequest) Reset()
- func (x *RefreshTokenRequest) String() string
- func (m *RefreshTokenRequest) Validate() error
- func (m *RefreshTokenRequest) ValidateAll() error
- type RefreshTokenRequestMultiError
- type RefreshTokenRequestValidationError
- func (e RefreshTokenRequestValidationError) Cause() error
- func (e RefreshTokenRequestValidationError) Error() string
- func (e RefreshTokenRequestValidationError) ErrorName() string
- func (e RefreshTokenRequestValidationError) Field() string
- func (e RefreshTokenRequestValidationError) Key() bool
- func (e RefreshTokenRequestValidationError) Reason() string
- type VerifyTokenRequest
- func (*VerifyTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyTokenRequest) GetPlatformApp() string
- func (x *VerifyTokenRequest) GetToken() string
- func (*VerifyTokenRequest) ProtoMessage()
- func (x *VerifyTokenRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyTokenRequest) Reset()
- func (x *VerifyTokenRequest) String() string
- func (m *VerifyTokenRequest) Validate() error
- func (m *VerifyTokenRequest) ValidateAll() error
- type VerifyTokenRequestMultiError
- type VerifyTokenRequestValidationError
- func (e VerifyTokenRequestValidationError) Cause() error
- func (e VerifyTokenRequestValidationError) Error() string
- func (e VerifyTokenRequestValidationError) ErrorName() string
- func (e VerifyTokenRequestValidationError) Field() string
- func (e VerifyTokenRequestValidationError) Key() bool
- func (e VerifyTokenRequestValidationError) Reason() string
- type VerifyTokenResponse
- func (*VerifyTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyTokenResponse) GetDeviceFingerprint() string
- func (x *VerifyTokenResponse) GetDeviceName() string
- func (x *VerifyTokenResponse) GetLanguage() string
- func (x *VerifyTokenResponse) GetLoginCountry() string
- func (x *VerifyTokenResponse) GetLoginIp() string
- func (x *VerifyTokenResponse) GetLoginType() string
- func (x *VerifyTokenResponse) GetPlatform() string
- func (x *VerifyTokenResponse) GetPlatformApp() string
- func (x *VerifyTokenResponse) GetRole() string
- func (x *VerifyTokenResponse) GetUserId() int64
- func (x *VerifyTokenResponse) GetVersion() string
- func (*VerifyTokenResponse) ProtoMessage()
- func (x *VerifyTokenResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyTokenResponse) Reset()
- func (x *VerifyTokenResponse) String() string
- func (m *VerifyTokenResponse) Validate() error
- func (m *VerifyTokenResponse) ValidateAll() error
- type VerifyTokenResponseMultiError
- type VerifyTokenResponseValidationError
- func (e VerifyTokenResponseValidationError) Cause() error
- func (e VerifyTokenResponseValidationError) Error() string
- func (e VerifyTokenResponseValidationError) ErrorName() string
- func (e VerifyTokenResponseValidationError) Field() string
- func (e VerifyTokenResponseValidationError) Key() bool
- func (e VerifyTokenResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_proto_auth_auth_proto protoreflect.FileDescriptor
Functions ¶
func NewAuthEndpoints ¶
func RegisterAuthHandler ¶
func RegisterAuthHandler(s server.Server, hdlr AuthHandler, opts ...server.HandlerOption) error
Types ¶
type AuthHandler ¶
type AuthHandler interface { // 获取token GetToken(context.Context, *GetTokenRequest, *GetTokenResponse) error // 刷新token RefreshToken(context.Context, *RefreshTokenRequest, *emptypb.Empty) error // 验证token VerifyToken(context.Context, *VerifyTokenRequest, *VerifyTokenResponse) error // 删除token DelToken(context.Context, *DelTokenRequest, *emptypb.Empty) error // 删除用户下的所有token DelTokenByUser(context.Context, *DelTokenByUserRequest, *emptypb.Empty) error // 禁用用户下的所有token BanTokenByUser(context.Context, *DelTokenByUserRequest, *emptypb.Empty) error }
type AuthService ¶
type AuthService interface { // 获取token GetToken(ctx context.Context, in *GetTokenRequest, opts ...client.CallOption) (*GetTokenResponse, error) // 刷新token RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...client.CallOption) (*emptypb.Empty, error) // 验证token VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...client.CallOption) (*VerifyTokenResponse, error) // 删除token DelToken(ctx context.Context, in *DelTokenRequest, opts ...client.CallOption) (*emptypb.Empty, error) // 删除用户下的所有token DelTokenByUser(ctx context.Context, in *DelTokenByUserRequest, opts ...client.CallOption) (*emptypb.Empty, error) // 禁用用户下的所有token BanTokenByUser(ctx context.Context, in *DelTokenByUserRequest, opts ...client.CallOption) (*emptypb.Empty, error) }
func NewAuthService ¶
func NewAuthService(name string, c client.Client) AuthService
type DelTokenByUserRequest ¶
type DelTokenByUserRequest struct { UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"` // 用户id // contains filtered or unexported fields }
func (*DelTokenByUserRequest) Descriptor
deprecated
func (*DelTokenByUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DelTokenByUserRequest.ProtoReflect.Descriptor instead.
func (*DelTokenByUserRequest) GetUserId ¶
func (x *DelTokenByUserRequest) GetUserId() int64
func (*DelTokenByUserRequest) ProtoMessage ¶
func (*DelTokenByUserRequest) ProtoMessage()
func (*DelTokenByUserRequest) ProtoReflect ¶
func (x *DelTokenByUserRequest) ProtoReflect() protoreflect.Message
func (*DelTokenByUserRequest) Reset ¶
func (x *DelTokenByUserRequest) Reset()
func (*DelTokenByUserRequest) String ¶
func (x *DelTokenByUserRequest) String() string
func (*DelTokenByUserRequest) Validate ¶
func (m *DelTokenByUserRequest) Validate() error
Validate checks the field values on DelTokenByUserRequest 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 (*DelTokenByUserRequest) ValidateAll ¶
func (m *DelTokenByUserRequest) ValidateAll() error
ValidateAll checks the field values on DelTokenByUserRequest 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 DelTokenByUserRequestMultiError, or nil if none found.
type DelTokenByUserRequestMultiError ¶
type DelTokenByUserRequestMultiError []error
DelTokenByUserRequestMultiError is an error wrapping multiple validation errors returned by DelTokenByUserRequest.ValidateAll() if the designated constraints aren't met.
func (DelTokenByUserRequestMultiError) AllErrors ¶
func (m DelTokenByUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DelTokenByUserRequestMultiError) Error ¶
func (m DelTokenByUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DelTokenByUserRequestValidationError ¶
type DelTokenByUserRequestValidationError struct {
// contains filtered or unexported fields
}
DelTokenByUserRequestValidationError is the validation error returned by DelTokenByUserRequest.Validate if the designated constraints aren't met.
func (DelTokenByUserRequestValidationError) Cause ¶
func (e DelTokenByUserRequestValidationError) Cause() error
Cause function returns cause value.
func (DelTokenByUserRequestValidationError) Error ¶
func (e DelTokenByUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DelTokenByUserRequestValidationError) ErrorName ¶
func (e DelTokenByUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DelTokenByUserRequestValidationError) Field ¶
func (e DelTokenByUserRequestValidationError) Field() string
Field function returns field value.
func (DelTokenByUserRequestValidationError) Key ¶
func (e DelTokenByUserRequestValidationError) Key() bool
Key function returns key value.
func (DelTokenByUserRequestValidationError) Reason ¶
func (e DelTokenByUserRequestValidationError) Reason() string
Reason function returns reason value.
type DelTokenRequest ¶
type DelTokenRequest struct { Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token"` // token PlatformApp string `protobuf:"bytes,2,opt,name=PlatformApp,proto3" json:"PlatformApp"` // 51live直播平台platform ,B端:business) // contains filtered or unexported fields }
[请求] 删除token
func (*DelTokenRequest) Descriptor
deprecated
func (*DelTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use DelTokenRequest.ProtoReflect.Descriptor instead.
func (*DelTokenRequest) GetPlatformApp ¶
func (x *DelTokenRequest) GetPlatformApp() string
func (*DelTokenRequest) GetToken ¶
func (x *DelTokenRequest) GetToken() string
func (*DelTokenRequest) ProtoMessage ¶
func (*DelTokenRequest) ProtoMessage()
func (*DelTokenRequest) ProtoReflect ¶
func (x *DelTokenRequest) ProtoReflect() protoreflect.Message
func (*DelTokenRequest) Reset ¶
func (x *DelTokenRequest) Reset()
func (*DelTokenRequest) String ¶
func (x *DelTokenRequest) String() string
func (*DelTokenRequest) Validate ¶
func (m *DelTokenRequest) Validate() error
Validate checks the field values on DelTokenRequest 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 (*DelTokenRequest) ValidateAll ¶
func (m *DelTokenRequest) ValidateAll() error
ValidateAll checks the field values on DelTokenRequest 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 DelTokenRequestMultiError, or nil if none found.
type DelTokenRequestMultiError ¶
type DelTokenRequestMultiError []error
DelTokenRequestMultiError is an error wrapping multiple validation errors returned by DelTokenRequest.ValidateAll() if the designated constraints aren't met.
func (DelTokenRequestMultiError) AllErrors ¶
func (m DelTokenRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DelTokenRequestMultiError) Error ¶
func (m DelTokenRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DelTokenRequestValidationError ¶
type DelTokenRequestValidationError struct {
// contains filtered or unexported fields
}
DelTokenRequestValidationError is the validation error returned by DelTokenRequest.Validate if the designated constraints aren't met.
func (DelTokenRequestValidationError) Cause ¶
func (e DelTokenRequestValidationError) Cause() error
Cause function returns cause value.
func (DelTokenRequestValidationError) Error ¶
func (e DelTokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DelTokenRequestValidationError) ErrorName ¶
func (e DelTokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DelTokenRequestValidationError) Field ¶
func (e DelTokenRequestValidationError) Field() string
Field function returns field value.
func (DelTokenRequestValidationError) Key ¶
func (e DelTokenRequestValidationError) Key() bool
Key function returns key value.
func (DelTokenRequestValidationError) Reason ¶
func (e DelTokenRequestValidationError) Reason() string
Reason function returns reason value.
type GetTokenRequest ¶
type GetTokenRequest struct { UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"` // 用户ID Platform string `protobuf:"bytes,2,opt,name=Platform,proto3" json:"Platform"` // 平台 Language string `protobuf:"bytes,3,opt,name=Language,proto3" json:"Language"` // 设备语言 Version string `protobuf:"bytes,4,opt,name=Version,proto3" json:"Version"` // 设备版本 LoginFingerprint string `protobuf:"bytes,5,opt,name=LoginFingerprint,proto3" json:"LoginFingerprint"` // 设备指纹 DeviceName string `protobuf:"bytes,6,opt,name=DeviceName,proto3" json:"DeviceName"` // 设备名称 PlatformApp string `protobuf:"bytes,7,opt,name=PlatformApp,proto3" json:"PlatformApp"` // 51live平台(51live直播:platform ,B端:business) Role string `protobuf:"bytes,8,opt,name=Role,proto3" json:"Role"` // user、guest 用户角色 LoginIp string `protobuf:"bytes,9,opt,name=LoginIp,proto3" json:"LoginIp"` // 当前登录者ip LoginCountry string `protobuf:"bytes,10,opt,name=LoginCountry,proto3" json:"LoginCountry"` // 当前登录者国家 LoginType string `protobuf:"bytes,11,opt,name=LoginType,proto3" json:"LoginType"` // 登录国家 // contains filtered or unexported fields }
[请求] 获取token
func (*GetTokenRequest) Descriptor
deprecated
func (*GetTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTokenRequest.ProtoReflect.Descriptor instead.
func (*GetTokenRequest) GetDeviceName ¶
func (x *GetTokenRequest) GetDeviceName() string
func (*GetTokenRequest) GetLanguage ¶
func (x *GetTokenRequest) GetLanguage() string
func (*GetTokenRequest) GetLoginCountry ¶
func (x *GetTokenRequest) GetLoginCountry() string
func (*GetTokenRequest) GetLoginFingerprint ¶
func (x *GetTokenRequest) GetLoginFingerprint() string
func (*GetTokenRequest) GetLoginIp ¶
func (x *GetTokenRequest) GetLoginIp() string
func (*GetTokenRequest) GetLoginType ¶
func (x *GetTokenRequest) GetLoginType() string
func (*GetTokenRequest) GetPlatform ¶
func (x *GetTokenRequest) GetPlatform() string
func (*GetTokenRequest) GetPlatformApp ¶
func (x *GetTokenRequest) GetPlatformApp() string
func (*GetTokenRequest) GetRole ¶
func (x *GetTokenRequest) GetRole() string
func (*GetTokenRequest) GetUserId ¶
func (x *GetTokenRequest) GetUserId() int64
func (*GetTokenRequest) GetVersion ¶
func (x *GetTokenRequest) GetVersion() string
func (*GetTokenRequest) ProtoMessage ¶
func (*GetTokenRequest) ProtoMessage()
func (*GetTokenRequest) ProtoReflect ¶
func (x *GetTokenRequest) ProtoReflect() protoreflect.Message
func (*GetTokenRequest) Reset ¶
func (x *GetTokenRequest) Reset()
func (*GetTokenRequest) String ¶
func (x *GetTokenRequest) String() string
func (*GetTokenRequest) Validate ¶
func (m *GetTokenRequest) Validate() error
Validate checks the field values on GetTokenRequest 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 (*GetTokenRequest) ValidateAll ¶
func (m *GetTokenRequest) ValidateAll() error
ValidateAll checks the field values on GetTokenRequest 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 GetTokenRequestMultiError, or nil if none found.
type GetTokenRequestMultiError ¶
type GetTokenRequestMultiError []error
GetTokenRequestMultiError is an error wrapping multiple validation errors returned by GetTokenRequest.ValidateAll() if the designated constraints aren't met.
func (GetTokenRequestMultiError) AllErrors ¶
func (m GetTokenRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTokenRequestMultiError) Error ¶
func (m GetTokenRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTokenRequestValidationError ¶
type GetTokenRequestValidationError struct {
// contains filtered or unexported fields
}
GetTokenRequestValidationError is the validation error returned by GetTokenRequest.Validate if the designated constraints aren't met.
func (GetTokenRequestValidationError) Cause ¶
func (e GetTokenRequestValidationError) Cause() error
Cause function returns cause value.
func (GetTokenRequestValidationError) Error ¶
func (e GetTokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetTokenRequestValidationError) ErrorName ¶
func (e GetTokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetTokenRequestValidationError) Field ¶
func (e GetTokenRequestValidationError) Field() string
Field function returns field value.
func (GetTokenRequestValidationError) Key ¶
func (e GetTokenRequestValidationError) Key() bool
Key function returns key value.
func (GetTokenRequestValidationError) Reason ¶
func (e GetTokenRequestValidationError) Reason() string
Reason function returns reason value.
type GetTokenResponse ¶
type GetTokenResponse struct { Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token"` // token // contains filtered or unexported fields }
[响应] 获取token
func (*GetTokenResponse) Descriptor
deprecated
func (*GetTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTokenResponse.ProtoReflect.Descriptor instead.
func (*GetTokenResponse) GetToken ¶
func (x *GetTokenResponse) GetToken() string
func (*GetTokenResponse) ProtoMessage ¶
func (*GetTokenResponse) ProtoMessage()
func (*GetTokenResponse) ProtoReflect ¶
func (x *GetTokenResponse) ProtoReflect() protoreflect.Message
func (*GetTokenResponse) Reset ¶
func (x *GetTokenResponse) Reset()
func (*GetTokenResponse) String ¶
func (x *GetTokenResponse) String() string
func (*GetTokenResponse) Validate ¶
func (m *GetTokenResponse) Validate() error
Validate checks the field values on GetTokenResponse 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 (*GetTokenResponse) ValidateAll ¶
func (m *GetTokenResponse) ValidateAll() error
ValidateAll checks the field values on GetTokenResponse 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 GetTokenResponseMultiError, or nil if none found.
type GetTokenResponseMultiError ¶
type GetTokenResponseMultiError []error
GetTokenResponseMultiError is an error wrapping multiple validation errors returned by GetTokenResponse.ValidateAll() if the designated constraints aren't met.
func (GetTokenResponseMultiError) AllErrors ¶
func (m GetTokenResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTokenResponseMultiError) Error ¶
func (m GetTokenResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTokenResponseValidationError ¶
type GetTokenResponseValidationError struct {
// contains filtered or unexported fields
}
GetTokenResponseValidationError is the validation error returned by GetTokenResponse.Validate if the designated constraints aren't met.
func (GetTokenResponseValidationError) Cause ¶
func (e GetTokenResponseValidationError) Cause() error
Cause function returns cause value.
func (GetTokenResponseValidationError) Error ¶
func (e GetTokenResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetTokenResponseValidationError) ErrorName ¶
func (e GetTokenResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetTokenResponseValidationError) Field ¶
func (e GetTokenResponseValidationError) Field() string
Field function returns field value.
func (GetTokenResponseValidationError) Key ¶
func (e GetTokenResponseValidationError) Key() bool
Key function returns key value.
func (GetTokenResponseValidationError) Reason ¶
func (e GetTokenResponseValidationError) Reason() string
Reason function returns reason value.
type RefreshTokenRequest ¶
type RefreshTokenRequest struct { Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token"` // token Platform string `protobuf:"bytes,2,opt,name=Platform,proto3" json:"Platform"` // 平台 Language string `protobuf:"bytes,3,opt,name=Language,proto3" json:"Language"` // 设备语言 Version string `protobuf:"bytes,4,opt,name=Version,proto3" json:"Version"` // 设备版本 DeviceFingerprint string `protobuf:"bytes,5,opt,name=DeviceFingerprint,proto3" json:"DeviceFingerprint"` // 设备指纹 DeviceName string `protobuf:"bytes,6,opt,name=DeviceName,proto3" json:"DeviceName"` // 设备名称 PlatformApp string `protobuf:"bytes,7,opt,name=PlatformApp,proto3" json:"PlatformApp"` Ip string `protobuf:"bytes,8,opt,name=Ip,proto3" json:"Ip"` // 启动时ip Action int32 `protobuf:"varint,9,opt,name=Action,proto3" json:"Action"` // 1 游客注册 2 打开app // contains filtered or unexported fields }
[请求] 刷新token
func (*RefreshTokenRequest) Descriptor
deprecated
func (*RefreshTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.
func (*RefreshTokenRequest) GetAction ¶
func (x *RefreshTokenRequest) GetAction() int32
func (*RefreshTokenRequest) GetDeviceFingerprint ¶
func (x *RefreshTokenRequest) GetDeviceFingerprint() string
func (*RefreshTokenRequest) GetDeviceName ¶
func (x *RefreshTokenRequest) GetDeviceName() string
func (*RefreshTokenRequest) GetIp ¶
func (x *RefreshTokenRequest) GetIp() string
func (*RefreshTokenRequest) GetLanguage ¶
func (x *RefreshTokenRequest) GetLanguage() string
func (*RefreshTokenRequest) GetPlatform ¶
func (x *RefreshTokenRequest) GetPlatform() string
func (*RefreshTokenRequest) GetPlatformApp ¶
func (x *RefreshTokenRequest) GetPlatformApp() string
func (*RefreshTokenRequest) GetToken ¶
func (x *RefreshTokenRequest) GetToken() string
func (*RefreshTokenRequest) GetVersion ¶
func (x *RefreshTokenRequest) GetVersion() string
func (*RefreshTokenRequest) ProtoMessage ¶
func (*RefreshTokenRequest) ProtoMessage()
func (*RefreshTokenRequest) ProtoReflect ¶
func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
func (*RefreshTokenRequest) Reset ¶
func (x *RefreshTokenRequest) Reset()
func (*RefreshTokenRequest) String ¶
func (x *RefreshTokenRequest) String() string
func (*RefreshTokenRequest) Validate ¶
func (m *RefreshTokenRequest) Validate() error
Validate checks the field values on RefreshTokenRequest 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 (*RefreshTokenRequest) ValidateAll ¶
func (m *RefreshTokenRequest) ValidateAll() error
ValidateAll checks the field values on RefreshTokenRequest 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 RefreshTokenRequestMultiError, or nil if none found.
type RefreshTokenRequestMultiError ¶
type RefreshTokenRequestMultiError []error
RefreshTokenRequestMultiError is an error wrapping multiple validation errors returned by RefreshTokenRequest.ValidateAll() if the designated constraints aren't met.
func (RefreshTokenRequestMultiError) AllErrors ¶
func (m RefreshTokenRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RefreshTokenRequestMultiError) Error ¶
func (m RefreshTokenRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RefreshTokenRequestValidationError ¶
type RefreshTokenRequestValidationError struct {
// contains filtered or unexported fields
}
RefreshTokenRequestValidationError is the validation error returned by RefreshTokenRequest.Validate if the designated constraints aren't met.
func (RefreshTokenRequestValidationError) Cause ¶
func (e RefreshTokenRequestValidationError) Cause() error
Cause function returns cause value.
func (RefreshTokenRequestValidationError) Error ¶
func (e RefreshTokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RefreshTokenRequestValidationError) ErrorName ¶
func (e RefreshTokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RefreshTokenRequestValidationError) Field ¶
func (e RefreshTokenRequestValidationError) Field() string
Field function returns field value.
func (RefreshTokenRequestValidationError) Key ¶
func (e RefreshTokenRequestValidationError) Key() bool
Key function returns key value.
func (RefreshTokenRequestValidationError) Reason ¶
func (e RefreshTokenRequestValidationError) Reason() string
Reason function returns reason value.
type VerifyTokenRequest ¶
type VerifyTokenRequest struct { Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token"` // token PlatformApp string `protobuf:"bytes,2,opt,name=PlatformApp,proto3" json:"PlatformApp"` // 51live直播平台platform ,B端:business // contains filtered or unexported fields }
[请求] 验证token
func (*VerifyTokenRequest) Descriptor
deprecated
func (*VerifyTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyTokenRequest.ProtoReflect.Descriptor instead.
func (*VerifyTokenRequest) GetPlatformApp ¶
func (x *VerifyTokenRequest) GetPlatformApp() string
func (*VerifyTokenRequest) GetToken ¶
func (x *VerifyTokenRequest) GetToken() string
func (*VerifyTokenRequest) ProtoMessage ¶
func (*VerifyTokenRequest) ProtoMessage()
func (*VerifyTokenRequest) ProtoReflect ¶
func (x *VerifyTokenRequest) ProtoReflect() protoreflect.Message
func (*VerifyTokenRequest) Reset ¶
func (x *VerifyTokenRequest) Reset()
func (*VerifyTokenRequest) String ¶
func (x *VerifyTokenRequest) String() string
func (*VerifyTokenRequest) Validate ¶
func (m *VerifyTokenRequest) Validate() error
Validate checks the field values on VerifyTokenRequest 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 (*VerifyTokenRequest) ValidateAll ¶
func (m *VerifyTokenRequest) ValidateAll() error
ValidateAll checks the field values on VerifyTokenRequest 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 VerifyTokenRequestMultiError, or nil if none found.
type VerifyTokenRequestMultiError ¶
type VerifyTokenRequestMultiError []error
VerifyTokenRequestMultiError is an error wrapping multiple validation errors returned by VerifyTokenRequest.ValidateAll() if the designated constraints aren't met.
func (VerifyTokenRequestMultiError) AllErrors ¶
func (m VerifyTokenRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyTokenRequestMultiError) Error ¶
func (m VerifyTokenRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyTokenRequestValidationError ¶
type VerifyTokenRequestValidationError struct {
// contains filtered or unexported fields
}
VerifyTokenRequestValidationError is the validation error returned by VerifyTokenRequest.Validate if the designated constraints aren't met.
func (VerifyTokenRequestValidationError) Cause ¶
func (e VerifyTokenRequestValidationError) Cause() error
Cause function returns cause value.
func (VerifyTokenRequestValidationError) Error ¶
func (e VerifyTokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyTokenRequestValidationError) ErrorName ¶
func (e VerifyTokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyTokenRequestValidationError) Field ¶
func (e VerifyTokenRequestValidationError) Field() string
Field function returns field value.
func (VerifyTokenRequestValidationError) Key ¶
func (e VerifyTokenRequestValidationError) Key() bool
Key function returns key value.
func (VerifyTokenRequestValidationError) Reason ¶
func (e VerifyTokenRequestValidationError) Reason() string
Reason function returns reason value.
type VerifyTokenResponse ¶
type VerifyTokenResponse struct { UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"` // 用户ID Platform string `protobuf:"bytes,2,opt,name=Platform,proto3" json:"Platform"` // 平台 Language string `protobuf:"bytes,3,opt,name=Language,proto3" json:"Language"` // 设备语言 Version string `protobuf:"bytes,4,opt,name=Version,proto3" json:"Version"` // 设备版本 DeviceFingerprint string `protobuf:"bytes,5,opt,name=DeviceFingerprint,proto3" json:"DeviceFingerprint"` // 设备指纹 DeviceName string `protobuf:"bytes,6,opt,name=DeviceName,proto3" json:"DeviceName"` // 设备名称 PlatformApp string `protobuf:"bytes,7,opt,name=PlatformApp,proto3" json:"PlatformApp"` // 51live直播平台platform ,B端:business) Role string `protobuf:"bytes,8,opt,name=Role,proto3" json:"Role"` // 角色 user、guest LoginIp string `protobuf:"bytes,9,opt,name=LoginIp,proto3" json:"LoginIp"` // 用户登录ip LoginCountry string `protobuf:"bytes,10,opt,name=LoginCountry,proto3" json:"LoginCountry"` //国家码 LoginType string `protobuf:"bytes,11,opt,name=LoginType,proto3" json:"LoginType"` // 登录类型 // contains filtered or unexported fields }
[响应] 验证token
func (*VerifyTokenResponse) Descriptor
deprecated
func (*VerifyTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyTokenResponse.ProtoReflect.Descriptor instead.
func (*VerifyTokenResponse) GetDeviceFingerprint ¶
func (x *VerifyTokenResponse) GetDeviceFingerprint() string
func (*VerifyTokenResponse) GetDeviceName ¶
func (x *VerifyTokenResponse) GetDeviceName() string
func (*VerifyTokenResponse) GetLanguage ¶
func (x *VerifyTokenResponse) GetLanguage() string
func (*VerifyTokenResponse) GetLoginCountry ¶
func (x *VerifyTokenResponse) GetLoginCountry() string
func (*VerifyTokenResponse) GetLoginIp ¶
func (x *VerifyTokenResponse) GetLoginIp() string
func (*VerifyTokenResponse) GetLoginType ¶
func (x *VerifyTokenResponse) GetLoginType() string
func (*VerifyTokenResponse) GetPlatform ¶
func (x *VerifyTokenResponse) GetPlatform() string
func (*VerifyTokenResponse) GetPlatformApp ¶
func (x *VerifyTokenResponse) GetPlatformApp() string
func (*VerifyTokenResponse) GetRole ¶
func (x *VerifyTokenResponse) GetRole() string
func (*VerifyTokenResponse) GetUserId ¶
func (x *VerifyTokenResponse) GetUserId() int64
func (*VerifyTokenResponse) GetVersion ¶
func (x *VerifyTokenResponse) GetVersion() string
func (*VerifyTokenResponse) ProtoMessage ¶
func (*VerifyTokenResponse) ProtoMessage()
func (*VerifyTokenResponse) ProtoReflect ¶
func (x *VerifyTokenResponse) ProtoReflect() protoreflect.Message
func (*VerifyTokenResponse) Reset ¶
func (x *VerifyTokenResponse) Reset()
func (*VerifyTokenResponse) String ¶
func (x *VerifyTokenResponse) String() string
func (*VerifyTokenResponse) Validate ¶
func (m *VerifyTokenResponse) Validate() error
Validate checks the field values on VerifyTokenResponse 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 (*VerifyTokenResponse) ValidateAll ¶
func (m *VerifyTokenResponse) ValidateAll() error
ValidateAll checks the field values on VerifyTokenResponse 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 VerifyTokenResponseMultiError, or nil if none found.
type VerifyTokenResponseMultiError ¶
type VerifyTokenResponseMultiError []error
VerifyTokenResponseMultiError is an error wrapping multiple validation errors returned by VerifyTokenResponse.ValidateAll() if the designated constraints aren't met.
func (VerifyTokenResponseMultiError) AllErrors ¶
func (m VerifyTokenResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyTokenResponseMultiError) Error ¶
func (m VerifyTokenResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyTokenResponseValidationError ¶
type VerifyTokenResponseValidationError struct {
// contains filtered or unexported fields
}
VerifyTokenResponseValidationError is the validation error returned by VerifyTokenResponse.Validate if the designated constraints aren't met.
func (VerifyTokenResponseValidationError) Cause ¶
func (e VerifyTokenResponseValidationError) Cause() error
Cause function returns cause value.
func (VerifyTokenResponseValidationError) Error ¶
func (e VerifyTokenResponseValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyTokenResponseValidationError) ErrorName ¶
func (e VerifyTokenResponseValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyTokenResponseValidationError) Field ¶
func (e VerifyTokenResponseValidationError) Field() string
Field function returns field value.
func (VerifyTokenResponseValidationError) Key ¶
func (e VerifyTokenResponseValidationError) Key() bool
Key function returns key value.
func (VerifyTokenResponseValidationError) Reason ¶
func (e VerifyTokenResponseValidationError) Reason() string
Reason function returns reason value.