task

package
v1.39.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Config config.Config
	Logger hclog.Logger
}

func DefaultConfig

func DefaultConfig() *Config

type Line

type Line struct {
	Pos     int64
	Time    int64
	Message string
}

type Log

type Log struct {
	Line  *chanx.UnboundedChan[*Line]
	Width int
}

type Task

type Task interface {
	Init(context.Context, int) error
	Deinit(context.Context) error
	Run(context.Context, string, []string, []string) error
	Tail(ctx context.Context) Log
}

func New

func New(_ context.Context, cfg *Config) Task

Jump to

Keyboard shortcuts

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