Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSetBiz = wire.NewSet( NewMsgBiz, NewConfigBiz, NewHeartbeatBiz, )
ProviderSetBiz is biz providers.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Receivers *sync.Map `json:"receivers"` Templates *sync.Map `json:"templates"` }
Config 配置数据
func (*Config) GetReceivers ¶
GetReceivers 获取接收人
type ConfigBiz ¶
type ConfigBiz struct {
// contains filtered or unexported fields
}
ConfigBiz 配置业务
func (*ConfigBiz) CacheConfig ¶
func (b *ConfigBiz) CacheConfig(ctx context.Context, params *bo.CacheConfigParams)
CacheConfig 缓存配置
type HeartbeatBiz ¶ added in v1.1.0
type HeartbeatBiz struct {
// contains filtered or unexported fields
}
HeartbeatBiz 心跳包业务对象
func NewHeartbeatBiz ¶ added in v1.1.0
func NewHeartbeatBiz(heartbeatRepository repository.Heartbeat) *HeartbeatBiz
NewHeartbeatBiz 创建心跳包业务对象
func (*HeartbeatBiz) Heartbeat ¶ added in v1.1.0
func (b *HeartbeatBiz) Heartbeat(ctx context.Context, in *api.HeartbeatRequest) error
Heartbeat 心跳包
Click to show internal directories.
Click to hide internal directories.