Documentation
¶
Index ¶
- func Server(opts ...Option) (http.Service, error)
- type Option
- func Config(val *config.Config) Option
- func Context(val context.Context) Option
- func Flags(val []cli.Flag) Option
- func GatewaySelector(gatewaySelector pool.Selectable[gateway.GatewayAPIClient]) Option
- func HistoryClient(h ehsvc.EventHistoryService) Option
- func Logger(val log.Logger) Option
- func Metrics(val *metrics.Metrics) Option
- func Namespace(val string) Option
- func RegisteredEvents(evs []events.Unmarshaller) Option
- func Store(store store.Store) Option
- func Stream(stream events.Stream) Option
- func TraceProvider(val trace.TracerProvider) Option
- func ValueClient(val settingssvc.ValueService) Option
- type Options
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(o *Options)
Option defines a single option function.
func GatewaySelector ¶
func GatewaySelector(gatewaySelector pool.Selectable[gateway.GatewayAPIClient]) Option
GatewaySelector provides a function to configure the gateway client selector
func HistoryClient ¶
func HistoryClient(h ehsvc.EventHistoryService) Option
HistoryClient provides a function to configure the event history client
func RegisteredEvents ¶
func RegisteredEvents(evs []events.Unmarshaller) Option
RegisteredEvents provides a function to register events
func TraceProvider ¶
func TraceProvider(val trace.TracerProvider) Option
TraceProvider provides a function to set the TracerProvider option
func ValueClient ¶
func ValueClient(val settingssvc.ValueService) Option
ValueClient provides a function to set the ValueClient options
type Options ¶
type Options struct {
Logger log.Logger
Context context.Context
Config *config.Config
Metrics *metrics.Metrics
Flags []cli.Flag
Namespace string
Store store.Store
Stream events.Stream
GatewaySelector pool.Selectable[gateway.GatewayAPIClient]
TraceProvider trace.TracerProvider
HistoryClient ehsvc.EventHistoryService
ValueClient settingssvc.ValueService
RegisteredEvents []events.Unmarshaller
}
Options defines the available options for this package.
Click to show internal directories.
Click to hide internal directories.