Versions in this module Expand all Collapse all v0 v0.0.5 Oct 31, 2025 v0.0.4 Oct 15, 2025 v0.0.3 Oct 15, 2025 v0.0.2 Oct 15, 2025 v0.0.1 Oct 14, 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) GetServer(ctx context.Context, params GetServerParams) (GetServerRes, error) + func (c *Client) ListMultiplayerSummaries(ctx context.Context, params ListMultiplayerSummariesParams) ([]MultiplayerSummary, error) + func (c *Client) ListServerStatistics(ctx context.Context, params ListServerStatisticsParams) (ListServerStatisticsRes, error) + func (c *Client) ListServerSummaries(ctx context.Context, params ListServerSummariesParams) (ListServerSummariesRes, error) + type ClientOption interface + func WithClient(client ht.Client) ClientOption + type DetailedServer struct + CollectedAt OptDateTime + Gamemode OptString + Language OptString + Name string + PlayersCount OptInt64 + URL OptString + func (s *DetailedServer) Decode(d *jx.Decoder) error + func (s *DetailedServer) Encode(e *jx.Encoder) + func (s *DetailedServer) GetCollectedAt() OptDateTime + func (s *DetailedServer) GetGamemode() OptString + func (s *DetailedServer) GetLanguage() OptString + func (s *DetailedServer) GetName() string + func (s *DetailedServer) GetPlayersCount() OptInt64 + func (s *DetailedServer) GetURL() OptString + func (s *DetailedServer) MarshalJSON() ([]byte, error) + func (s *DetailedServer) SetCollectedAt(val OptDateTime) + func (s *DetailedServer) SetGamemode(val OptString) + func (s *DetailedServer) SetLanguage(val OptString) + func (s *DetailedServer) SetName(val string) + func (s *DetailedServer) SetPlayersCount(val OptInt64) + func (s *DetailedServer) SetURL(val OptString) + func (s *DetailedServer) UnmarshalJSON(data []byte) error + type ErrorHandler = ogenerrors.ErrorHandler + type GetServerNotFound struct + type GetServerParams struct + MultiplayerName string + ServerHost string + type GetServerRes interface + type Handler interface + GetServer func(ctx context.Context, params GetServerParams) (GetServerRes, error) + ListMultiplayerSummaries func(ctx context.Context, params ListMultiplayerSummariesParams) ([]MultiplayerSummary, error) + ListServerStatistics func(ctx context.Context, params ListServerStatisticsParams) (ListServerStatisticsRes, error) + ListServerSummaries func(ctx context.Context, params ListServerSummariesParams) (ListServerSummariesRes, error) + type Invoker interface + GetServer func(ctx context.Context, params GetServerParams) (GetServerRes, error) + ListMultiplayerSummaries func(ctx context.Context, params ListMultiplayerSummariesParams) ([]MultiplayerSummary, error) + ListServerStatistics func(ctx context.Context, params ListServerStatisticsParams) (ListServerStatisticsRes, error) + ListServerSummaries func(ctx context.Context, params ListServerSummariesParams) (ListServerSummariesRes, 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 ListMultiplayerSummariesParams struct + PlayersOrderAsc OptBool + type ListServerStatisticsNotFound struct + type ListServerStatisticsOKApplicationJSON []ServerStatisticPoint + func (s *ListServerStatisticsOKApplicationJSON) Decode(d *jx.Decoder) error + func (s *ListServerStatisticsOKApplicationJSON) UnmarshalJSON(data []byte) error + func (s ListServerStatisticsOKApplicationJSON) Encode(e *jx.Encoder) + func (s ListServerStatisticsOKApplicationJSON) MarshalJSON() ([]byte, error) + func (s ListServerStatisticsOKApplicationJSON) Validate() error + type ListServerStatisticsParams struct + From time.Time + MultiplayerName string + Precision OptListServerStatisticsPrecision + ServerHost string + To time.Time + type ListServerStatisticsPrecision string + const ListServerStatisticsPrecisionPerDay + const ListServerStatisticsPrecisionPerHour + func (ListServerStatisticsPrecision) AllValues() []ListServerStatisticsPrecision + func (s *ListServerStatisticsPrecision) UnmarshalText(data []byte) error + func (s ListServerStatisticsPrecision) MarshalText() ([]byte, error) + func (s ListServerStatisticsPrecision) Validate() error + type ListServerStatisticsRes interface + type ListServerSummariesNotFound struct + type ListServerSummariesOKApplicationJSON []ServerSummary + func (s *ListServerSummariesOKApplicationJSON) Decode(d *jx.Decoder) error + func (s *ListServerSummariesOKApplicationJSON) UnmarshalJSON(data []byte) error + func (s ListServerSummariesOKApplicationJSON) Encode(e *jx.Encoder) + func (s ListServerSummariesOKApplicationJSON) MarshalJSON() ([]byte, error) + func (s ListServerSummariesOKApplicationJSON) Validate() error + type ListServerSummariesParams struct + IncludeOffline OptBool + Limit OptInt32 + MultiplayerName string + Offset OptInt32 + PlayersOrderAsc OptBool + type ListServerSummariesRes interface + type Middleware = middleware.Middleware + type MultiplayerSummary struct + Name string + PlayersCount int64 + func (s *MultiplayerSummary) Decode(d *jx.Decoder) error + func (s *MultiplayerSummary) Encode(e *jx.Encoder) + func (s *MultiplayerSummary) GetName() string + func (s *MultiplayerSummary) GetPlayersCount() int64 + func (s *MultiplayerSummary) MarshalJSON() ([]byte, error) + func (s *MultiplayerSummary) SetName(val string) + func (s *MultiplayerSummary) SetPlayersCount(val int64) + func (s *MultiplayerSummary) UnmarshalJSON(data []byte) error + type OperationName = string + const GetServerOperation + const ListMultiplayerSummariesOperation + const ListServerStatisticsOperation + const ListServerSummariesOperation + type OptBool struct + Set bool + Value bool + func NewOptBool(v bool) OptBool + func (o *OptBool) Reset() + func (o *OptBool) SetTo(v bool) + func (o OptBool) Get() (v bool, ok bool) + func (o OptBool) IsSet() bool + func (o OptBool) Or(d bool) bool + type OptDateTime struct + Set bool + Value time.Time + func NewOptDateTime(v time.Time) OptDateTime + func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error + func (o *OptDateTime) Reset() + func (o *OptDateTime) SetTo(v time.Time) + func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time)) + func (o OptDateTime) Get() (v time.Time, ok bool) + func (o OptDateTime) IsSet() bool + func (o OptDateTime) Or(d time.Time) time.Time + func (s *OptDateTime) UnmarshalJSON(data []byte) error + func (s OptDateTime) MarshalJSON() ([]byte, error) + type OptInt32 struct + Set bool + Value int32 + func NewOptInt32(v int32) OptInt32 + func (o *OptInt32) Reset() + func (o *OptInt32) SetTo(v int32) + func (o OptInt32) Get() (v int32, ok bool) + func (o OptInt32) IsSet() bool + func (o OptInt32) Or(d int32) int32 + type OptInt64 struct + Set bool + Value int64 + func NewOptInt64(v int64) OptInt64 + func (o *OptInt64) Decode(d *jx.Decoder) error + func (o *OptInt64) Reset() + func (o *OptInt64) SetTo(v int64) + func (o OptInt64) Encode(e *jx.Encoder) + func (o OptInt64) Get() (v int64, ok bool) + func (o OptInt64) IsSet() bool + func (o OptInt64) Or(d int64) int64 + func (s *OptInt64) UnmarshalJSON(data []byte) error + func (s OptInt64) MarshalJSON() ([]byte, error) + type OptListServerStatisticsPrecision struct + Set bool + Value ListServerStatisticsPrecision + func NewOptListServerStatisticsPrecision(v ListServerStatisticsPrecision) OptListServerStatisticsPrecision + func (o *OptListServerStatisticsPrecision) Reset() + func (o *OptListServerStatisticsPrecision) SetTo(v ListServerStatisticsPrecision) + func (o OptListServerStatisticsPrecision) Get() (v ListServerStatisticsPrecision, ok bool) + func (o OptListServerStatisticsPrecision) IsSet() bool + func (o OptListServerStatisticsPrecision) Or(d ListServerStatisticsPrecision) ListServerStatisticsPrecision + type OptString struct + Set bool + Value string + func NewOptString(v string) OptString + func (o *OptString) Decode(d *jx.Decoder) error + func (o *OptString) Reset() + func (o *OptString) SetTo(v string) + func (o OptString) Encode(e *jx.Encoder) + func (o OptString) Get() (v string, ok bool) + func (o OptString) IsSet() bool + func (o OptString) Or(d string) string + func (s *OptString) UnmarshalJSON(data []byte) error + func (s OptString) 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 ServerStatisticPoint struct + CollectedAt time.Time + PlayersCount int32 + func (s *ServerStatisticPoint) Decode(d *jx.Decoder) error + func (s *ServerStatisticPoint) Encode(e *jx.Encoder) + func (s *ServerStatisticPoint) GetCollectedAt() time.Time + func (s *ServerStatisticPoint) GetPlayersCount() int32 + func (s *ServerStatisticPoint) MarshalJSON() ([]byte, error) + func (s *ServerStatisticPoint) SetCollectedAt(val time.Time) + func (s *ServerStatisticPoint) SetPlayersCount(val int32) + func (s *ServerStatisticPoint) UnmarshalJSON(data []byte) error + type ServerSummary struct + Host string + Name string + PlayersCount int32 + func (s *ServerSummary) Decode(d *jx.Decoder) error + func (s *ServerSummary) Encode(e *jx.Encoder) + func (s *ServerSummary) GetHost() string + func (s *ServerSummary) GetName() string + func (s *ServerSummary) GetPlayersCount() int32 + func (s *ServerSummary) MarshalJSON() ([]byte, error) + func (s *ServerSummary) SetHost(val string) + func (s *ServerSummary) SetName(val string) + func (s *ServerSummary) SetPlayersCount(val int32) + func (s *ServerSummary) UnmarshalJSON(data []byte) error + type UnimplementedHandler struct + func (UnimplementedHandler) GetServer(ctx context.Context, params GetServerParams) (r GetServerRes, _ error) + func (UnimplementedHandler) ListMultiplayerSummaries(ctx context.Context, params ListMultiplayerSummariesParams) (r []MultiplayerSummary, _ error) + func (UnimplementedHandler) ListServerStatistics(ctx context.Context, params ListServerStatisticsParams) (r ListServerStatisticsRes, _ error) + func (UnimplementedHandler) ListServerSummaries(ctx context.Context, params ListServerSummariesParams) (r ListServerSummariesRes, _ error)