internal

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinWordsInPassPhrase = 11
)

Variables

This section is empty.

Functions

func CreateETag

func CreateETag(name string, size, timestamp int64) string

CreateETag calculates an etag based on a file's name, size and timestamp. It does not inspect the actual content of the file though.

func CreateMnemonic

func CreateMnemonic(phrase string) (string, error)

func CreateRandomAssetGUID

func CreateRandomAssetGUID() string

CreateRandomAssetGUID returns a random ID for assets references. The GUID is 6 bytes / 12 char long, covering 16^12 address space. The GUID is most likely unique but there is not guarantee.

func CreateSimpleID

func CreateSimpleID() string

func CreateSimpleToken

func CreateSimpleToken() string

Types

This section is empty.

Directories

Path Synopsis
cdn

Jump to

Keyboard shortcuts

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