rpc

package
Version: v0.0.0-...-4fdcf46 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL