Documentation ¶
Index ¶
- type RemoveHandler
- type Server
- func (srv *Server) CreateToken(ctx context.Context, req *api.Config) (*api.Credential, error)
- func (srv *Server) DeleteToken(ctx context.Context, params api.DeleteTokenParams) error
- func (srv *Server) GetToken(ctx context.Context, params api.GetTokenParams) (*api.Token, error)
- func (srv *Server) ListTokens(ctx context.Context) ([]api.Token, error)
- func (srv *Server) OnRemove(fn RemoveHandler)
- func (srv *Server) OnUpdate(fn UpdateHandler)
- func (srv *Server) RefreshToken(ctx context.Context, params api.RefreshTokenParams) (*api.Credential, error)
- func (srv *Server) UpdateToken(ctx context.Context, req *api.Config, params api.UpdateTokenParams) error
- type UpdateHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RemoveHandler ¶
type RemoveHandler func(id int)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) CreateToken ¶
func (*Server) DeleteToken ¶
func (*Server) OnRemove ¶
func (srv *Server) OnRemove(fn RemoveHandler)
func (*Server) OnUpdate ¶
func (srv *Server) OnUpdate(fn UpdateHandler)
func (*Server) RefreshToken ¶
func (srv *Server) RefreshToken(ctx context.Context, params api.RefreshTokenParams) (*api.Credential, error)
func (*Server) UpdateToken ¶
type UpdateHandler ¶
type UpdateHandler func(id int)
Click to show internal directories.
Click to hide internal directories.