rpc

package
v4.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PushData

func PushData(args []*dataobj.MetricValue) (int, string)

func Start

func Start()

Types

type Server

type Server int

func (*Server) GetApiCollectBy

func (*Server) GetApiCollectBy(key string, resp *models.ApiCollectRpcResp) error

func (*Server) GetCollectBy

func (*Server) GetCollectBy(endpoint string, resp *string) error

func (*Server) GetProberCollectBy

func (*Server) GetProberCollectBy(endpoint string, resp *models.CollectRuleRpcResp) error

func (*Server) GetTaskMeta

func (*Server) GetTaskMeta(id int64, resp *dataobj.TaskMetaResponse) error

GetTaskMeta 获取任务元信息,自带缓存

func (*Server) HWsGet

func (*Server) HWsGet(key string, resp *models.NetworkHardwareRpcResp) error

func (*Server) HWsPut

func (*Server) HWsPut(hws []*models.NetworkHardware, resp *string) error

func (*Server) HeartBeat

func (*Server) HeartBeat(rev models.Instance, output *string) error

func (*Server) HostRegister

func (*Server) HostRegister(host models.HostRegisterForm, output *string) error

func (*Server) InstanceGets

func (*Server) InstanceGets(mod string, instancesResp *models.InstancesResp) error

func (*Server) Ping

func (*Server) Ping(input string, output *string) error

Ping return string 'pong', just for test

func (*Server) Push

func (t *Server) Push(args []*dataobj.MetricValue, reply *dataobj.TransferResp) error

func (*Server) Query

func (t *Server) Query(args []dataobj.QueryData, reply *dataobj.QueryDataResp) error

func (*Server) Report

func (*Server) Send

func (*Server) Send(items []*dataobj.JudgeItem, resp *dataobj.SimpleRpcResponse) error

func (*Server) SnmpCollectsGet

func (*Server) SnmpCollectsGet(key string, resp *string) error

Jump to

Keyboard shortcuts

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