util

package
v0.0.0-...-4eddb16 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateCounters

func CalculateCounters(baseCounter int64, skew uint) []uint64

CalculateCounters calculate all counter values within the time offset window.

func DecodeBase32Secret

func DecodeBase32Secret(encSecret string) ([]byte, error)

DecodeBase32Secret decode Base32 key

func EncodeQuery

func EncodeQuery(v url.Values) string

func NewKeyFromUrl

func NewKeyFromUrl(orig string) (string, error)

func ParameterParsing

func ParameterParsing(pattern enum.PatternEnum, counters ...any) (counter uint64, pin string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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