auth

package
v0.0.0-...-b08fcc5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_auth_auth_proto protoreflect.FileDescriptor

Functions

func NewAuthEndpoints

func NewAuthEndpoints() []*api.Endpoint

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

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

Cause function returns cause value.

func (DelTokenByUserRequestValidationError) Error

Error satisfies the builtin error interface

func (DelTokenByUserRequestValidationError) ErrorName

ErrorName returns error name.

func (DelTokenByUserRequestValidationError) Field

Field function returns field value.

func (DelTokenByUserRequestValidationError) Key

Key function returns key value.

func (DelTokenByUserRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DelTokenRequestValidationError) Error

Error satisfies the builtin error interface

func (DelTokenRequestValidationError) ErrorName

func (e DelTokenRequestValidationError) ErrorName() string

ErrorName returns error name.

func (DelTokenRequestValidationError) Field

Field function returns field value.

func (DelTokenRequestValidationError) Key

Key function returns key value.

func (DelTokenRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetTokenRequestValidationError) Error

Error satisfies the builtin error interface

func (GetTokenRequestValidationError) ErrorName

func (e GetTokenRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetTokenRequestValidationError) Field

Field function returns field value.

func (GetTokenRequestValidationError) Key

Key function returns key value.

func (GetTokenRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetTokenResponseValidationError) Error

Error satisfies the builtin error interface

func (GetTokenResponseValidationError) ErrorName

ErrorName returns error name.

func (GetTokenResponseValidationError) Field

Field function returns field value.

func (GetTokenResponseValidationError) Key

Key function returns key value.

func (GetTokenResponseValidationError) Reason

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

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

Cause function returns cause value.

func (RefreshTokenRequestValidationError) Error

Error satisfies the builtin error interface

func (RefreshTokenRequestValidationError) ErrorName

ErrorName returns error name.

func (RefreshTokenRequestValidationError) Field

Field function returns field value.

func (RefreshTokenRequestValidationError) Key

Key function returns key value.

func (RefreshTokenRequestValidationError) Reason

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

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

Cause function returns cause value.

func (VerifyTokenRequestValidationError) Error

Error satisfies the builtin error interface

func (VerifyTokenRequestValidationError) ErrorName

ErrorName returns error name.

func (VerifyTokenRequestValidationError) Field

Field function returns field value.

func (VerifyTokenRequestValidationError) Key

Key function returns key value.

func (VerifyTokenRequestValidationError) Reason

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

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

Cause function returns cause value.

func (VerifyTokenResponseValidationError) Error

Error satisfies the builtin error interface

func (VerifyTokenResponseValidationError) ErrorName

ErrorName returns error name.

func (VerifyTokenResponseValidationError) Field

Field function returns field value.

func (VerifyTokenResponseValidationError) Key

Key function returns key value.

func (VerifyTokenResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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