Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSetService = wire.NewSet( NewConfigService, NewHookService, NewHealthService, )
ProviderSetService is service providers.
Functions ¶
This section is empty.
Types ¶
type ConfigService ¶
type ConfigService struct { pushapi.UnimplementedConfigServer // contains filtered or unexported fields }
ConfigService 配置服务
func NewConfigService ¶
func NewConfigService(configBiz *biz.ConfigBiz) *ConfigService
NewConfigService 创建配置服务
func (*ConfigService) LoadNotifyObject ¶
func (s *ConfigService) LoadNotifyObject(ctx context.Context) error
LoadNotifyObject 加载配置
func (*ConfigService) NotifyObject ¶
func (s *ConfigService) NotifyObject(ctx context.Context, req *pushapi.NotifyObjectRequest) (*pushapi.NotifyObjectReply, error)
NotifyObject 配置模板同步
type HealthService ¶ added in v1.1.0
type HealthService struct { api.UnimplementedHealthServer // contains filtered or unexported fields }
HealthService 健康检查
func NewHealthService ¶ added in v1.1.0
func NewHealthService(heartbeatBiz *biz.HeartbeatBiz) *HealthService
NewHealthService 创建健康检查服务
func (*HealthService) Check ¶ added in v1.1.0
func (s *HealthService) Check(ctx context.Context, req *api.CheckRequest) (*api.CheckReply, error)
Check 检查
func (*HealthService) Heartbeat ¶ added in v1.1.0
func (s *HealthService) Heartbeat(ctx context.Context, in *api.HeartbeatRequest) error
type HookService ¶
type HookService struct { hookapi.UnimplementedHookServer // contains filtered or unexported fields }
HookService hook服务
func (*HookService) HookSendMsgHTTPHandler ¶
func (s *HookService) HookSendMsgHTTPHandler() func(ctx http.Context) error
HookSendMsgHTTPHandler hook发送消息http handler
func (*HookService) Send ¶ added in v1.1.0
func (s *HookService) Send(ctx context.Context, req *bo.SendMsgParams) error
func (*HookService) SendMsg ¶
func (s *HookService) SendMsg(ctx context.Context, req *hookapi.SendMsgRequest) (*hookapi.SendMsgReply, error)
SendMsg 发送消息
Click to show internal directories.
Click to hide internal directories.