Documentation
¶
Index ¶
- type Option
- func Address(a string) Option
- func Context(ctx context.Context) Option
- func Flags(flags ...cli.Flag) Option
- func Logger(l log.Logger) Option
- func Name(n string) Option
- func Namespace(n string) Option
- func TLSConfig(config shared.HTTPServiceTLS) Option
- func TraceProvider(tp trace.TracerProvider) Option
- func Version(v string) Option
- type Options
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *Options)
Option defines a single option function.
func TLSConfig ¶
func TLSConfig(config shared.HTTPServiceTLS) Option
TLSConfig provides a function to set the TLSConfig option.
func TraceProvider ¶
func TraceProvider(tp trace.TracerProvider) Option
TraceProvider provides a function to set the TraceProvider option.
type Options ¶
type Options struct {
Logger log.Logger
TLSConfig shared.HTTPServiceTLS
Namespace string
Name string
Version string
Address string
Handler http.Handler
Context context.Context
Flags []cli.Flag
TraceProvider trace.TracerProvider
}
Options defines the available options for this package.
Click to show internal directories.
Click to hide internal directories.