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 Option ¶
type Option struct { RPCOpts []grpc.CallOption HTTPOpts []http.CallOption }
Option grpc/http option
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) PushAlarm ¶
func (l *PalaceConn) PushAlarm(ctx context.Context, in *api.AlarmItem, opts ...Option) (*api.HookReply, error)
PushAlarm 向palace推送告警数据
func (*PalaceConn) PushMetric ¶
func (l *PalaceConn) PushMetric(ctx context.Context, in *datasourceapi.SyncMetricRequest, opts ...Option) (*datasourceapi.SyncMetricReply, error)
PushMetric 向palace推送指标数据
Click to show internal directories.
Click to hide internal directories.