Documentation ¶
Index ¶
- Variables
- func FixContentType(handler http.Handler) http.HandlerFunc
- type Server
- func (srv *Server) Delete(ctx context.Context, params api.DeleteParams) error
- func (srv *Server) DeleteNamespace(ctx context.Context, params api.DeleteNamespaceParams) error
- func (srv *Server) Get(ctx context.Context, params api.GetParams) (api.GetRes, error)
- func (srv *Server) Keys(ctx context.Context, params api.KeysParams) (*api.Batch, error)
- func (srv *Server) Set(ctx context.Context, req *api.SetReqWithContentType, params api.SetParams) error
- type StaticToken
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidToken = errors.New("invalid token")
Functions ¶
func FixContentType ¶
func FixContentType(handler http.Handler) http.HandlerFunc
Types ¶
type Server ¶
func (*Server) DeleteNamespace ¶
type StaticToken ¶
type StaticToken string
func (StaticToken) HandleHeaderAuth ¶
func (st StaticToken) HandleHeaderAuth(ctx context.Context, _ string, t api.HeaderAuth) (context.Context, error)
Click to show internal directories.
Click to hide internal directories.