events

package
v0.0.0-...-aa28848 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Event) Bin

func (e *Event) Bin() string

func (*Event) Done

func (e *Event) Done()

func (*Event) Duration

func (e *Event) Duration() time.Duration

func (*Event) DurationReadable

func (e *Event) DurationReadable() string

func (*Event) Filename

func (e *Event) Filename() string

func (*Event) IsDone

func (e *Event) IsDone() bool

func (*Event) Source

func (e *Event) Source() string

func (*Event) StartTime

func (e *Event) StartTime() time.Time

func (*Event) Status

func (e *Event) Status() int

func (*Event) Tags

func (e *Event) Tags() []string

func (*Event) Text

func (e *Event) Text() string

func (*Event) Update

func (e *Event) Update(text string, status int)

type Events

type Events struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func Init

func Init() Events

func (*Events) GetAllEvents

func (s *Events) GetAllEvents(offset int, limit int) []Event

func (*Events) GetEventsByTags

func (s *Events) GetEventsByTags(tags []string, offset int, limit int) []Event

func (*Events) GetEventsInProgress

func (s *Events) GetEventsInProgress(offset int, limit int) []Event

func (*Events) New

func (s *Events) New(source string, tags []string, bin string, filename string) *Event

Jump to

Keyboard shortcuts

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