Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BinaryName string Version string GitCommit string )
View Source
var ( TransferClientsLock *sync.RWMutex = new(sync.RWMutex) TransferClients map[string]*SingleConnRpcClient = map[string]*SingleConnRpcClient{} )
View Source
var (
ConfigFile string
)
Functions ¶
func ParseConfig ¶
func ParseConfig(cfg string)
func SendMetrics ¶
func SendMetrics(metrics []*model.MetricValue, resp *model.TransferResponse)
func VersionMsg ¶
func VersionMsg() string
Types ¶
type FromConfig ¶
type GlobalConfig ¶
type GlobalConfig struct { Debug bool `json:"debug"` Workers int `json:"workers"` Batch int `json:"batch"` Interval int64 `json:"batch_interval_ms"` MaxFiles uint64 `json:"max_filefds"` From *FromConfig `json:"from"` Transfer *TransferConfig `json:"transfer"` WhiteList *WhiteListConfig `json:"whitelist"` }
func Config ¶
func Config() *GlobalConfig
type SingleConnRpcClient ¶
type SingleConnRpcClient struct { sync.Mutex RpcServer string Timeout time.Duration // contains filtered or unexported fields }
func (*SingleConnRpcClient) Call ¶
func (this *SingleConnRpcClient) Call(method string, args interface{}, reply interface{}) error
type TransferConfig ¶
type WhiteListConfig ¶
Click to show internal directories.
Click to hide internal directories.