clock

package
v0.0.0-...-e8b44b0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClockNotFound = errors.New("Clock: not found")

Functions

func Create

func Create(cid string) string

Create a new clock. If cid is left empty, a random identifier is chosen. Returns the cid of the created clock.

Types

type Clock

type Clock struct {
	Cid    string
	Create time.Time
}

func Get

func Get(cid string) (*Clock, error)

Get a clock with the corresponding clock identifier. The returned pointer will be nil if the clock does not exist

Jump to

Keyboard shortcuts

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