g

package
v0.0.0-...-c7cbe47 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

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 HttpConfig struct {
	Enabled bool   `json:"enabled"`
	Listen  string `json:"listen"`
}

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

type TransferConfig

type TransferConfig struct {
	Enabled  bool   `json:"enabled"`
	Addr     string `json:"addr"`
	Interval int    `json:"interval"`
	Timeout  int    `json:"timeout"`
}

Jump to

Keyboard shortcuts

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