Documentation ¶
Index ¶
- Constants
- func CreateFile(path string) error
- func GetCid(str string) (cid.Cid, error)
- func GetCidString(str string) (string, error)
- func GetGlobalLogicalClock() int64
- func GetLocalHost() string
- func GetLocalInstanceId() string
- func GetLocalPeerId() string
- func GetSnowflakeId() int64
- func GetUUID() string
- func JsonDecode(data []byte, value interface{})
- func JsonEncode(data interface{}) []byte
- func RemoveFile(path string) error
- func ToString(value interface{}) string
Constants ¶
View Source
const Codec = mc.Raw
View Source
const MhLength = -1
View Source
const MhType = mh.SHA2_256
View Source
const Version = 1
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶ added in v0.0.12
func GetCidString ¶
func GetGlobalLogicalClock ¶
func GetGlobalLogicalClock() int64
func GetLocalHost ¶
func GetLocalHost() string
func GetLocalInstanceId ¶
func GetLocalInstanceId() string
func GetLocalPeerId ¶
func GetLocalPeerId() string
func GetSnowflakeId ¶ added in v0.0.14
func GetSnowflakeId() int64
func JsonDecode ¶ added in v0.0.8
func JsonDecode(data []byte, value interface{})
func JsonEncode ¶ added in v0.0.8
func JsonEncode(data interface{}) []byte
func RemoveFile ¶ added in v0.0.12
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.