Versions in this module Expand all Collapse all v0 v0.12.2 May 30, 2024 v0.12.1 May 24, 2024 v0.12.0 May 23, 2024 v0.11.1 May 22, 2024 v0.11.0 May 22, 2024 v0.10.0 May 7, 2024 Changes in this version type Client + func (c *Client) SubmitReport(ctx context.Context, request *SubmitReportReq) error type Handler + SubmitReport func(ctx context.Context, req *SubmitReportReq) error type Invoker + SubmitReport func(ctx context.Context, request *SubmitReportReq) 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 SubmitReportCreated struct + type SubmitReportReq struct + Measurement float64 + Report string + func (s *SubmitReportReq) Decode(d *jx.Decoder) error + func (s *SubmitReportReq) Encode(e *jx.Encoder) + func (s *SubmitReportReq) GetMeasurement() float64 + func (s *SubmitReportReq) GetReport() string + func (s *SubmitReportReq) MarshalJSON() ([]byte, error) + func (s *SubmitReportReq) SetFake() + func (s *SubmitReportReq) SetMeasurement(val float64) + func (s *SubmitReportReq) SetReport(val string) + func (s *SubmitReportReq) UnmarshalJSON(data []byte) error + func (s *SubmitReportReq) Validate() error type UnimplementedHandler + func (UnimplementedHandler) SubmitReport(ctx context.Context, req *SubmitReportReq) error v0.9.0 Jan 21, 2024 Changes in this version + func WithServerURL(ctx context.Context, u *url.URL) context.Context + type Client struct + func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error) + func (c *Client) GetStatus(ctx context.Context) (*GetStatusOK, error) + func (c *Client) Ping(ctx context.Context) 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 GetStatusOK struct + Status string + func (s *GetStatusOK) Decode(d *jx.Decoder) error + func (s *GetStatusOK) Encode(e *jx.Encoder) + func (s *GetStatusOK) GetStatus() string + func (s *GetStatusOK) MarshalJSON() ([]byte, error) + func (s *GetStatusOK) SetFake() + func (s *GetStatusOK) SetStatus(val string) + func (s *GetStatusOK) UnmarshalJSON(data []byte) error + type Handler interface + GetStatus func(ctx context.Context) (*GetStatusOK, error) + NewError func(ctx context.Context, err error) *ErrorStatusCode + Ping func(ctx context.Context) error + type Invoker interface + GetStatus func(ctx context.Context) (*GetStatusOK, error) + Ping func(ctx context.Context) error + type Middleware = middleware.Middleware + 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 WithMeterProvider(provider metric.MeterProvider) Option + func WithTracerProvider(provider trace.TracerProvider) Option + type PingNoContent struct + 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 SecurityHandler interface + HandleTokenAuth func(ctx context.Context, operationName string, t TokenAuth) (context.Context, error) + type SecuritySource interface + TokenAuth func(ctx context.Context, operationName string) (TokenAuth, 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 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 TokenAuth struct + APIKey string + func (s *TokenAuth) GetAPIKey() string + func (s *TokenAuth) SetAPIKey(val string) + 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) GetStatus(ctx context.Context) (r *GetStatusOK, _ error) + func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode) + func (UnimplementedHandler) Ping(ctx context.Context) error