nervous_apis

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(ctx context.Context, prefix string) model.Module

func WithRPC

func WithRPC(rpc nervous.Controller) model.Option

func WithSupbIndex

func WithSupbIndex(index *supbindex.Index) model.Option

func WithSupbLogClr

func WithSupbLogClr(logClr *supblog.SupbLog) model.Option

func WithSupbMetricsClr

func WithSupbMetricsClr(metricsClr *supbmetric.SupbMetrics) model.Option

func WithSupbResMgr

func WithSupbResMgr(resources *supbres.SupbResources) model.Option

func WithSupbStrategyClr

func WithSupbStrategyClr(strategyClr *supbstrategy.SupbStrategy) model.Option

func WithTrace

func WithTrace(trace *supbtrace.SupbTrace) model.Option

Types

type NervousServer

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

func (*NervousServer) Close

func (r *NervousServer) Close() error

func (*NervousServer) InitFlags

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

func (*NervousServer) InitViper

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

func (*NervousServer) Initialize

func (r *NervousServer) Initialize(opts ...model.Option)

func (*NervousServer) OptionConfig

func (r *NervousServer) OptionConfig(opts ...model.Option)

func (*NervousServer) Run

func (r *NervousServer) Run()

func (*NervousServer) ViperConfig

func (r *NervousServer) 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