targets

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ITarget added in v0.4.3

type ITarget interface {
	Load() error
	Run() error
	Execute(
		m message.Message,
		appArgs map[string]interface{},
	) error
	Shutdown() error
}

func NewTarget

func NewTarget(
	cfg *config.Config,
	log *zap.Logger,
	targetCfg target.Target,
) (ITarget, error)

type ITargets added in v0.4.3

type ITargets map[string]ITarget

type Targets

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

func New

func New(
	cfg *config.Config,
	log *zap.Logger,
	targetCfgs []target.Target,
) (*Targets, error)

func (*Targets) Execute

func (ts *Targets) Execute(
	id string,
	m message.Message,
	appArgs map[string]interface{},
) error

func (*Targets) ExecuteAll

func (ts *Targets) ExecuteAll(
	m message.Message,
	appArgs map[string]interface{},
) (bool, map[string]error)

func (*Targets) LoadAll

func (ts *Targets) LoadAll() error

func (*Targets) RunAll

func (ts *Targets) RunAll() error

func (*Targets) ShutdownAll

func (ts *Targets) ShutdownAll() (bool, helpers.Errors)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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