Help us shape the future of Go! Take the 2026 Go Developer Survey

common

package module
v0.0.0-...-8e24885 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2017 License: Apache-2.0 Imports: 9 Imported by: 2

README

tugbot-common

CircleCI codecov Go Report Card

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorBuilder

type ErrorBuilder []string

func (*ErrorBuilder) Append

func (ec *ErrorBuilder) Append(e error)

func (*ErrorBuilder) ToError

func (ec *ErrorBuilder) ToError() error

type Publisher

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

func NewPublisher

func NewPublisher(urls []string) Publisher

func (Publisher) Publish

func (p Publisher) Publish(event interface{})

type Task

type Task struct {
	ID        string
	Name      string
	Job       func([]interface{}) error
	JobParams []interface{}
	Interval  time.Duration
}

type TaskManager

type TaskManager interface {
	RunNewRecurringTask(Task) bool
	StopAllTasks()
	Refresh(ids []string)
}

func NewTaskManager

func NewTaskManager() TaskManager

Jump to

Keyboard shortcuts

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