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) Test(ctx context.Context) (*SchemaA, error) + type ClientOption interface + func WithClient(client ht.Client) ClientOption + type ErrorHandler = ogenerrors.ErrorHandler + type Handler interface + Test func(ctx context.Context) (*SchemaA, error) + type Middleware = middleware.Middleware + type NilString struct + Null bool + Value string + func NewNilString(v string) NilString + func (o *NilString) Decode(d *jx.Decoder) error + func (o *NilString) SetTo(v string) + func (o *NilString) SetToNull() + func (o NilString) Encode(e *jx.Encoder) + func (o NilString) Get() (v string, ok bool) + func (o NilString) IsNull() bool + func (o NilString) Or(d string) string + func (s *NilString) UnmarshalJSON(data []byte) error + func (s NilString) MarshalJSON() ([]byte, error) + type OptNilBool struct + Null bool + Set bool + Value bool + func NewOptNilBool(v bool) OptNilBool + func (o *OptNilBool) Decode(d *jx.Decoder) error + func (o *OptNilBool) Reset() + func (o *OptNilBool) SetTo(v bool) + func (o *OptNilBool) SetToNull() + func (o OptNilBool) Encode(e *jx.Encoder) + func (o OptNilBool) Get() (v bool, ok bool) + func (o OptNilBool) IsNull() bool + func (o OptNilBool) IsSet() bool + func (o OptNilBool) Or(d bool) bool + func (s *OptNilBool) UnmarshalJSON(data []byte) error + func (s OptNilBool) MarshalJSON() ([]byte, error) + type OptNilSchemaAOptionalNullableEnum struct + Null bool + Set bool + Value SchemaAOptionalNullableEnum + func NewOptNilSchemaAOptionalNullableEnum(v SchemaAOptionalNullableEnum) OptNilSchemaAOptionalNullableEnum + func (o *OptNilSchemaAOptionalNullableEnum) Decode(d *jx.Decoder) error + func (o *OptNilSchemaAOptionalNullableEnum) Reset() + func (o *OptNilSchemaAOptionalNullableEnum) SetTo(v SchemaAOptionalNullableEnum) + func (o *OptNilSchemaAOptionalNullableEnum) SetToNull() + func (o OptNilSchemaAOptionalNullableEnum) Encode(e *jx.Encoder) + func (o OptNilSchemaAOptionalNullableEnum) Get() (v SchemaAOptionalNullableEnum, ok bool) + func (o OptNilSchemaAOptionalNullableEnum) IsNull() bool + func (o OptNilSchemaAOptionalNullableEnum) IsSet() bool + func (o OptNilSchemaAOptionalNullableEnum) Or(d SchemaAOptionalNullableEnum) SchemaAOptionalNullableEnum + func (s *OptNilSchemaAOptionalNullableEnum) UnmarshalJSON(data []byte) error + func (s OptNilSchemaAOptionalNullableEnum) MarshalJSON() ([]byte, error) + type OptSchemaB struct + Set bool + Value SchemaB + func NewOptSchemaB(v SchemaB) OptSchemaB + func (o *OptSchemaB) Decode(d *jx.Decoder) error + func (o *OptSchemaB) Reset() + func (o *OptSchemaB) SetTo(v SchemaB) + func (o OptSchemaB) Encode(e *jx.Encoder) + func (o OptSchemaB) Get() (v SchemaB, ok bool) + func (o OptSchemaB) IsSet() bool + func (o OptSchemaB) Or(d SchemaB) SchemaB + func (s *OptSchemaB) UnmarshalJSON(data []byte) error + func (s OptSchemaB) 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 SchemaA struct + Bytes []byte + EdgeSchemaaRecursive []SchemaA + EdgeSchemab []SchemaB + EdgeSchemabUniqueOptional OptSchemaB + EdgeSchemabUniqueRequired SchemaB + EdgeSchemabUniqueRequiredBsBind SchemaB + Int64 int64 + JsontypeInts []int + JsontypeIntsOptional []int + JsontypeStrings []string + JsontypeStringsOptional []string + OptionalNullableBool OptNilBool + OptionalNullableEnum OptNilSchemaAOptionalNullableEnum + RequiredEnum SchemaARequiredEnum + StringFoobarBind string + StringOptionalNullable NilString + func (s *SchemaA) Decode(d *jx.Decoder) error + func (s *SchemaA) Encode(e *jx.Encoder) + func (s *SchemaA) GetBytes() []byte + func (s *SchemaA) GetEdgeSchemaaRecursive() []SchemaA + func (s *SchemaA) GetEdgeSchemab() []SchemaB + func (s *SchemaA) GetEdgeSchemabUniqueOptional() OptSchemaB + func (s *SchemaA) GetEdgeSchemabUniqueRequired() SchemaB + func (s *SchemaA) GetEdgeSchemabUniqueRequiredBsBind() SchemaB + func (s *SchemaA) GetInt64() int64 + func (s *SchemaA) GetJsontypeInts() []int + func (s *SchemaA) GetJsontypeIntsOptional() []int + func (s *SchemaA) GetJsontypeStrings() []string + func (s *SchemaA) GetJsontypeStringsOptional() []string + func (s *SchemaA) GetOptionalNullableBool() OptNilBool + func (s *SchemaA) GetOptionalNullableEnum() OptNilSchemaAOptionalNullableEnum + func (s *SchemaA) GetRequiredEnum() SchemaARequiredEnum + func (s *SchemaA) GetStringFoobarBind() string + func (s *SchemaA) GetStringOptionalNullable() NilString + func (s *SchemaA) MarshalJSON() ([]byte, error) + func (s *SchemaA) SetBytes(val []byte) + func (s *SchemaA) SetEdgeSchemaaRecursive(val []SchemaA) + func (s *SchemaA) SetEdgeSchemab(val []SchemaB) + func (s *SchemaA) SetEdgeSchemabUniqueOptional(val OptSchemaB) + func (s *SchemaA) SetEdgeSchemabUniqueRequired(val SchemaB) + func (s *SchemaA) SetEdgeSchemabUniqueRequiredBsBind(val SchemaB) + func (s *SchemaA) SetInt64(val int64) + func (s *SchemaA) SetJsontypeInts(val []int) + func (s *SchemaA) SetJsontypeIntsOptional(val []int) + func (s *SchemaA) SetJsontypeStrings(val []string) + func (s *SchemaA) SetJsontypeStringsOptional(val []string) + func (s *SchemaA) SetOptionalNullableBool(val OptNilBool) + func (s *SchemaA) SetOptionalNullableEnum(val OptNilSchemaAOptionalNullableEnum) + func (s *SchemaA) SetRequiredEnum(val SchemaARequiredEnum) + func (s *SchemaA) SetStringFoobarBind(val string) + func (s *SchemaA) SetStringOptionalNullable(val NilString) + func (s *SchemaA) UnmarshalJSON(data []byte) error + func (s *SchemaA) Validate() error + type SchemaAOptionalNullableEnum string + const SchemaAOptionalNullableEnumC + const SchemaAOptionalNullableEnumD + func (s *SchemaAOptionalNullableEnum) Decode(d *jx.Decoder) error + func (s *SchemaAOptionalNullableEnum) UnmarshalJSON(data []byte) error + func (s *SchemaAOptionalNullableEnum) UnmarshalText(data []byte) error + func (s SchemaAOptionalNullableEnum) Encode(e *jx.Encoder) + func (s SchemaAOptionalNullableEnum) MarshalJSON() ([]byte, error) + func (s SchemaAOptionalNullableEnum) MarshalText() ([]byte, error) + func (s SchemaAOptionalNullableEnum) Validate() error + type SchemaARequiredEnum string + const SchemaARequiredEnumA + const SchemaARequiredEnumB + func (s *SchemaARequiredEnum) Decode(d *jx.Decoder) error + func (s *SchemaARequiredEnum) UnmarshalJSON(data []byte) error + func (s *SchemaARequiredEnum) UnmarshalText(data []byte) error + func (s SchemaARequiredEnum) Encode(e *jx.Encoder) + func (s SchemaARequiredEnum) MarshalJSON() ([]byte, error) + func (s SchemaARequiredEnum) MarshalText() ([]byte, error) + func (s SchemaARequiredEnum) Validate() error + type SchemaB struct + ID int64 + func (s *SchemaB) Decode(d *jx.Decoder) error + func (s *SchemaB) Encode(e *jx.Encoder) + func (s *SchemaB) GetID() int64 + func (s *SchemaB) MarshalJSON() ([]byte, error) + func (s *SchemaB) SetID(val int64) + func (s *SchemaB) UnmarshalJSON(data []byte) error + 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 UnimplementedHandler struct + func (UnimplementedHandler) Test(ctx context.Context) (r *SchemaA, _ error)