Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatasourceMetric ¶
type DatasourceMetric interface { // GetMetadata 同步指标元数据 GetMetadata(ctx context.Context, datasourceInfo *bizmodel.Datasource) ([]*bizmodel.DatasourceMetric, error) // InitiateSyncRequest 发起同步请求 InitiateSyncRequest(ctx context.Context, datasourceInfo *bizmodel.Datasource) error // Query 查询指标数据 Query(ctx context.Context, req *bo.DatasourceQueryParams) ([]*bo.MetricQueryData, error) }
DatasourceMetric .
type ServerRegister ¶ added in v1.1.0
type ServerRegister interface { // Heartbeat 心跳 Heartbeat(context.Context, *api.HeartbeatRequest) error // GetServerList 获取服务列表 GetServerList(context.Context, *api.GetServerListRequest) (*api.GetServerListReply, error) }
ServerRegister 子服务注册方法
type Strategy ¶
type Strategy interface { // Push 推送策略 Push(ctx context.Context, strategies *strategyapi.PushStrategyRequest) error }
Strategy 微服务策略推送
Click to show internal directories.
Click to hide internal directories.