meta

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailTemplate

type EmailTemplate struct {
	Subject string `toml:"subject"`
	Body    string `toml:"body"`
}

EmailTemplate .

type ExpireConfig

type ExpireConfig struct {
	Code xtime.Duration `toml:"vcode"`
	Sess xtime.Duration `toml:"session"`
}

ExpireConfig .

func (*ExpireConfig) Session

func (e *ExpireConfig) Session() time.Duration

Session returns duration to be expired

func (*ExpireConfig) VCode

func (e *ExpireConfig) VCode() time.Duration

VCode returns duration to be expired

type HotConfig

type HotConfig struct {
	Exp           *ExpireConfig  `toml:"expire"`
	EmailTemplate *EmailTemplate `toml:"email_template"`
}

HotConfig .

Jump to

Keyboard shortcuts

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