Documentation ¶
Index ¶
Constants ¶
View Source
const (
VERSION = "0.0.1"
)
Variables ¶
View Source
var (
ConfigFile string
)
Functions ¶
func InitRpcClients ¶
func InitRpcClients()
func ParseConfig ¶
func ParseConfig(cfg string)
func SendToTransfer ¶
func SendToTransfer(metrics []*model.MetricValue) error
Types ¶
type GlobalConfig ¶
type GlobalConfig struct { Debug bool `json:"debug"` Transfer *TransferConfig `json:"transfer"` Http *HttpConfig `json:"http"` AttachTags string `json:"attachTags"` }
func Config ¶
func Config() *GlobalConfig
type HttpConfig ¶
type SingleConnRpcClient ¶
type SingleConnRpcClient struct { sync.Mutex RpcServer string Timeout time.Duration // contains filtered or unexported fields }
var (
TransferClient *SingleConnRpcClient
)
func (*SingleConnRpcClient) Call ¶
func (this *SingleConnRpcClient) Call(method string, args interface{}, reply interface{}) error
Click to show internal directories.
Click to hide internal directories.