service

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 12 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

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

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 NewHookService

func NewHookService(msgBiz *biz.MsgBiz) *HookService

NewHookService 创建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

SendMsg 发送消息

Jump to

Keyboard shortcuts

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