service

package
v0.0.0-...-d201b6c Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_token_utils_proto protoreflect.FileDescriptor

Functions

func NewTokenServiceEndpoints

func NewTokenServiceEndpoints() []*api.Endpoint

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
}

Jump to

Keyboard shortcuts

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