Documentation ¶
Index ¶
- Variables
- type Server
- func (s *Server) Current(ctx context.Context, _ *emptypb.Empty) (*session.Session, error)
- func (s *Server) Find(scope *session.Scope, server token.Tokens_FindServer) error
- func (s *Server) Invalidate(ctx context.Context, req *token.InvalidateRequest) (*emptypb.Empty, error)
- func (s *Server) Issue(ctx context.Context, req *token.IssueRequest) (*token.IssueResponse, error)
- func (s *Server) Load(ctx context.Context, req *token.LoadRequest) (*session.Session, error)
- func (s *Server) Refresh(ctx context.Context, _ *emptypb.Empty) (*token.IssueResponse, error)
- func (s *Server) Validate(ctx context.Context, t *token.Token) (*session.Session, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( ProvideServer, wire.Bind(new(token.TokensServer), new(*Server)), )
Set is used by wire.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { token.UnsafeTokensServer `wire:"-"` // contains filtered or unexported fields }
Server allows session tokens to be managed.
func ProvideServer ¶
func ProvideServer( ctx context.Context, cfg *config.Config, db *pgxpool.Pool, logger *log.Logger, notifier *cdc.Notifier, ) (*Server, func(), error)
ProvideServer is called by wire.
func (*Server) Invalidate ¶
func (s *Server) Invalidate(ctx context.Context, req *token.InvalidateRequest) (*emptypb.Empty, error)
Invalidate implements TokensServer.
func (*Server) Issue ¶
func (s *Server) Issue(ctx context.Context, req *token.IssueRequest) (*token.IssueResponse, error)
Issue implements TokensServer.
Click to show internal directories.
Click to hide internal directories.