config

package
v0.0.56 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaptchaSetting

type CaptchaSetting struct {
	Enabled      bool                         `json:"enabled"`
	CaptchaId    string                       `json:"captchaId" yaml:"captchaId"`
	CaptchaValue string                       `json:"captchaValue" yaml:"captchaValue"`
	Height       int                          `json:"height" yaml:"height"`
	Width        int                          `json:"width" yaml:"width"`
	Length       int                          `json:"length"`
	Store        *CodeConfig.CodeStoreSetting `json:"store"`
}
var Setting *CaptchaSetting = &CaptchaSetting{
	Enabled: false,
	Width:   240,
	Height:  80,
	Length:  6,
	Store: &CodeConfig.CodeStoreSetting{
		Enabled:         true,
		RequestInterval: time.Duration(10) * time.Second,
		ExpireIn:        time.Duration(5) * time.Minute,
	},
}

Jump to

Keyboard shortcuts

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