Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenServer ¶
type TokenServer struct { pb.UnimplementedTokenServer // contains filtered or unexported fields }
func NewTokenServer ¶
func NewTokenServer(logger *zap.SugaredLogger, tokenMng token.Manager, validTime time.Duration) *TokenServer
func (TokenServer) GenerateToken ¶
func (s TokenServer) GenerateToken(_ context.Context, tokenReq *pb.GenerateTokenRequest) (*pb.TokenResponse, error)
Click to show internal directories.
Click to hide internal directories.