Documentation ¶
Index ¶
- Variables
- type AlertService
- type GreeterService
- type HealthService
- type MetricService
- func (s *MetricService) Query(ctx context.Context, req *metadataapi.QueryRequest) (*metadataapi.QueryReply, error)
- func (s *MetricService) SyncMetadata(ctx context.Context, req *metadataapi.SyncMetadataRequest) (*metadataapi.SyncMetadataReply, error)
- func (s *MetricService) SyncMetadataV2(ctx context.Context, req *metadataapi.SyncMetadataV2Request) (*metadataapi.SyncMetadataV2Reply, error)
- type StrategyService
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSetService = wire.NewSet( NewGreeterService, NewMetricService, NewHealthService, NewStrategyService, NewAlertService, )
ProviderSetService is service providers.
Functions ¶
This section is empty.
Types ¶
type AlertService ¶
type AlertService struct { alertapi.UnimplementedPushAlertServer api.UnimplementedAlertServer // contains filtered or unexported fields }
AlertService 告警服务
func NewAlertService ¶
func NewAlertService(alertBiz *biz.AlertBiz, strategyBiz *biz.StrategyBiz) *AlertService
NewAlertService 创建告警服务
func (*AlertService) Alarm ¶
func (s *AlertService) Alarm(ctx context.Context, req *alertapi.AlarmRequest) (*alertapi.AlarmReply, error)
Alarm 告警
func (*AlertService) InnerAlarm ¶
InnerAlarm 内部告警
type GreeterService ¶
type GreeterService struct { v1.UnimplementedGreeterServer // contains filtered or unexported fields }
GreeterService is a greeter service.
func NewGreeterService ¶
func NewGreeterService(uc *biz.GreeterUsecase) *GreeterService
NewGreeterService new a greeter service.
func (*GreeterService) SayHello ¶
func (s *GreeterService) SayHello(ctx context.Context, in *v1.HelloRequest) (*v1.HelloReply, error)
SayHello implements helloworld.GreeterServer.
type HealthService ¶
type HealthService struct {
api.UnimplementedHealthServer
}
HealthService 健康检查
func (*HealthService) Check ¶
func (s *HealthService) Check(ctx context.Context, req *api.CheckRequest) (*api.CheckReply, error)
Check 检查
type MetricService ¶
type MetricService struct { metadataapi.UnimplementedMetricServer // contains filtered or unexported fields }
MetricService 指标服务
func NewMetricService ¶
func NewMetricService(metricBiz *biz.MetricBiz) *MetricService
NewMetricService 创建指标服务
func (*MetricService) Query ¶
func (s *MetricService) Query(ctx context.Context, req *metadataapi.QueryRequest) (*metadataapi.QueryReply, error)
Query query metric data
func (*MetricService) SyncMetadata ¶
func (s *MetricService) SyncMetadata(ctx context.Context, req *metadataapi.SyncMetadataRequest) (*metadataapi.SyncMetadataReply, error)
SyncMetadata sync metric data
func (*MetricService) SyncMetadataV2 ¶
func (s *MetricService) SyncMetadataV2(ctx context.Context, req *metadataapi.SyncMetadataV2Request) (*metadataapi.SyncMetadataV2Reply, error)
SyncMetadataV2 sync metric data
type StrategyService ¶
type StrategyService struct { strategyapi.UnimplementedStrategyServer // contains filtered or unexported fields }
StrategyService 策略服务
func NewStrategyService ¶
func NewStrategyService(strategyBiz *biz.StrategyBiz) *StrategyService
NewStrategyService 创建策略服务
func (*StrategyService) PushStrategy ¶
func (s *StrategyService) PushStrategy(ctx context.Context, req *strategyapi.PushStrategyRequest) (*strategyapi.PushStrategyReply, error)
PushStrategy 推送策略
Source Files ¶
Click to show internal directories.
Click to hide internal directories.