iid

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: BSD-3-Clause Imports: 2 Imported by: 4

Documentation

Index

Constants

View Source
const TWEPOCH = twepoch

Variables

This section is empty.

Functions

func GetID

func GetID(v *IIDComponent) int64

func Milliseconds

func Milliseconds() int64

Types

type IID

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

func NewIID

func NewIID(aid int64, nid int64) *IID

func (*IID) NewID

func (v *IID) NewID() int64

type IIDComponent

type IIDComponent struct {
	AID          int64
	NID          int64
	Milliseconds int64
	S            int64
}

func GetComponent

func GetComponent(id int64) *IIDComponent

Jump to

Keyboard shortcuts

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