function

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

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 CreateFile(path string) error

func GetCid

func GetCid(str string) (cid.Cid, error)

func GetCidString

func GetCidString(str string) (string, error)

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 GetUUID

func GetUUID() string

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

func RemoveFile(path string) error

func ToString added in v0.0.8

func ToString(value interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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