service

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 23 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

ProviderSetService is service providers.

Functions

This section is empty.

Types

type AlertService

type AlertService struct {
	api.UnimplementedAlertServer
	// contains filtered or unexported fields
}

AlertService alert service

func NewAlertService

func NewAlertService(alertBiz *biz.AlarmBiz, strategyBiz *biz.StrategyBiz) *AlertService

NewAlertService 创建告警服务

func (*AlertService) Hook

func (s *AlertService) Hook(ctx context.Context, req *api.AlarmItem) (*api.HookReply, error)

Hook 告警hook

func (*AlertService) InnerAlarm

func (s *AlertService) InnerAlarm(ctx context.Context, req *bo.Strategy) (*bo.Alarm, error)

InnerAlarm 内部告警

func (*AlertService) PushStrategy

func (s *AlertService) PushStrategy(ctx context.Context, strategies []*bo.Strategy) error

PushStrategy 推送策略

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
	// contains filtered or unexported fields
}

HealthService 健康检查

func NewHealthService

func NewHealthService(houyiSrv *microserver.HouYiConn) *HealthService

NewHealthService 创建健康检查服务

func (*HealthService) Check

func (s *HealthService) Check(ctx context.Context, req *api.CheckRequest) (*api.CheckReply, error)

Check 检查

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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