hoge

package module
v0.0.0-...-7f0ef27 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2019 License: MIT Imports: 10 Imported by: 0

README

hoge

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Level level.Checker `json:"level" yaml:"level"`

	DisableCaller bool `json:"disableCaller" yaml:"disableCaller"`

	FlowControl *FlowCtrlCfg `json:"flowControl" yaml:"flowControl"`

	OutputExporters []ExporterConfig `json:"output" yaml:"output"`
}

func (Config) Build

func (cfg Config) Build(opts ...Option) (*Logger, error)

type ExporterConfig

type ExporterConfig struct {
	Mode string `json:"mode" yaml:"mode"`
	Path string `json:"path" yaml:"path"`
}

type FlowCtrlCfg

type FlowCtrlCfg struct {
	Period    time.Duration `json:"period" yaml:"period"`
	Threshold int           `json:"threshold" yaml:"threshold"`
	OverFreq  int           `json:"frequency" yaml:"frequency"`
}

type Logger

type Logger struct {
	level.Enabler
	// contains filtered or unexported fields
}

func (*Logger) Debug

func (logger *Logger) Debug(args ...interface{})

func (*Logger) Error

func (logger *Logger) Error(args ...interface{})

func (*Logger) Info

func (logger *Logger) Info(args ...interface{})

func (*Logger) Trace

func (logger *Logger) Trace(args ...interface{})

func (*Logger) Warn

func (logger *Logger) Warn(args ...interface{})

type Option

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

Directories

Path Synopsis
+build linux
+build linux

Jump to

Keyboard shortcuts

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