biz

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSetBiz = wire.NewSet(NewPingBiz, NewAlarmBiz)

ProviderSetBiz is biz providers.

Functions

This section is empty.

Types

type AlarmBiz

type AlarmBiz struct {
	// contains filtered or unexported fields
}

func NewAlarmBiz

func NewAlarmBiz(alarmRepo repository.AlarmRepo, logger log.Logger) *AlarmBiz

func (*AlarmBiz) SendAlarm

func (b *AlarmBiz) SendAlarm(alarm ...*strategy.Alarm) error

SendAlarm send alarm

type PingBiz

type PingBiz struct {
	// contains filtered or unexported fields
}

PingBiz is a Ping useCase.

func NewPingBiz

func NewPingBiz(repo repository.PingRepo, logger log.Logger) *PingBiz

NewPingBiz new a Ping useCase.

func (*PingBiz) Ping

func (l *PingBiz) Ping(ctx context.Context, g *bo.Ping) (*bo.Ping, error)

Ping creates a Ping, and returns the new Ping.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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