util

package
v0.0.0-...-ca992e9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatTime

func FormatTime(durationInSeconds int64) string

Types

type Handler

type Handler interface {
	UnSub()
}

type Watcher

type Watcher interface {
	Has(topic string) bool

	Pub(topic string, args ...interface{})

	PubAs(topicValue ...interface{})

	PubTo(topicType reflect.Type, args ...interface{})

	Sub(topic string, function interface{}) Handler

	SubAs(function interface{}) Handler

	SubTo(topicType reflect.Type, function interface{}) Handler
}

func NewWatcher

func NewWatcher() Watcher

Jump to

Keyboard shortcuts

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