Documentation ¶
Index ¶
- Constants
- Variables
- func CopyBuffer(dst io.Writer, src io.Reader) (written int64, err error)
- func EnableProfiling(enabled bool)
- func FormatURL(s string) (string, error)
- func GenerateJwtToken(key []byte) (string, error)
- func HashedPassword(password string) string
- func KDF(password string, salt []byte, keySize int) []byte
- func NewTimeoutConn(conn net.Conn, timeout time.Duration) *timeoutConn
- func NextNonce(nonce []byte)
- func NowInMills() int64
- func PrintVersion()
- func Stringify(v interface{}) string
- func ValidateJwtToken(tokenString string, key []byte) error
Constants ¶
View Source
const MagicKeySalt = "tox"
Variables ¶
View Source
var ( Name = "@isayme/tox" Version = "unknown" BuildTime = "unknown" GitRevision = "unknown" )
version info
Functions ¶
func CopyBuffer ¶ added in v0.2.1
Copy copy with default buf
func EnableProfiling ¶
func EnableProfiling(enabled bool)
func GenerateJwtToken ¶
func HashedPassword ¶ added in v0.2.0
func NewTimeoutConn ¶
NewTimeoutConn create timeout conn
func NowInMills ¶
func NowInMills() int64
func ValidateJwtToken ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.