launcher

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2024 License: GPL-3.0 Imports: 23 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name    string `json:"name" json:"name"`
	Version string `json:"version" json:"version"`
	Node    int64  `json:"node" json:"node"`
}

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 New

func New(options ...Option) *Launcher

func (*Launcher) Run

func (l *Launcher) Run()

func (*Launcher) ScanConfig

func (l *Launcher) ScanConfig(v interface{}) error

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 WithConfigOptions(options ...config.Option) Option

func WithConfigValue added in v0.0.4

func WithConfigValue(value interface{}) Option

func WithConfigWatcher

func WithConfigWatcher(key string, observer config.Observer) Option

func WithGrpcServer

func WithGrpcServer(s func(configValue interface{}) *grpc.Server) Option

func WithHttpServer

func WithHttpServer(s func(configValue interface{}) *http.Server) Option

func WithKratosOptions

func WithKratosOptions(options ...kratos.Option) Option

func WithLogger added in v0.0.2

func WithLogger(logger log.Logger) Option

func WithShutdownHandler

func WithShutdownHandler(handler func()) Option

Directories

Path Synopsis
example
api
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL