Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type Client
- type ClientOption
- type Error
- type GetConfigurationBadGateway
- type GetConfigurationBadGatewayHeaders
- func (s *GetConfigurationBadGatewayHeaders) GetContentType() string
- func (s *GetConfigurationBadGatewayHeaders) GetResponse() GetConfigurationBadGateway
- func (s *GetConfigurationBadGatewayHeaders) SetContentType(val string)
- func (s *GetConfigurationBadGatewayHeaders) SetResponse(val GetConfigurationBadGateway)
- type GetConfigurationBadRequest
- type GetConfigurationGatewayTimeout
- type GetConfigurationGatewayTimeoutHeaders
- func (s *GetConfigurationGatewayTimeoutHeaders) GetContentType() string
- func (s *GetConfigurationGatewayTimeoutHeaders) GetResponse() GetConfigurationGatewayTimeout
- func (s *GetConfigurationGatewayTimeoutHeaders) SetContentType(val string)
- func (s *GetConfigurationGatewayTimeoutHeaders) SetResponse(val GetConfigurationGatewayTimeout)
- type GetConfigurationInternalServerError
- type GetConfigurationInternalServerErrorHeaders
- func (s *GetConfigurationInternalServerErrorHeaders) GetContentType() string
- func (s *GetConfigurationInternalServerErrorHeaders) GetResponse() GetConfigurationInternalServerError
- func (s *GetConfigurationInternalServerErrorHeaders) SetContentType(val string)
- func (s *GetConfigurationInternalServerErrorHeaders) SetResponse(val GetConfigurationInternalServerError)
- type GetConfigurationNotFound
- type GetConfigurationOK
- type GetConfigurationOKHeaders
- func (s *GetConfigurationOKHeaders) GetConfigurationVersion() OptString
- func (s *GetConfigurationOKHeaders) GetContentType() string
- func (s *GetConfigurationOKHeaders) GetResponse() GetConfigurationOK
- func (s *GetConfigurationOKHeaders) SetConfigurationVersion(val OptString)
- func (s *GetConfigurationOKHeaders) SetContentType(val string)
- func (s *GetConfigurationOKHeaders) SetResponse(val GetConfigurationOK)
- type GetConfigurationParams
- type GetConfigurationRes
- type Invoker
- type OperationName
- type OptString
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func NewClient ¶
func NewClient(serverURL string, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) GetConfiguration ¶
func (c *Client) GetConfiguration(ctx context.Context, params GetConfigurationParams) (GetConfigurationRes, error)
GetConfiguration invokes getConfiguration operation.
GET /applications/{Application}/environments/{Environment}/configurations/{Configuration}
type ClientOption ¶
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption is client config option.
func WithClient ¶
func WithClient(client ht.Client) ClientOption
WithClient specifies http client to use.
type Error ¶
Ref: #/components/schemas/Error
func (Error) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Error) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type GetConfigurationBadGatewayHeaders ¶
type GetConfigurationBadGatewayHeaders struct { ContentType string Response GetConfigurationBadGateway }
GetConfigurationBadGatewayHeaders wraps GetConfigurationBadGateway with response headers.
func (*GetConfigurationBadGatewayHeaders) GetContentType ¶
func (s *GetConfigurationBadGatewayHeaders) GetContentType() string
GetContentType returns the value of ContentType.
func (*GetConfigurationBadGatewayHeaders) GetResponse ¶
func (s *GetConfigurationBadGatewayHeaders) GetResponse() GetConfigurationBadGateway
GetResponse returns the value of Response.
func (*GetConfigurationBadGatewayHeaders) SetContentType ¶
func (s *GetConfigurationBadGatewayHeaders) SetContentType(val string)
SetContentType sets the value of ContentType.
func (*GetConfigurationBadGatewayHeaders) SetResponse ¶
func (s *GetConfigurationBadGatewayHeaders) SetResponse(val GetConfigurationBadGateway)
SetResponse sets the value of Response.
type GetConfigurationBadRequest ¶
type GetConfigurationBadRequest Error
func (*GetConfigurationBadRequest) Decode ¶
func (s *GetConfigurationBadRequest) Decode(d *jx.Decoder) error
Decode decodes GetConfigurationBadRequest from json.
func (GetConfigurationBadRequest) Encode ¶
func (s GetConfigurationBadRequest) Encode(e *jx.Encoder)
Encode encodes GetConfigurationBadRequest as json.
func (GetConfigurationBadRequest) MarshalJSON ¶
func (s GetConfigurationBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetConfigurationBadRequest) UnmarshalJSON ¶
func (s *GetConfigurationBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetConfigurationGatewayTimeoutHeaders ¶
type GetConfigurationGatewayTimeoutHeaders struct { ContentType string Response GetConfigurationGatewayTimeout }
GetConfigurationGatewayTimeoutHeaders wraps GetConfigurationGatewayTimeout with response headers.
func (*GetConfigurationGatewayTimeoutHeaders) GetContentType ¶
func (s *GetConfigurationGatewayTimeoutHeaders) GetContentType() string
GetContentType returns the value of ContentType.
func (*GetConfigurationGatewayTimeoutHeaders) GetResponse ¶
func (s *GetConfigurationGatewayTimeoutHeaders) GetResponse() GetConfigurationGatewayTimeout
GetResponse returns the value of Response.
func (*GetConfigurationGatewayTimeoutHeaders) SetContentType ¶
func (s *GetConfigurationGatewayTimeoutHeaders) SetContentType(val string)
SetContentType sets the value of ContentType.
func (*GetConfigurationGatewayTimeoutHeaders) SetResponse ¶
func (s *GetConfigurationGatewayTimeoutHeaders) SetResponse(val GetConfigurationGatewayTimeout)
SetResponse sets the value of Response.
type GetConfigurationInternalServerErrorHeaders ¶
type GetConfigurationInternalServerErrorHeaders struct { ContentType string Response GetConfigurationInternalServerError }
GetConfigurationInternalServerErrorHeaders wraps GetConfigurationInternalServerError with response headers.
func (*GetConfigurationInternalServerErrorHeaders) GetContentType ¶
func (s *GetConfigurationInternalServerErrorHeaders) GetContentType() string
GetContentType returns the value of ContentType.
func (*GetConfigurationInternalServerErrorHeaders) GetResponse ¶
func (s *GetConfigurationInternalServerErrorHeaders) GetResponse() GetConfigurationInternalServerError
GetResponse returns the value of Response.
func (*GetConfigurationInternalServerErrorHeaders) SetContentType ¶
func (s *GetConfigurationInternalServerErrorHeaders) SetContentType(val string)
SetContentType sets the value of ContentType.
func (*GetConfigurationInternalServerErrorHeaders) SetResponse ¶
func (s *GetConfigurationInternalServerErrorHeaders) SetResponse(val GetConfigurationInternalServerError)
SetResponse sets the value of Response.
type GetConfigurationNotFound ¶
type GetConfigurationNotFound Error
func (*GetConfigurationNotFound) Decode ¶
func (s *GetConfigurationNotFound) Decode(d *jx.Decoder) error
Decode decodes GetConfigurationNotFound from json.
func (GetConfigurationNotFound) Encode ¶
func (s GetConfigurationNotFound) Encode(e *jx.Encoder)
Encode encodes GetConfigurationNotFound as json.
func (GetConfigurationNotFound) MarshalJSON ¶
func (s GetConfigurationNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetConfigurationNotFound) UnmarshalJSON ¶
func (s *GetConfigurationNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetConfigurationOK ¶
type GetConfigurationOKHeaders ¶
type GetConfigurationOKHeaders struct { ConfigurationVersion OptString ContentType string Response GetConfigurationOK }
GetConfigurationOKHeaders wraps GetConfigurationOK with response headers.
func (*GetConfigurationOKHeaders) GetConfigurationVersion ¶
func (s *GetConfigurationOKHeaders) GetConfigurationVersion() OptString
GetConfigurationVersion returns the value of ConfigurationVersion.
func (*GetConfigurationOKHeaders) GetContentType ¶
func (s *GetConfigurationOKHeaders) GetContentType() string
GetContentType returns the value of ContentType.
func (*GetConfigurationOKHeaders) GetResponse ¶
func (s *GetConfigurationOKHeaders) GetResponse() GetConfigurationOK
GetResponse returns the value of Response.
func (*GetConfigurationOKHeaders) SetConfigurationVersion ¶
func (s *GetConfigurationOKHeaders) SetConfigurationVersion(val OptString)
SetConfigurationVersion sets the value of ConfigurationVersion.
func (*GetConfigurationOKHeaders) SetContentType ¶
func (s *GetConfigurationOKHeaders) SetContentType(val string)
SetContentType sets the value of ContentType.
func (*GetConfigurationOKHeaders) SetResponse ¶
func (s *GetConfigurationOKHeaders) SetResponse(val GetConfigurationOK)
SetResponse sets the value of Response.
type GetConfigurationParams ¶
type GetConfigurationParams struct { // The application for the configuration to get. Specify either the application name or the // application ID. Application string // The environment for the configuration to get. Specify either the environment name or the // environment ID. Environment string // The configuration to get. Specify either the configuration name or the configuration ID. Configuration string // The flag names of feature flag configuration. Flag []string // The evaluation context for feature flag configuration. Context []string }
GetConfigurationParams is parameters of getConfiguration operation.
type GetConfigurationRes ¶
type GetConfigurationRes interface {
// contains filtered or unexported methods
}
type Invoker ¶
type Invoker interface { // GetConfiguration invokes getConfiguration operation. // // GET /applications/{Application}/environments/{Environment}/configurations/{Configuration} GetConfiguration(ctx context.Context, params GetConfigurationParams) (GetConfigurationRes, error) }
Invoker invokes operations described by OpenAPI v3 specification.
type OperationName ¶
type OperationName = string
OperationName is the ogen operation name
const (
GetConfigurationOperation OperationName = "GetConfiguration"
)
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
type Option ¶
type Option interface { ClientOption }
Option is config option.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider specifies a meter provider to use for creating a meter.
If none is specified, the otel.GetMeterProvider() is used.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer.
If none is specified, the global provider is used.