coordinates

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModsByVersion

type ModsByVersion []SerialModule

func (ModsByVersion) Len

func (mods ModsByVersion) Len() int

func (ModsByVersion) Less

func (mods ModsByVersion) Less(x, y int) bool

func (ModsByVersion) Swap

func (mods ModsByVersion) Swap(x, y int)

type Module

type Module struct {
	Source  string `json:"source"`
	Version string `json:"version"`
}

func (Module) AtVersion added in v0.6.0

func (m Module) AtVersion() string

AtVersion representation intended for machine consumption.

Format is source@version.

func (Module) Bytes

func (m Module) Bytes() []byte

Bytes is AtVersion but converted to Bytes for use in a data-store which stores bytes.

func (Module) String

func (m Module) String() string

String representation intended for human consumption.

Includes surrounding parenthesis and some whitespace to pop in logs.

type RangeID

type RangeID [2]int64

A RangeID represents a sequential list of IDs. The two boundary numbers are inclusive. A RangeID of [3, 7] implies the list of IDs: {3, 4, 5, 6, 7} (in incrementing order).

type RangeIDs

type RangeIDs [][2]int64

A RangeIDs represents an increasing list of RangeID. A RangeIDs of [[2, 4], [8, 8], [13, 14]] implies the list of IDs: {2, 3, 4, 8, 13, 14} (in increasing order).

type SerialModule

type SerialModule struct {
	Module
	SerialID int64 `json:"id"`
}

Jump to

Keyboard shortcuts

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