Versions in this module Expand all Collapse all v0 v0.16.0 Dec 11, 2024 Changes in this version + const TokenService_Issue_FullMethodName + const TokenService_Refresh_FullMethodName + var File_token_v1_token_proto protoreflect.FileDescriptor + var TokenService_ServiceDesc = grpc.ServiceDesc + func RegisterTokenServiceServer(s grpc.ServiceRegistrar, srv TokenServiceServer) + type IssueReq struct + Type uint32 + UserId string + func (*IssueReq) Descriptor() ([]byte, []int) + func (*IssueReq) ProtoMessage() + func (x *IssueReq) GetType() uint32 + func (x *IssueReq) GetUserId() string + func (x *IssueReq) ProtoReflect() protoreflect.Message + func (x *IssueReq) Reset() + func (x *IssueReq) String() string + type RefreshReq struct + RefreshToken string + func (*RefreshReq) Descriptor() ([]byte, []int) + func (*RefreshReq) ProtoMessage() + func (x *RefreshReq) GetRefreshToken() string + func (x *RefreshReq) ProtoReflect() protoreflect.Message + func (x *RefreshReq) Reset() + func (x *RefreshReq) String() string + type Token struct + AccessToken string + AccessType string + RefreshToken *string + func (*Token) Descriptor() ([]byte, []int) + func (*Token) ProtoMessage() + func (x *Token) GetAccessToken() string + func (x *Token) GetAccessType() string + func (x *Token) GetRefreshToken() string + func (x *Token) ProtoReflect() protoreflect.Message + func (x *Token) Reset() + func (x *Token) String() string + type TokenServiceClient interface + Issue func(ctx context.Context, in *IssueReq, opts ...grpc.CallOption) (*Token, error) + Refresh func(ctx context.Context, in *RefreshReq, opts ...grpc.CallOption) (*Token, error) + func NewTokenServiceClient(cc grpc.ClientConnInterface) TokenServiceClient + type TokenServiceServer interface + Issue func(context.Context, *IssueReq) (*Token, error) + Refresh func(context.Context, *RefreshReq) (*Token, error) + type UnimplementedTokenServiceServer struct + func (UnimplementedTokenServiceServer) Issue(context.Context, *IssueReq) (*Token, error) + func (UnimplementedTokenServiceServer) Refresh(context.Context, *RefreshReq) (*Token, error) + type UnsafeTokenServiceServer interface