Documentation ¶
Index ¶
- Variables
- func NewTokenServiceEndpoints() []*api.Endpoint
- func RegisterTokenServiceHandler(s server.Server, hdlr TokenServiceHandler, opts ...server.HandlerOption) error
- type GetIdByTokenRequest
- func (*GetIdByTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetIdByTokenRequest) GetUserToken() string
- func (*GetIdByTokenRequest) ProtoMessage()
- func (x *GetIdByTokenRequest) ProtoReflect() protoreflect.Message
- func (x *GetIdByTokenRequest) Reset()
- func (x *GetIdByTokenRequest) String() string
- type GetIdByTokenResponse
- func (*GetIdByTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetIdByTokenResponse) GetUserId() int32
- func (*GetIdByTokenResponse) ProtoMessage()
- func (x *GetIdByTokenResponse) ProtoReflect() protoreflect.Message
- func (x *GetIdByTokenResponse) Reset()
- func (x *GetIdByTokenResponse) String() string
- type TokenService
- type TokenServiceHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var File_token_utils_proto protoreflect.FileDescriptor
Functions ¶
func RegisterTokenServiceHandler ¶
func RegisterTokenServiceHandler(s server.Server, hdlr TokenServiceHandler, opts ...server.HandlerOption) error
Types ¶
type GetIdByTokenRequest ¶
type GetIdByTokenRequest struct { UserToken string `protobuf:"bytes,1,opt,name=user_token,json=userToken,proto3" json:"user_token,omitempty"` // token // contains filtered or unexported fields }
func (*GetIdByTokenRequest) Descriptor
deprecated
func (*GetIdByTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetIdByTokenRequest.ProtoReflect.Descriptor instead.
func (*GetIdByTokenRequest) GetUserToken ¶
func (x *GetIdByTokenRequest) GetUserToken() string
func (*GetIdByTokenRequest) ProtoMessage ¶
func (*GetIdByTokenRequest) ProtoMessage()
func (*GetIdByTokenRequest) ProtoReflect ¶
func (x *GetIdByTokenRequest) ProtoReflect() protoreflect.Message
func (*GetIdByTokenRequest) Reset ¶
func (x *GetIdByTokenRequest) Reset()
func (*GetIdByTokenRequest) String ¶
func (x *GetIdByTokenRequest) String() string
type GetIdByTokenResponse ¶
type GetIdByTokenResponse struct { UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id // contains filtered or unexported fields }
func (*GetIdByTokenResponse) Descriptor
deprecated
func (*GetIdByTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetIdByTokenResponse.ProtoReflect.Descriptor instead.
func (*GetIdByTokenResponse) GetUserId ¶
func (x *GetIdByTokenResponse) GetUserId() int32
func (*GetIdByTokenResponse) ProtoMessage ¶
func (*GetIdByTokenResponse) ProtoMessage()
func (*GetIdByTokenResponse) ProtoReflect ¶
func (x *GetIdByTokenResponse) ProtoReflect() protoreflect.Message
func (*GetIdByTokenResponse) Reset ¶
func (x *GetIdByTokenResponse) Reset()
func (*GetIdByTokenResponse) String ¶
func (x *GetIdByTokenResponse) String() string
type TokenService ¶
type TokenService interface {
GetIdByToken(ctx context.Context, in *GetIdByTokenRequest, opts ...client.CallOption) (*GetIdByTokenResponse, error)
}
func NewTokenService ¶
func NewTokenService(name string, c client.Client) TokenService
type TokenServiceHandler ¶
type TokenServiceHandler interface {
GetIdByToken(context.Context, *GetIdByTokenRequest, *GetIdByTokenResponse) error
}
Click to show internal directories.
Click to hide internal directories.