Documentation ¶
Overview ¶
Package starter provides server startup and shutdown flow control
Package starter provides server startup and shutdown flow control
Index ¶
- type Option
- func WithConfig(cfg *config.Servers) Option
- func WithGQL(opts func(cfg *config.Server) []server.Option) Option
- func WithGRPC(opts func(cfg *config.Server) []server.Option) Option
- func WithPreStartFunc(name string, f func() error) Option
- func WithPreStopFunc(name string, f func() error) Option
- func WithREST(opts func(cfg *config.Server) []server.Option) Option
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*srvs)
func WithConfig ¶
func WithPreStartFunc ¶
func WithPreStopFunc ¶
Click to show internal directories.
Click to hide internal directories.