rpc

package
v0.0.0-...-a9119a5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0, Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PolyStringSep = "||"
	MultiPolySep  = "@@"
	GAUGETYPE     = "GAUGE"
	COUNTERTYPE   = "COUNTER"
)

Variables

This section is empty.

Functions

func PromeWork

func PromeWork(dataS []*cmodel.PromeMetaData)

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