sergeant

package
v0.0.0-...-908cc04 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runnable

type Runnable interface {
	ID() string
	Name() string
	Run(ctx context.Context, l *zap.Logger) error
}

type Sergeant

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

func NewSergeant

func NewSergeant(logger *zap.Logger, runnables ...Runnable) *Sergeant

func (*Sergeant) AddRunnable

func (s *Sergeant) AddRunnable(runnable Runnable)

func (*Sergeant) Start

func (s *Sergeant) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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