scripttask

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScriptTask

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

func NewScriptTask

func NewScriptTask(
	id string,
	onStart func(context.Context) error,
	onStop func(context.Context) error,
) *ScriptTask

func (*ScriptTask) Identifier

func (s *ScriptTask) Identifier() string

func (*ScriptTask) IsStarted

func (s *ScriptTask) IsStarted() bool

func (*ScriptTask) IsStopped

func (s *ScriptTask) IsStopped() bool

func (*ScriptTask) Start

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

func (*ScriptTask) Started

func (s *ScriptTask) Started() <-chan struct{}

func (*ScriptTask) Stop

func (s *ScriptTask) Stop(ctx context.Context) error

func (*ScriptTask) Stopped

func (s *ScriptTask) Stopped() <-chan struct{}

Jump to

Keyboard shortcuts

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