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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateForwarderSendInRequest

func ValidateForwarderSendInRequest(prefix string, item *entities.Request) error

Types

type Dispatcher

type Dispatcher interface {
	Forwarder() Forwarder
}

func New

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

type Forwarder

type Forwarder interface {
	Send(ctx context.Context, in *ForwarderSendIn) (*ForwarderSendOut, error)
}

type ForwarderSendIn

type ForwarderSendIn struct {
	Concurrency int
	Requests    map[string]*entities.Request
}

func (*ForwarderSendIn) Validate

func (in *ForwarderSendIn) Validate() error

type ForwarderSendOut

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

Jump to

Keyboard shortcuts

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