junk

package
v0.0.0-...-d30abd5 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

README

package junk

import "github.com/zeebo/rothko/internal/junk"

package junk is a drop spot for things with no home.

Usage

func Launch
func Launch(ctx context.Context, tasks ...func(context.Context) error) error
func WithSignal
func WithSignal(ctx context.Context, sigs ...os.Signal) (
	context.Context, func())
type Flag
type Flag struct {
}
func (*Flag) Start
func (f *Flag) Start() error
func (*Flag) Stop
func (f *Flag) Stop()
type Launcher
type Launcher struct {
}
func (*Launcher) Queue
func (l *Launcher) Queue(fn func(ctx context.Context) error)
func (*Launcher) Run
func (l *Launcher) Run(ctx context.Context) error
type Tabbed
type Tabbed struct {
}
func NewTabbed
func NewTabbed(w io.Writer) *Tabbed
func (*Tabbed) Error
func (t *Tabbed) Error() error
func (*Tabbed) Flush
func (t *Tabbed) Flush()
func (*Tabbed) Write
func (t *Tabbed) Write(values ...string)

Documentation

Overview

package junk is a drop spot for things with no home.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Launch

func Launch(ctx context.Context, tasks ...func(context.Context) error) error

func WithSignal

func WithSignal(ctx context.Context, sigs ...os.Signal) (
	context.Context, func())

Types

type Flag

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

func (*Flag) Start

func (f *Flag) Start() error

func (*Flag) Stop

func (f *Flag) Stop()

type Launcher

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

func (*Launcher) Queue

func (l *Launcher) Queue(fn func(ctx context.Context) error)

func (*Launcher) Run

func (l *Launcher) Run(ctx context.Context) error

type Tabbed

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

func NewTabbed

func NewTabbed(w io.Writer) *Tabbed

func (*Tabbed) Error

func (t *Tabbed) Error() error

func (*Tabbed) Flush

func (t *Tabbed) Flush()

func (*Tabbed) Write

func (t *Tabbed) Write(values ...string)

Jump to

Keyboard shortcuts

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