Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*RouterConfig)
Option defines a function that configures a Router
func WithContext ¶
func WithContext(ctx *cli.Context) Option
WithContext sets the context for the server
func WithDatastore ¶
WithDatastore sets the datastore for the router
func WithRateLimit ¶
WithRateLimit sets the rate limiter for the router
func WithShutdownTimeout ¶
WithShutdownTimeout sets the graceful shutdown timeout
type RouterConfig ¶
type RouterConfig struct {
// contains filtered or unexported fields
}
RouterConfig holds all router configuration
Click to show internal directories.
Click to hide internal directories.