modules

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Webserver     = "webapis"
	NervousServer = "nervousapis"
)

Variables

Functions

func WithIndex

func WithIndex(index *supbindex.Index) option

func WithRPC

func WithRPC(rpc nervous.Controller) option

func WithStrategyClr

func WithStrategyClr(strategyClr *supbstrategy.SupbStrategy) option

func WithSupbLogsClr

func WithSupbLogsClr(logsClr *supblog.SupbLog) option

func WithSupbMetricsClr

func WithSupbMetricsClr(metricsClr *supbmetric.SupbMetrics) option

func WithSupbResMgr

func WithSupbResMgr(resources *supbres.SupbResources) option

func WithTrace

func WithTrace(trace *supbtrace.SupbTrace) option

Types

type ModuleFactory

type ModuleFactory struct {
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory(ctx context.Context, prefix string) *ModuleFactory

func (*ModuleFactory) Close

func (r *ModuleFactory) Close() error

func (*ModuleFactory) InitFlags

func (r *ModuleFactory) InitFlags(flags *pflag.FlagSet)

func (*ModuleFactory) InitViper

func (r *ModuleFactory) InitViper(viper *viper.Viper)

func (*ModuleFactory) Initialize

func (r *ModuleFactory) Initialize(opts ...option)

func (*ModuleFactory) OptionConfig

func (r *ModuleFactory) OptionConfig(opts ...option)

func (*ModuleFactory) Run

func (r *ModuleFactory) Run()

func (*ModuleFactory) ViperConfig

func (r *ModuleFactory) ViperConfig(viper *viper.Viper)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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