Versions in this module Expand all Collapse all v1 v1.7.0 May 13, 2024 Changes in this version + type Labeler struct + func LabelerFromContext(ctx context.Context) (*Labeler, bool) + func (l *Labeler) Add(attrs ...attribute.KeyValue) + func (l *Labeler) AttributeSet() attribute.Set v1.6.1 Mar 15, 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) GetAllDrivesSmartInfo(ctx context.Context) (GetAllDrivesSmartInfoRes, error) + func (c *Client) GetDriveSmartInfo(ctx context.Context, params GetDriveSmartInfoParams) (GetDriveSmartInfoRes, error) + type ClientOption interface + func WithClient(client ht.Client) ClientOption + type ErrorHandler = ogenerrors.ErrorHandler + type GetAllDrivesSmartInfoBadRequest struct + type GetAllDrivesSmartInfoInternalServerError struct + type GetAllDrivesSmartInfoNotFound struct + type GetAllDrivesSmartInfoRes interface + type GetDriveSmartInfoBadRequest struct + type GetDriveSmartInfoInternalServerError struct + type GetDriveSmartInfoNotFound struct + type GetDriveSmartInfoParams struct + SerialNumber string + type GetDriveSmartInfoRes interface + type Handler interface + GetAllDrivesSmartInfo func(ctx context.Context) (GetAllDrivesSmartInfoRes, error) + GetDriveSmartInfo func(ctx context.Context, params GetDriveSmartInfoParams) (GetDriveSmartInfoRes, error) + type Invoker interface + GetAllDrivesSmartInfo func(ctx context.Context) (GetAllDrivesSmartInfoRes, error) + GetDriveSmartInfo func(ctx context.Context, params GetDriveSmartInfoParams) (GetDriveSmartInfoRes, error) + type Middleware = middleware.Middleware + 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 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 SmartMetrics struct + SmartInfo OptString + func (s *SmartMetrics) Decode(d *jx.Decoder) error + func (s *SmartMetrics) Encode(e *jx.Encoder) + func (s *SmartMetrics) GetSmartInfo() OptString + func (s *SmartMetrics) MarshalJSON() ([]byte, error) + func (s *SmartMetrics) SetSmartInfo(val OptString) + func (s *SmartMetrics) UnmarshalJSON(data []byte) error + type UnimplementedHandler struct + func (UnimplementedHandler) GetAllDrivesSmartInfo(ctx context.Context) (r GetAllDrivesSmartInfoRes, _ error) + func (UnimplementedHandler) GetDriveSmartInfo(ctx context.Context, params GetDriveSmartInfoParams) (r GetDriveSmartInfoRes, _ error)