util

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultTokenValidSeconds = 60
)

Functions

func DecodeToken

func DecodeToken(t OPERALPHAToken) (string, bool, error)

Decode a token and return IP, valid, error

func GenerateToken

func GenerateToken(ip string, tokenDur int) string

Types

type OPERALPHAToken

type OPERALPHAToken string

Jump to

Keyboard shortcuts

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