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

Documentation

Index

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

Functions

func WithRecorder

func WithRecorder(recorder supbapis.Recorder) option

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)

Jump to

Keyboard shortcuts

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