Documentation ¶
Index ¶
- Constants
- Variables
- func WithIndex(index *supbindex.Index) option
- func WithRPC(rpc nervous.Controller) option
- func WithStrategyClr(strategyClr *supbstrategy.SupbStrategy) option
- func WithSupbLogsClr(logsClr *supblog.SupbLog) option
- func WithSupbMetricsClr(metricsClr *supbmetric.SupbMetrics) option
- func WithSupbResMgr(resources *supbres.SupbResources) option
- func WithTrace(trace *supbtrace.SupbTrace) option
- type ModuleFactory
- func (r *ModuleFactory) Close() error
- func (r *ModuleFactory) InitFlags(flags *pflag.FlagSet)
- func (r *ModuleFactory) InitViper(viper *viper.Viper)
- func (r *ModuleFactory) Initialize(opts ...option)
- func (r *ModuleFactory) OptionConfig(opts ...option)
- func (r *ModuleFactory) Run()
- func (r *ModuleFactory) ViperConfig(viper *viper.Viper)
Constants ¶
View Source
const ( Webserver = "webapis" NervousServer = "nervousapis" )
Variables ¶
View Source
var Modules = map[string]func(ctx context.Context, prefix string) model.Module{ Webserver: web_apis.NewServer, NervousServer: nervous_apis.NewServer, }
Functions ¶
func WithRPC ¶
func WithRPC(rpc nervous.Controller) option
func WithStrategyClr ¶
func WithStrategyClr(strategyClr *supbstrategy.SupbStrategy) option
func WithSupbLogsClr ¶
func WithSupbMetricsClr ¶
func WithSupbMetricsClr(metricsClr *supbmetric.SupbMetrics) option
func WithSupbResMgr ¶
func WithSupbResMgr(resources *supbres.SupbResources) 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)
Click to show internal directories.
Click to hide internal directories.