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 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartRpc

func StartRpc()

Types

type PolyRequest

type PolyRequest struct {
	PolyName string      `json:"poly_name"`
	Value    interface{} `json:"value"`
}

type Polymetric

type Polymetric int

func (*Polymetric) Ping

func (*Polymetric) Update

func (t *Polymetric) Update(args []*cmodel.PolyRequest, reply *PolymetricResp) error

type PolymetricResp

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

func (*PolymetricResp) String

func (t *PolymetricResp) String() string

Jump to

Keyboard shortcuts

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