lib

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorBase64 = errors.New("base64 decode error")
View Source
var ErrorCipher = errors.New("cipher decrypt error")
View Source
var ErrorParse = errors.New("ip parse error")

Functions

func ErrorsJoin

func ErrorsJoin(mainError error, specificError error) error

Types

type TokenCipher

type TokenCipher interface {
	Encode(addr netip.Addr) (token string)
	Decode(token string) (netip.Addr, error)
}

func NewTokenCipher

func NewTokenCipher(secret string) (TokenCipher, error)

Jump to

Keyboard shortcuts

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