config

package
v0.0.61 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Setting = &ShortLinkSetting{
	Enabled: true,
	Length:  5,
	Expired: time.Duration(24*180) * time.Hour,
}

Functions

This section is empty.

Types

type ShortLinkSetting

type ShortLinkSetting struct {
	Enabled bool          `yaml:"enabled" json:"enabled"`
	Length  int           `yaml:"length" json:"length"`
	BaseUrl string        `yaml:"baseUrl" json:"baseUrl"`
	Context string        `yaml:"context" json:"context"`
	Expired time.Duration `yaml:"expired" json:"expired"`
}

Jump to

Keyboard shortcuts

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