rpc

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0, Apache-2.0 Imports: 12 Imported by: 62

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecvMetricValues

func RecvMetricValues(args []*cmodel.MetricValue, reply *cmodel.TransferResponse, from string) error

process new metric values

func StartRpc

func StartRpc()

Types

type Transfer

type Transfer int

func (*Transfer) Ping

func (*Transfer) Update

func (t *Transfer) Update(args []*cmodel.MetricValue, reply *cmodel.TransferResponse) error

type TransferResp

type TransferResp struct {
	Msg        string
	Total      int
	ErrInvalid int
	Latency    int64
}

func (*TransferResp) String

func (t *TransferResp) String() string

Jump to

Keyboard shortcuts

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