Documentation ¶
Index ¶
- func BytesToSize(sz int64) string
- func DiscoverMetrics(root string) (map[string]*MetricsId, error)
- func ReadInt32(buf []byte) (v int32)
- func ReadInt64(buf []byte) (v int64)
- func ReadSamples(path string) (data map[int64]int64, err error)
- func ReadUint16(buf []byte) (v uint16)
- func ReadUint32(buf []byte) (v uint32)
- func WriteInt32(buf []byte, v int32)
- func WriteInt64(buf []byte, v int64)
- func WriteMetricsId(id, outPath string, values map[string]string) error
- func WriteSamples(name, outPath string, samples []*Sample) error
- func WriteUint16(buf []byte, v uint16)
- func WriteUint32(buf []byte, v uint32)
- type CtrlHandler
- type CtrlListener
- type MetricsId
- type Sample
- type Sequence
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToSize ¶
func ReadUint16 ¶
func ReadUint32 ¶
func WriteInt32 ¶
func WriteInt64 ¶
func WriteSamples ¶
func WriteUint16 ¶
func WriteUint32 ¶
Types ¶
type CtrlListener ¶
type CtrlListener struct {
// contains filtered or unexported fields
}
func GetCtrlListener ¶
func GetCtrlListener(root, id string) (cl *CtrlListener, err error)
func (*CtrlListener) AddCallback ¶
func (self *CtrlListener) AddCallback(keyword string, f CtrlHandler)
func (*CtrlListener) Start ¶
func (self *CtrlListener) Start()
type MetricsId ¶
func ReadMetricsId ¶
Click to show internal directories.
Click to hide internal directories.