db

package module
v0.0.0-...-d395bac Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

README

db

Build Status GoDoc

Database toolkit for the Go programming language.

Getting Started

Install the package, along with executable binary helper (go 1.4 and greater is required):

$ go get -v github.com/goanywhere/db

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key []byte

Ref: http://www.mongodb.org/display/DOCS/Object+IDs

func NewKey

func NewKey() Key

func (Key) Counter

func (self Key) Counter() int32

Counter returns the incrementing value part of the key.

func (Key) Hex

func (self Key) Hex() string

func (Key) Machine

func (self Key) Machine() string

Machine returns the 3-byte machine id part of the key.

func (Key) ProcessId

func (self Key) ProcessId() uint16

ProcessId returns the process id part of the key.

func (Key) String

func (self Key) String() string

func (Key) Time

func (self Key) Time() time.Time

Jump to

Keyboard shortcuts

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