Documentation ¶
Index ¶
- Constants
- Variables
- func WithRecorder(recorder supbapis.Recorder) option
- type SupbManager
- func (r *SupbManager) Close() error
- func (r *SupbManager) Index() *supbindex.Index
- func (r *SupbManager) InitFlags(flags *pflag.FlagSet)
- func (r *SupbManager) InitViper(viper *viper.Viper)
- func (r *SupbManager) Initialize(opts ...option)
- func (r *SupbManager) Logs() *supblog.SupbLog
- func (r *SupbManager) Metrics() *supbmetric.SupbMetrics
- func (r *SupbManager) OptionConfig(opts ...option)
- func (r *SupbManager) RPC() *supbrpc.SupbRpc
- func (r *SupbManager) Res() *supbres.SupbResources
- func (r *SupbManager) StrategyGate() *supbstrategy.SupbStrategy
- func (r *SupbManager) Trace() *supbtrace.SupbTrace
- func (r *SupbManager) ViperConfig(viper *viper.Viper)
Constants ¶
View Source
const ( SupbResources = "resources" SupbRpc = "rpc" SupbSync = "sync" SupbRunner = "runner" SupbMetrics = "collector.metrics" SupbLog = "collector.logs" SupbTrace = "collector.trace" SupbStrategyGate = "strategy.gate" SupbIndex = "index" SupbSponge = "sponge" SupbInfoBase = "info.base" )
Variables ¶
View Source
var SupbModules = []string{SupbResources, SupbRpc, SupbSync, SupbRunner, SupbMetrics, SupbLog, SupbTrace, SupbStrategyGate, SupbIndex, SupbSponge, SupbInfoBase}
Functions ¶
func WithRecorder ¶
Types ¶
type SupbManager ¶
type SupbManager struct {
// contains filtered or unexported fields
}
func NewSupbManager ¶
func NewSupbManager(ctx context.Context, prefix string) *SupbManager
func (*SupbManager) Close ¶
func (r *SupbManager) Close() error
func (*SupbManager) Index ¶
func (r *SupbManager) Index() *supbindex.Index
func (*SupbManager) InitFlags ¶
func (r *SupbManager) InitFlags(flags *pflag.FlagSet)
func (*SupbManager) InitViper ¶
func (r *SupbManager) InitViper(viper *viper.Viper)
func (*SupbManager) Initialize ¶
func (r *SupbManager) Initialize(opts ...option)
func (*SupbManager) Logs ¶
func (r *SupbManager) Logs() *supblog.SupbLog
func (*SupbManager) Metrics ¶
func (r *SupbManager) Metrics() *supbmetric.SupbMetrics
func (*SupbManager) OptionConfig ¶
func (r *SupbManager) OptionConfig(opts ...option)
func (*SupbManager) RPC ¶
func (r *SupbManager) RPC() *supbrpc.SupbRpc
func (*SupbManager) Res ¶
func (r *SupbManager) Res() *supbres.SupbResources
func (*SupbManager) StrategyGate ¶
func (r *SupbManager) StrategyGate() *supbstrategy.SupbStrategy
func (*SupbManager) Trace ¶
func (r *SupbManager) Trace() *supbtrace.SupbTrace
func (*SupbManager) ViperConfig ¶
func (r *SupbManager) ViperConfig(viper *viper.Viper)
Click to show internal directories.
Click to hide internal directories.