Versions in this module Expand all Collapse all v0 v0.0.1 Jan 22, 2024 v0.0.0 Jan 22, 2024 Changes in this version + func WithServerURL(ctx context.Context, u *url.URL) context.Context + type Client struct + func NewClient(serverURL string, opts ...ClientOption) (*Client, error) + func (c *Client) GetKeyboard(ctx context.Context, params GetKeyboardParams) (*Keyboard, error) + type ClientOption interface + func WithClient(client ht.Client) ClientOption + type ErrorHandler = ogenerrors.ErrorHandler + type GetKeyboardParams struct + ID int64 + type Handler interface + GetKeyboard func(ctx context.Context, params GetKeyboardParams) (*Keyboard, error) + type Keyboard struct + Discount NilInt64 + ID int64 + Keycaps Keycaps + Name string + Price int64 + Switches Switches + func (s *Keyboard) Decode(d *jx.Decoder) error + func (s *Keyboard) Encode(e *jx.Encoder) + func (s *Keyboard) GetDiscount() NilInt64 + func (s *Keyboard) GetID() int64 + func (s *Keyboard) GetKeycaps() Keycaps + func (s *Keyboard) GetName() string + func (s *Keyboard) GetPrice() int64 + func (s *Keyboard) GetSwitches() Switches + func (s *Keyboard) MarshalJSON() ([]byte, error) + func (s *Keyboard) SetDiscount(val NilInt64) + func (s *Keyboard) SetID(val int64) + func (s *Keyboard) SetKeycaps(val Keycaps) + func (s *Keyboard) SetName(val string) + func (s *Keyboard) SetPrice(val int64) + func (s *Keyboard) SetSwitches(val Switches) + func (s *Keyboard) UnmarshalJSON(data []byte) error + func (s *Keyboard) Validate() error + type Keycaps struct + ID int64 + Material KeycapsMaterial + Name string + Profile string + func (s *Keycaps) Decode(d *jx.Decoder) error + func (s *Keycaps) Encode(e *jx.Encoder) + func (s *Keycaps) GetID() int64 + func (s *Keycaps) GetMaterial() KeycapsMaterial + func (s *Keycaps) GetName() string + func (s *Keycaps) GetProfile() string + func (s *Keycaps) MarshalJSON() ([]byte, error) + func (s *Keycaps) SetID(val int64) + func (s *Keycaps) SetMaterial(val KeycapsMaterial) + func (s *Keycaps) SetName(val string) + func (s *Keycaps) SetProfile(val string) + func (s *Keycaps) UnmarshalJSON(data []byte) error + func (s *Keycaps) Validate() error + type KeycapsMaterial string + const KeycapsMaterialABS + const KeycapsMaterialPBT + func (s *KeycapsMaterial) Decode(d *jx.Decoder) error + func (s *KeycapsMaterial) UnmarshalJSON(data []byte) error + func (s *KeycapsMaterial) UnmarshalText(data []byte) error + func (s KeycapsMaterial) Encode(e *jx.Encoder) + func (s KeycapsMaterial) MarshalJSON() ([]byte, error) + func (s KeycapsMaterial) MarshalText() ([]byte, error) + func (s KeycapsMaterial) Validate() error + type Middleware = middleware.Middleware + type NilInt64 struct + Null bool + Value int64 + func NewNilInt64(v int64) NilInt64 + func (o *NilInt64) Decode(d *jx.Decoder) error + func (o *NilInt64) SetTo(v int64) + func (o *NilInt64) SetToNull() + func (o NilInt64) Encode(e *jx.Encoder) + func (o NilInt64) Get() (v int64, ok bool) + func (o NilInt64) IsNull() bool + func (o NilInt64) Or(d int64) int64 + func (s *NilInt64) UnmarshalJSON(data []byte) error + func (s NilInt64) MarshalJSON() ([]byte, error) + 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 Server struct + func NewServer(h Handler, 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 Switches struct + ID int64 + Name string + SwitchType SwitchesSwitchType + func (s *Switches) Decode(d *jx.Decoder) error + func (s *Switches) Encode(e *jx.Encoder) + func (s *Switches) GetID() int64 + func (s *Switches) GetName() string + func (s *Switches) GetSwitchType() SwitchesSwitchType + func (s *Switches) MarshalJSON() ([]byte, error) + func (s *Switches) SetID(val int64) + func (s *Switches) SetName(val string) + func (s *Switches) SetSwitchType(val SwitchesSwitchType) + func (s *Switches) UnmarshalJSON(data []byte) error + func (s *Switches) Validate() error + type SwitchesSwitchType string + const SwitchesSwitchTypeElectrocapacitive + const SwitchesSwitchTypeMechanical + const SwitchesSwitchTypeOptical + func (s *SwitchesSwitchType) Decode(d *jx.Decoder) error + func (s *SwitchesSwitchType) UnmarshalJSON(data []byte) error + func (s *SwitchesSwitchType) UnmarshalText(data []byte) error + func (s SwitchesSwitchType) Encode(e *jx.Encoder) + func (s SwitchesSwitchType) MarshalJSON() ([]byte, error) + func (s SwitchesSwitchType) MarshalText() ([]byte, error) + func (s SwitchesSwitchType) Validate() error + type UnimplementedHandler struct + func (UnimplementedHandler) GetKeyboard(ctx context.Context, params GetKeyboardParams) (r *Keyboard, _ error)