runner

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger logx.Logger

Functions

func GetConf

func GetConf() configx.Conf

func GetLogger

func GetLogger() logx.Logger

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithConfX

func WithConfX(dir, configType, name string) Option

type Options

type Options struct {
	OptionsCtx context.Context
	ID         string
	Name       string
	Logger     logx.Logger
	Config     configx.Conf

	WatchConf int
	Addr      string
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(name, addr string) *Options

func (*Options) InitBase

func (o *Options) InitBase(ctx context.Context, once *sync.Once) error

func (*Options) InitConf

func (o *Options) InitConf(ctx context.Context, once *sync.Once) error

func (*Options) NewConf

func (o *Options) NewConf(ctx context.Context, opt Option) error

func (*Options) NewConfig

func (o *Options) NewConfig(dir, configType, name string) *Options

func (*Options) WithConfWatch

func (o *Options) WithConfWatch(ctx context.Context, once *sync.Once)

Jump to

Keyboard shortcuts

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