microserver

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSetRPCConn = wire.NewSet(
	NewPalaceConn,
)

ProviderSetRPCConn wire set

Functions

This section is empty.

Types

type PalaceConn

type PalaceConn struct {
	// contains filtered or unexported fields
}

PalaceConn Palace服务连接

func NewPalaceConn

func NewPalaceConn(c *houyiconf.Bootstrap) (*PalaceConn, func(), error)

NewPalaceConn 创建一个palace rpc连接

func (*PalaceConn) Heartbeat added in v1.1.0

Heartbeat 向palace发送心跳

func (*PalaceConn) PushAlarm

func (l *PalaceConn) PushAlarm(ctx context.Context, in *api.AlarmItem, opts ...microserver.Option) (*api.HookReply, error)

PushAlarm 向palace推送告警数据

func (*PalaceConn) PushMetric

PushMetric 向palace推送指标数据

Jump to

Keyboard shortcuts

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