Versions in this module Expand all Collapse all v0 v0.3.0 Sep 30, 2025 v0.2.0 Sep 27, 2025 Changes in this version type Client + func (c *Client) CreateTask(ctx context.Context, request *CreateTaskRequest) (*Task, error) + func (c *Client) DeleteTask(ctx context.Context, params DeleteTaskParams) (DeleteTaskRes, error) + func (c *Client) GenerateError(ctx context.Context) (*Error, error) + func (c *Client) ListTasks(ctx context.Context) (*TaskList, error) + type CreateTaskRequest struct + Title string + func (s *CreateTaskRequest) Decode(d *jx.Decoder) error + func (s *CreateTaskRequest) Encode(e *jx.Encoder) + func (s *CreateTaskRequest) GetTitle() string + func (s *CreateTaskRequest) MarshalJSON() ([]byte, error) + func (s *CreateTaskRequest) SetFake() + func (s *CreateTaskRequest) SetTitle(val string) + func (s *CreateTaskRequest) UnmarshalJSON(data []byte) error + func (s *CreateTaskRequest) Validate() error + type DeleteTaskNoContent struct + type DeleteTaskParams struct + ID int64 + type DeleteTaskRes interface type Handler + CreateTask func(ctx context.Context, req *CreateTaskRequest) (*Task, error) + DeleteTask func(ctx context.Context, params DeleteTaskParams) (DeleteTaskRes, error) + GenerateError func(ctx context.Context) (*Error, error) + ListTasks func(ctx context.Context) (*TaskList, error) type Invoker + CreateTask func(ctx context.Context, request *CreateTaskRequest) (*Task, error) + DeleteTask func(ctx context.Context, params DeleteTaskParams) (DeleteTaskRes, error) + GenerateError func(ctx context.Context) (*Error, error) + ListTasks func(ctx context.Context) (*TaskList, error) type OperationName + const CreateTaskOperation + const DeleteTaskOperation + const GenerateErrorOperation + const ListTasksOperation + type Task struct + ID int64 + Title string + func (s *Task) Decode(d *jx.Decoder) error + func (s *Task) Encode(e *jx.Encoder) + func (s *Task) GetID() int64 + func (s *Task) GetTitle() string + func (s *Task) MarshalJSON() ([]byte, error) + func (s *Task) SetFake() + func (s *Task) SetID(val int64) + func (s *Task) SetTitle(val string) + func (s *Task) UnmarshalJSON(data []byte) error + func (s *Task) Validate() error + type TaskList struct + Tasks []Task + func (s *TaskList) Decode(d *jx.Decoder) error + func (s *TaskList) Encode(e *jx.Encoder) + func (s *TaskList) GetTasks() []Task + func (s *TaskList) MarshalJSON() ([]byte, error) + func (s *TaskList) SetFake() + func (s *TaskList) SetTasks(val []Task) + func (s *TaskList) UnmarshalJSON(data []byte) error + func (s *TaskList) Validate() error type UnimplementedHandler + func (UnimplementedHandler) CreateTask(ctx context.Context, req *CreateTaskRequest) (r *Task, _ error) + func (UnimplementedHandler) DeleteTask(ctx context.Context, params DeleteTaskParams) (r DeleteTaskRes, _ error) + func (UnimplementedHandler) GenerateError(ctx context.Context) (r *Error, _ error) + func (UnimplementedHandler) ListTasks(ctx context.Context) (r *TaskList, _ error) v0.1.3 Sep 27, 2025 v0.1.2 Sep 27, 2025 v0.1.1 Sep 27, 2025 v0.1.0 Sep 27, 2025 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) GetHealth(ctx context.Context) (*Health, error) + type ClientOption interface + func WithClient(client ht.Client) ClientOption + type Error struct + ErrorMessage string + SpanID OptSpanID + TraceID OptTraceID + func (s *Error) Decode(d *jx.Decoder) error + func (s *Error) Encode(e *jx.Encoder) + func (s *Error) GetErrorMessage() string + func (s *Error) GetSpanID() OptSpanID + func (s *Error) GetTraceID() OptTraceID + func (s *Error) MarshalJSON() ([]byte, error) + func (s *Error) SetErrorMessage(val string) + func (s *Error) SetFake() + func (s *Error) SetSpanID(val OptSpanID) + func (s *Error) SetTraceID(val OptTraceID) + func (s *Error) UnmarshalJSON(data []byte) error + func (s *Error) Validate() error + type ErrorHandler = ogenerrors.ErrorHandler + type ErrorStatusCode struct + Response Error + StatusCode int + func (s *ErrorStatusCode) Error() string + func (s *ErrorStatusCode) GetResponse() Error + func (s *ErrorStatusCode) GetStatusCode() int + func (s *ErrorStatusCode) SetResponse(val Error) + func (s *ErrorStatusCode) SetStatusCode(val int) + func (s *ErrorStatusCode) Validate() error + type Handler interface + GetHealth func(ctx context.Context) (*Health, error) + NewError func(ctx context.Context, err error) *ErrorStatusCode + type Health struct + BuildDate time.Time + Commit string + Status string + Version string + func (s *Health) Decode(d *jx.Decoder) error + func (s *Health) Encode(e *jx.Encoder) + func (s *Health) GetBuildDate() time.Time + func (s *Health) GetCommit() string + func (s *Health) GetStatus() string + func (s *Health) GetVersion() string + func (s *Health) MarshalJSON() ([]byte, error) + func (s *Health) SetBuildDate(val time.Time) + func (s *Health) SetCommit(val string) + func (s *Health) SetFake() + func (s *Health) SetStatus(val string) + func (s *Health) SetVersion(val string) + func (s *Health) UnmarshalJSON(data []byte) error + type Invoker interface + GetHealth func(ctx context.Context) (*Health, error) + type Labeler struct + func LabelerFromContext(ctx context.Context) (*Labeler, bool) + func (l *Labeler) Add(attrs ...attribute.KeyValue) + func (l *Labeler) AttributeSet() attribute.Set + type Middleware = middleware.Middleware + type OperationName = string + const GetHealthOperation + type OptSpanID struct + Set bool + Value SpanID + func NewOptSpanID(v SpanID) OptSpanID + func (o *OptSpanID) Decode(d *jx.Decoder) error + func (o *OptSpanID) Reset() + func (o *OptSpanID) SetTo(v SpanID) + func (o OptSpanID) Encode(e *jx.Encoder) + func (o OptSpanID) Get() (v SpanID, ok bool) + func (o OptSpanID) IsSet() bool + func (o OptSpanID) Or(d SpanID) SpanID + func (s *OptSpanID) SetFake() + func (s *OptSpanID) UnmarshalJSON(data []byte) error + func (s OptSpanID) MarshalJSON() ([]byte, error) + type OptTraceID struct + Set bool + Value TraceID + func NewOptTraceID(v TraceID) OptTraceID + func (o *OptTraceID) Decode(d *jx.Decoder) error + func (o *OptTraceID) Reset() + func (o *OptTraceID) SetTo(v TraceID) + func (o OptTraceID) Encode(e *jx.Encoder) + func (o OptTraceID) Get() (v TraceID, ok bool) + func (o OptTraceID) IsSet() bool + func (o OptTraceID) Or(d TraceID) TraceID + func (s *OptTraceID) SetFake() + func (s *OptTraceID) UnmarshalJSON(data []byte) error + func (s OptTraceID) MarshalJSON() ([]byte, error) + type Option interface + func WithAttributes(attributes ...attribute.KeyValue) Option + 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 + func (r Route) Summary() 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 SpanID string + func (s *SpanID) Decode(d *jx.Decoder) error + func (s *SpanID) SetFake() + func (s *SpanID) UnmarshalJSON(data []byte) error + func (s SpanID) Encode(e *jx.Encoder) + func (s SpanID) MarshalJSON() ([]byte, error) + func (s SpanID) Validate() error + type TraceID string + func (s *TraceID) Decode(d *jx.Decoder) error + func (s *TraceID) SetFake() + func (s *TraceID) UnmarshalJSON(data []byte) error + func (s TraceID) Encode(e *jx.Encoder) + func (s TraceID) MarshalJSON() ([]byte, error) + func (s TraceID) Validate() error + type UnimplementedHandler struct + func (UnimplementedHandler) GetHealth(ctx context.Context) (r *Health, _ error) + func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode)