moths

package
v4.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptionWithAmount

func OptionWithAmount(amount int) option

func OptionWithEmojies

func OptionWithEmojies(emojies emojies.Emojies) option

func OptionWithInterval

func OptionWithInterval(interval time.Duration) option

func OptionWithSecret

func OptionWithSecret(secret string) option

func OptionWithTime

func OptionWithTime(t time.Time) option

Types

type Moths

type Moths struct {
	// contains filtered or unexported fields
}

func NewMoths

func NewMoths(opts ...option) (*Moths, error)

func (*Moths) Next

func (m *Moths) Next() (otp.OTP, error)

func (*Moths) Validate

func (m *Moths) Validate(moth string) bool

func (*Moths) ValidateToken

func (m *Moths) ValidateToken(oldToken string) bool

This should maybe not be used as you should not really expose the `token` to your users

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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