Documentation ¶
Index ¶
- Variables
- type Opt
- func WithCertFile(value string) Opt
- func WithHandlers(handlers ...common.HTTPHandler) Opt
- func WithKeyFile(value string) Opt
- func WithServerIdleTimeout(value time.Duration) Opt
- func WithServerReadHeaderTimeout(value time.Duration) Opt
- func WithTracingEnabled(enable bool) Opt
- func WithTracingServiceName(serviceName string) Opt
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BuildVersion contains the version of the Orb build. BuildVersion string )
Functions ¶
This section is empty.
Types ¶
type Opt ¶ added in v1.0.0
type Opt func(*options)
Opt is an HTTP server option.
func WithCertFile ¶ added in v1.0.0
WithCertFile sets the TLS certificate file.
func WithHandlers ¶ added in v1.0.0
func WithHandlers(handlers ...common.HTTPHandler) Opt
WithHandlers adds HTTP request handlers.
func WithKeyFile ¶ added in v1.0.0
WithKeyFile sets the TLS key file.
func WithServerIdleTimeout ¶ added in v1.0.0
WithServerIdleTimeout sets the idle timeout.
func WithServerReadHeaderTimeout ¶ added in v1.0.0
WithServerReadHeaderTimeout sets the read header timeout.
func WithTracingEnabled ¶ added in v1.0.0
WithTracingEnabled enables/disables OpenTelemetry tracing.
func WithTracingServiceName ¶ added in v1.0.0
WithTracingServiceName sets the name of the OpenTelemetry service.
Directories ¶
Path | Synopsis |
---|---|
signature/mocks
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Click to show internal directories.
Click to hide internal directories.