Documentation ¶
Index ¶
- type App
- type ComponentsLauncher
- type Launcher
- type Option
- func WithAfterConfigInitHandler(handler func()) Option
- func WithAfterServerStartHandler(handler func()) Option
- func WithBeforeConfigInitHandler(handler func()) Option
- func WithBeforeServerStartHandler(handler func()) Option
- func WithConfigOptions(options ...config.Option) Option
- func WithConfigValue(value interface{}) Option
- func WithConfigWatcher(key string, observer config.Observer) Option
- func WithGrpcServer(s func(configValue interface{}) *grpc.Server) Option
- func WithHttpServer(s func(configValue interface{}) *http.Server) Option
- func WithKratosOptions(options ...kratos.Option) Option
- func WithLogger(logger log.Logger) Option
- func WithShutdownHandler(handler func()) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentsLauncher ¶
type ComponentsLauncher struct {
// contains filtered or unexported fields
}
func NewComponentsLauncher ¶
func NewComponentsLauncher(config config.Config) *ComponentsLauncher
func (*ComponentsLauncher) Launch ¶
func (l *ComponentsLauncher) Launch()
type Launcher ¶
type Launcher struct {
// contains filtered or unexported fields
}
func (*Launcher) ScanConfig ¶
type Option ¶
type Option func(*Launcher)
func WithAfterConfigInitHandler ¶
func WithAfterConfigInitHandler(handler func()) Option
func WithAfterServerStartHandler ¶
func WithAfterServerStartHandler(handler func()) Option
func WithBeforeConfigInitHandler ¶
func WithBeforeConfigInitHandler(handler func()) Option
func WithBeforeServerStartHandler ¶
func WithBeforeServerStartHandler(handler func()) Option
func WithConfigOptions ¶
func WithConfigValue ¶ added in v0.0.4
func WithConfigValue(value interface{}) Option
func WithGrpcServer ¶
func WithHttpServer ¶
func WithKratosOptions ¶
func WithKratosOptions(options ...kratos.Option) Option
func WithLogger ¶ added in v0.0.2
func WithShutdownHandler ¶
func WithShutdownHandler(handler func()) Option
Click to show internal directories.
Click to hide internal directories.