security

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID uint64

ID represents a process-wide unique ID.

func NewID

func NewID() ID

NewID generates a new, process-wide unique ID.

func (ID) Base64

func (id ID) Base64() string

Base64 Base64格式

func (ID) Hex

func (id ID) Hex() string

Hex 二进制格式

func (ID) MD5

func (id ID) MD5() string

MD5 获取ID的MD5值

func (ID) String

func (id ID) String() string

String converts the ID to a string representation.

func (ID) Unique

func (id ID) Unique(prefix uint64, salt string) string

Unique generates unique id based on the current id with a prefix and salt.

Jump to

Keyboard shortcuts

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