uidgen

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 License: MIT Imports: 7 Imported by: 0

README

uidgen

go get -u github.com/codemodus/uidgen

Usage

type UID
    func (u UID) Bytes() []byte
    func (u *UID) Scan(src interface{}) error
    func (u UID) String() string
    func (u *UID) Value() (driver.Value, error)
type UIDGen
    func New(offset uint64, vt ValueType) *UIDGen
    func (g *UIDGen) Parse(s string) (UID, bool)
    func (g *UIDGen) UID() UID
type ValueType
type ValueType uint8

const (
    BINARY16 ValueType = iota
    VARCHAR26
)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UID

type UID struct {
	// contains filtered or unexported fields
}

UID ...

func (UID) Bytes

func (u UID) Bytes() []byte

Bytes ...

func (*UID) Scan

func (u *UID) Scan(src interface{}) error

Scan ...

func (UID) String

func (u UID) String() string

func (*UID) Value

func (u *UID) Value() (driver.Value, error)

Value ...

type UIDGen

type UIDGen struct {
	// contains filtered or unexported fields
}

UIDGen ...

func New

func New(offset uint64, vt ValueType) *UIDGen

New ...

func (*UIDGen) Parse

func (g *UIDGen) Parse(s string) (UID, bool)

Parse ...

func (*UIDGen) UID

func (g *UIDGen) UID() UID

UID ...

type ValueType

type ValueType uint8

ValueType ...

const (
	BINARY16 ValueType = iota
	VARCHAR26
)

ValueType constants ...

Jump to

Keyboard shortcuts

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