Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// ListenAddress tells the server what to listen on, you shouldn't
// need to change this, its already non-privileged and the default
// should be modified to avoid clashes with other services e.g prometheus.
ListenAddress string
// ReadTimeout defines how long before we give up on the client,
// this should be fairly short.
ReadTimeout time.Duration
// ReadHeaderTimeout defines how long before we give up on the client,
// this should be fairly short.
ReadHeaderTimeout time.Duration
// WriteTimeout defines how long we take to respond before we give up.
// Ideally we'd like this to be short, but Openstack in general sucks
// for performance. Additionally some calls like cluster creation can
// do a cascading create, e.g. create a default control plane, than in
// turn creates a project.
WriteTimeout time.Duration
// OTLPEndpoint defines whether to ship spans to an OTLP consumer or
// not, and where to send them to.
OTLPEndpoint string
// RequestTimeout places a hard limit on all requests lengths.
RequestTimeout time.Duration
}
Options allows server options to be overridden.
type Server ¶
type Server struct {
// Options are server specific options e.g. listener address etc.
Options Options
// ZapOptions configure logging.
ZapOptions zap.Options
// HandlerOptions sets options for the HTTP handler.
HandlerOptions handler.Options
// JoseOptions sets options for JWE.
JoseOptions jose.Options
// KeystoneOptions sets options for OpenStack Keystone.
KeystoneOptions keystone.Options
// OAuth2Options sets options for the oauth2/oidc authenticator.
OAuth2Options oauth2.Options
}
func (*Server) SetupLogging ¶
func (s *Server) SetupLogging()
Directories
¶
| Path | Synopsis |
|---|---|
|
Package generated provides primitives to interact with the openapi HTTP API.
|
Package generated provides primitives to interact with the openapi HTTP API. |
Click to show internal directories.
Click to hide internal directories.