supblog

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

Documentation

Index

Constants

View Source
const (
	MaxLen = 301

	LogsPushOff = "off"
)

Variables

This section is empty.

Functions

func WithRPC

func WithRPC(rpc nervous.Controller) option

Types

type SupbLog

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

func NewSupbLog

func NewSupbLog(ctx context.Context, prefix string) *SupbLog

func (*SupbLog) AddGuid

func (r *SupbLog) AddGuid(guid string)

func (*SupbLog) Close

func (r *SupbLog) Close() error

func (*SupbLog) DeleteGuid

func (r *SupbLog) DeleteGuid(guid string)

func (*SupbLog) GetLogLatest

func (r *SupbLog) GetLogLatest(guid string, ct int) ([]*supblog.ContainerLogRes, error)

func (*SupbLog) GetLogStatistic

func (r *SupbLog) GetLogStatistic(guid string) (map[string]map[string]int64, error)

func (*SupbLog) GetLogWithFilter

func (r *SupbLog) GetLogWithFilter(guid string, ct int, filter map[string]string) ([]*supblog.ContainerLogRes, error)

func (*SupbLog) InitFlags

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

func (*SupbLog) InitViper

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

func (*SupbLog) Initialize

func (r *SupbLog) Initialize(opts ...option)

func (*SupbLog) IsMonitor

func (r *SupbLog) IsMonitor(guid string) bool

func (*SupbLog) LogLevels

func (r *SupbLog) LogLevels() []string

func (*SupbLog) OptionConfig

func (r *SupbLog) OptionConfig(opts ...option)

func (*SupbLog) ViperConfig

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