Documentation
¶
Index ¶
- func NewService(opts ...Option) grpc.Service
- type Option
- func Address(val string) Option
- func Config(val *config.Config) Option
- func Context(val context.Context) Option
- func Logger(val log.Logger) Option
- func MaxConcurrentRequests(val int) Option
- func Metrics(val *metrics.Metrics) Option
- func Name(val string) Option
- func Namespace(val string) Option
- func TraceProvider(val 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 MaxConcurrentRequests ¶
MaxConcurrentRequests provides a function to set the MaxConcurrentRequests option.
func TraceProvider ¶
func TraceProvider(val trace.TracerProvider) Option
TraceProvider provides a function to set the TraceProvider option
Click to show internal directories.
Click to hide internal directories.