abstraction

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package abstraction must contain only interfaces and abstract layers of modules

Package abstraction must contain only interfaces and abstract layers of modules

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdConnection added in v0.4.1

type CmdConnection interface {
	Prepare(context.Context, *config.Task) error
	Connect() error
	Execute() ([]byte, error)
	Disconnect() error
}

type Event added in v0.4.1

type Event interface {
	BuildTickChannel() <-chan any
}

Event is an object that can be executed using a execute method and stopped using cancel method

type Executable

type Executable interface {
	Execute(context.Context) error
	SetDoneHooks([]Executable)
	SetFailHooks([]Executable)
	Cancel()
}

Executable is an object that can be executed using a execute method and stopped using cancel method

type Validatable

type Validatable interface {
	Validate(log *logrus.Entry) error
}

Jump to

Keyboard shortcuts

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