util

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Name        = "@isayme/tox"
	Version     = "unknown"
	BuildTime   = "unknown"
	GitRevision = "unknown"
)

version info

Functions

func Copy

func Copy(dst io.Writer, src io.Reader) (written int64, err error)

Copy copy with default buf

func EnableProfiling

func EnableProfiling(enabled bool)

func FormatURL

func FormatURL(s string) (string, error)

func GenerateJwtToken

func GenerateJwtToken(key []byte) (string, error)

func KDF

func KDF(password string, salt []byte, keySize int) []byte

func NewTimeoutConn

func NewTimeoutConn(conn net.Conn, timeout time.Duration) *timeoutConn

NewTimeoutConn create timeout conn

func NextNonce

func NextNonce(nonce []byte)

func NowInMills

func NowInMills() int64

func PrintVersion

func PrintVersion()

PrintVersion print version

func Stringify

func Stringify(v interface{}) string

func ValidateJwtToken

func ValidateJwtToken(tokenString string, key []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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