tasklog

package
v0.0.0-...-7ad7084 Latest Latest
Warning

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

Go to latest
Published: May 12, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexerTask = "Indexer"
	ManagerTask = "Manager"
)

Variables

This section is empty.

Functions

func Error

func Error(err error)

func ErrorF

func ErrorF(format string, v ...interface{})

func RegisterHandler

func RegisterHandler(taskName string, handler TaskHandler)

func Status

func Status(taskName string, running bool, pos int, total int, messages ...string)

func StatusMessage

func StatusMessage(taskName string, messages ...string)

Types

type Task

type Task struct {
	Name     string
	Pos      int
	Total    int
	Messages []string
	Running  bool
}

type TaskHandler

type TaskHandler func(status Task)

Jump to

Keyboard shortcuts

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