Versions in this module Expand all Collapse all v0 v0.1.3 Jun 13, 2023 v0.1.2 Jun 12, 2023 v0.1.1 Jun 12, 2023 v0.1.0 Jun 12, 2023 Changes in this version + type Batch struct + Cursor int64 + Keys []string + func (s *Batch) Decode(d *jx.Decoder) error + func (s *Batch) Encode(e *jx.Encoder) + func (s *Batch) GetCursor() int64 + func (s *Batch) GetKeys() []string + func (s *Batch) MarshalJSON() ([]byte, error) + func (s *Batch) SetCursor(val int64) + func (s *Batch) SetKeys(val []string) + func (s *Batch) UnmarshalJSON(data []byte) error + func (s *Batch) Validate() error + type DeleteNamespaceNoContent struct + type DeleteNamespaceParams struct + Namespace string + type DeleteNoContent struct + type DeleteParams struct + Key string + Namespace string + type ErrorHandler = ogenerrors.ErrorHandler + type GetNotFound struct + type GetOK struct + Data io.Reader + func (s GetOK) Read(p []byte) (n int, err error) + type GetOKHeaders struct + Response GetOK + XContentType string + XTTL OptFloat64 + func (s *GetOKHeaders) GetResponse() GetOK + func (s *GetOKHeaders) GetXContentType() string + func (s *GetOKHeaders) GetXTTL() OptFloat64 + func (s *GetOKHeaders) SetResponse(val GetOK) + func (s *GetOKHeaders) SetXContentType(val string) + func (s *GetOKHeaders) SetXTTL(val OptFloat64) + func (s *GetOKHeaders) Validate() error + type GetParams struct + Key string + Namespace string + type GetRes interface + type Handler interface + Delete func(ctx context.Context, params DeleteParams) error + DeleteNamespace func(ctx context.Context, params DeleteNamespaceParams) error + Get func(ctx context.Context, params GetParams) (GetRes, error) + Keys func(ctx context.Context, params KeysParams) (*Batch, error) + Set func(ctx context.Context, req *SetReqWithContentType, params SetParams) error + type HeaderAuth struct + APIKey string + func (s *HeaderAuth) GetAPIKey() string + func (s *HeaderAuth) SetAPIKey(val string) + type KeysParams struct + Cursor OptInt64 + Namespace string + type Middleware = middleware.Middleware + type OptFloat64 struct + Set bool + Value float64 + func NewOptFloat64(v float64) OptFloat64 + func (o *OptFloat64) Reset() + func (o *OptFloat64) SetTo(v float64) + func (o OptFloat64) Get() (v float64, ok bool) + func (o OptFloat64) IsSet() bool + func (o OptFloat64) Or(d float64) float64 + type OptInt64 struct + Set bool + Value int64 + func NewOptInt64(v int64) OptInt64 + func (o *OptInt64) Reset() + func (o *OptInt64) SetTo(v int64) + func (o OptInt64) Get() (v int64, ok bool) + func (o OptInt64) IsSet() bool + func (o OptInt64) Or(d int64) int64 + type Option interface + func WithMeterProvider(provider metric.MeterProvider) Option + func WithTracerProvider(provider trace.TracerProvider) Option + type Route struct + func (r Route) Args() []string + func (r Route) Name() string + func (r Route) OperationID() string + func (r Route) PathPattern() string + type SecurityHandler interface + HandleHeaderAuth func(ctx context.Context, operationName string, t HeaderAuth) (context.Context, error) + type Server struct + func NewServer(h Handler, sec SecurityHandler, opts ...ServerOption) (*Server, error) + func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool) + func (s *Server) FindRoute(method, path string) (Route, bool) + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + type ServerOption interface + func WithErrorHandler(h ErrorHandler) ServerOption + func WithMaxMultipartMemory(max int64) ServerOption + func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption + func WithMiddleware(m ...Middleware) ServerOption + func WithNotFound(notFound http.HandlerFunc) ServerOption + func WithPathPrefix(prefix string) ServerOption + type SetNoContent struct + type SetParams struct + Key string + Namespace string + TTL OptFloat64 + type SetReq struct + Data io.Reader + func (s SetReq) Read(p []byte) (n int, err error) + type SetReqWithContentType struct + Content SetReq + ContentType string + func (s *SetReqWithContentType) GetContent() SetReq + func (s *SetReqWithContentType) GetContentType() string + func (s *SetReqWithContentType) SetContent(val SetReq) + func (s *SetReqWithContentType) SetContentType(val string) + type UnimplementedHandler struct + func (UnimplementedHandler) Delete(ctx context.Context, params DeleteParams) error + func (UnimplementedHandler) DeleteNamespace(ctx context.Context, params DeleteNamespaceParams) error + func (UnimplementedHandler) Get(ctx context.Context, params GetParams) (r GetRes, _ error) + func (UnimplementedHandler) Keys(ctx context.Context, params KeysParams) (r *Batch, _ error) + func (UnimplementedHandler) Set(ctx context.Context, req *SetReqWithContentType, params SetParams) error