impl

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

type Server struct {
	BatchSize int64
	DB        *dbo.Queries
}

func (*Server) Delete

func (srv *Server) Delete(ctx context.Context, params api.DeleteParams) error

func (*Server) DeleteNamespace

func (srv *Server) DeleteNamespace(ctx context.Context, params api.DeleteNamespaceParams) error

func (*Server) Get

func (srv *Server) Get(ctx context.Context, params api.GetParams) (api.GetRes, error)

func (*Server) Keys

func (srv *Server) Keys(ctx context.Context, params api.KeysParams) (*api.Batch, error)

func (*Server) Set

func (srv *Server) Set(ctx context.Context, req *api.SetReqWithContentType, params api.SetParams) error

type StaticToken

type StaticToken string

func (StaticToken) HandleHeaderAuth

func (st StaticToken) HandleHeaderAuth(ctx context.Context, _ string, t api.HeaderAuth) (context.Context, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL