usecase

package
v0.0.0-...-d386c04 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateRequestScheduleInMessage

func ValidateRequestScheduleInMessage(prefix string, message *entities.Message) error

Types

type Request

type Request interface {
	Schedule(ctx context.Context, in *RequestScheduleIn) (*RequestScheduleOut, error)
}

type RequestScheduleIn

type RequestScheduleIn struct {
	Messages map[string]*entities.Message
}

func (*RequestScheduleIn) Validate

func (in *RequestScheduleIn) Validate() error

type RequestScheduleOut

type RequestScheduleOut struct {
	Success []string
	Error   map[string]error
}

type Scheduler

type Scheduler interface {
	Request() Request
}

func New

func New(
	conf *config.Config,
	logger logging.Logger,
	infra *infrastructure.Infrastructure,
	repositories repositories.Repositories,
) Scheduler

Jump to

Keyboard shortcuts

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