Documentation
¶
Index ¶
- func NewService(opts ...Option) grpc.Service
- type Option
- func Address(val string) Option
- func Config(val *config.Config) Option
- func Consumer(consumer events.Consumer) Option
- func Context(val context.Context) Option
- func Logger(val log.Logger) Option
- func Metrics(val *metrics.Metrics) Option
- func Name(val string) Option
- func Namespace(val string) Option
- func Persistence(store store.Store) Option
- func TraceProvider(traceProvider trace.TracerProvider) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
NewService initializes the grpc service and server.
Types ¶
type Option ¶
type Option func(o *Options)
Option defines a single option function.
func Persistence ¶
Persistence provides a function to configure the store
func TraceProvider ¶
func TraceProvider(traceProvider trace.TracerProvider) Option
TraceProvider provides a function to configure the trace provider
type Options ¶
type Options struct {
Name string
Address string
Logger log.Logger
Context context.Context
Config *config.Config
Metrics *metrics.Metrics
Namespace string
Persistence store.Store
Consumer events.Consumer
TraceProvider trace.TracerProvider
}
Options defines the available options for this package.
Click to show internal directories.
Click to hide internal directories.