types

package
v0.0.0-...-76dc376 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2015 License: Apache-2.0 Imports: 2 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Enablable

type Enablable interface {
	Enable() error
	Disable() error
}

Enablable is something that can be Enable() or Disable()

type JSONDuration

type JSONDuration time.Duration

JSONDuration is an alias for time.Duration with a custom serialization

func (JSONDuration) MarshalJSON

func (d JSONDuration) MarshalJSON() ([]byte, error)

MarshalJSON does the JSON serialization for JSONDuration

type JSONTime

type JSONTime time.Time

JSONTime is an alias for time.Time with a custom serialization

func (JSONTime) MarshalJSON

func (t JSONTime) MarshalJSON() ([]byte, error)

MarshalJSON does the JSON serialization for JSONTime

type Point

type Point struct {
	Latitude  float64  `json:"latitude"`
	Longitude float64  `json:"longitude"`
	Time      JSONTime `json:"time"`
}

Point is a position on earth at a specified time instant

type Readable

type Readable interface {
	Value() (bool, error)
}

Readable is something that can be read

Jump to

Keyboard shortcuts

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