Documentation ¶
Index ¶
- Constants
- func WithRPC(rpc nervous.Controller) option
- type SupbLog
- func (r *SupbLog) AddGuid(guid string)
- func (r *SupbLog) Close() error
- func (r *SupbLog) DeleteGuid(guid string)
- func (r *SupbLog) GetLogLatest(guid string, ct int) ([]*supblog.ContainerLogRes, error)
- func (r *SupbLog) GetLogStatistic(guid string) (map[string]map[string]int64, error)
- func (r *SupbLog) GetLogWithFilter(guid string, ct int, filter map[string]string) ([]*supblog.ContainerLogRes, error)
- func (r *SupbLog) InitFlags(flags *pflag.FlagSet)
- func (r *SupbLog) InitViper(viper *viper.Viper)
- func (r *SupbLog) Initialize(opts ...option)
- func (r *SupbLog) IsMonitor(guid string) bool
- func (r *SupbLog) LogLevels() []string
- func (r *SupbLog) OptionConfig(opts ...option)
- func (r *SupbLog) ViperConfig(viper *viper.Viper)
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 (*SupbLog) DeleteGuid ¶
func (*SupbLog) GetLogLatest ¶
func (*SupbLog) GetLogStatistic ¶
func (*SupbLog) GetLogWithFilter ¶
func (*SupbLog) Initialize ¶
func (r *SupbLog) Initialize(opts ...option)
func (*SupbLog) OptionConfig ¶
func (r *SupbLog) OptionConfig(opts ...option)
func (*SupbLog) ViperConfig ¶
Click to show internal directories.
Click to hide internal directories.