Documentation
¶
Index ¶
- Variables
- func Mid() uint8
- func Pid() uint16
- type ID
- func (id ID) Counter() uint32
- func (id ID) IsNil() bool
- func (id ID) MarshalText() ([]byte, error)
- func (id ID) Mid() uint8
- func (id ID) NumeralString() string
- func (id ID) Pid() uint16
- func (id *ID) Scan(value interface{}) (err error)
- func (ID) SqlType(dialect string, size int, settings map[string]string) string
- func (id ID) String() string
- func (id ID) Time() time.Time
- func (id *ID) UnmarshalText(text []byte) error
- func (id ID) Value() (driver.Value, error)
- type Source
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidID = errors.New("invalid ID")
)
Functions ¶
Types ¶
type ID ¶
type ID [rawLength]byte
1-byte hardware address CRC4 ID 2-byte process id 4-byte value representing the seconds since the Unix epoch 3-byte counter 2-byte nanoseconds (the first 2 bytes of the four byte value)
func FromString ¶
func (ID) MarshalText ¶
func (ID) NumeralString ¶
func (*ID) UnmarshalText ¶
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
func GlobalSource ¶
func GlobalSource() *Source
Click to show internal directories.
Click to hide internal directories.