Documentation ¶
Index ¶
- Variables
- func NewOptions() *options
- func PrintOptions(packageName string)
- type ID
- func (i ID) Base32() string
- func (i ID) Base32Lower() string
- func (i ID) Hex() string
- func (i ID) IsGlobal(n *Node) bool
- func (i ID) Node(n *Node) uint64
- func (i ID) Step(n *Node) uint64
- func (i ID) String() string
- func (i ID) Time(n *Node) time.Time
- func (i ID) Uint64() uint64
- func (i ID) UnixMilli(n *Node) int64
- type Node
- type Option
- type Storage
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultNode = MustNew()
DefaultNode 默认阶段
Functions ¶
func PrintOptions ¶
func PrintOptions(packageName string)
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) SetOptions ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option option interface
func SkipOption ¶
func SkipOption() Option
func WithGlobalFlag ¶
WithGlobalFlag globalFlag option of Node
func WithOptions ¶
func WithOptions(o *options) Option
Click to show internal directories.
Click to hide internal directories.