Documentation ¶
Index ¶
- Constants
- Variables
- func NewCachedListGenerator(generator func() ([]string, error), expires int) (cachedGenerator func() ([]string, error))
- func NewListFromArgGenerator(source string) (f func() ([]string, error))
- func NewListFromCommandGenerator(command string, args ...string) (f func() ([]string, error))
- func NewListFromFileGenerator(filename string) (f func() ([]string, error))
- func NewListGenerator(list []string) (f func() ([]string, error))
- func ReadConfig(filename string) (configAgents []agent, err error)
- type Agent
- type Cache
Constants ¶
View Source
const ( DefaultTimeout = 60 DefaultAddress = "127.0.0.1:10052" Debug = 0 Info = 1 Error = 2 DefaultLogLevel = Info )
Variables ¶
View Source
var LogLabel = []string{"DEBUG", "INFO", "ERROR"}
Functions ¶
func NewCachedListGenerator ¶
func NewListFromArgGenerator ¶
func NewListGenerator ¶
func ReadConfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.