yaml

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Defaults  map[string]string            `mapstructure:"defaults" json:"defaults" yaml:"defaults"`
	Guards    map[string]map[string]string `mapstructure:"guards" json:"guards" yaml:"guards"`
	Providers map[string]map[string]string `mapstructure:"providers" json:"providers" yaml:"providers"`
}

type Captcha

type Captcha struct {
	Width     int    `mapstructure:"width" json:"width" yaml:"width"`
	Height    int    `mapstructure:"height" json:"height" yaml:"height"`
	Num       int    `mapstructure:"num" json:"num" yaml:"num"`
	SecretKey string `mapstructure:"secret-key" json:"secret-key" yaml:"secret-key"`
	Expired   int64  `mapstructure:"expired" json:"expired" yaml:"expired"`
}

type Config

type Config struct {
	Debug    bool                `mapstructure:"debug" json:"debug" yaml:"debug"`
	AppName  string              `mapstructure:"appName" json:"appName" yaml:"appName"`
	Template []map[string]string `mapstructure:"template" json:"template" yaml:"template"`
	Auth     Auth                `mapstructure:"auth" json:"auth" yaml:"auth"`
	Logger   Logger              `mapstructure:"logger" json:"logger" yaml:"logger"`
	Captcha  Captcha             `mapstructure:"captcha" json:"captcha" yaml:"captcha"`
	Mysql    Mysql               `mapstructure:"mysql" json:"mysql" yaml:"mysql"`
	JWT      JWT                 `mapstructure:"jwt" json:"jwt" yaml:"jwt"`
	Redis    Redis               `mapstructure:"redis" json:"redis" yaml:"redis"`
}

type JWT

type JWT struct {
	SignKey     string `mapstructure:"sign-key" json:"sign-key" yaml:"sign-key"`
	ExpiresTime int64  `mapstructure:"expires-time" json:"expires-time" yaml:"expires-time"`
}

type Logger

type Logger struct {
	Level        string        `mapstructure:"level" json:"level" yaml:"level"`
	Debug        bool          `mapstructure:"debug" json:"debug" yaml:"debug"`
	LinkName     string        `mapstructure:"link-name" json:"link-name" yaml:"link-name"`
	Encoding     string        `mapstructure:"encoding" json:"encoding" yaml:"encoding"`
	OutputDir    string        `mapstructure:"output-dir" json:"output-dir" yaml:"output-dir"`
	MaxAge       time.Duration `mapstructure:"max-age" json:"max-age" yaml:"max-age"`
	RotationTime time.Duration `mapstructure:"rotation-time" json:"rotation-time" yaml:"rotation-time"`
}

type Mysql

type Mysql struct {
	Host     string `mapstructure:"host" json:"host" yaml:"host"`
	Port     string `mapstructure:"port" json:"port" yaml:"port"`
	Username string `mapstructure:"username" json:"username" yaml:"username"`
	Password string `mapstructure:"password" json:"password" yaml:"password"`
	Dbname   string `mapstructure:"dbname" json:"dbname" yaml:"dbname"`
	Charset  string `mapstructure:"charset" json:"charset" yaml:"charset"`
}

type Redis

type Redis struct {
	DB       int    `mapstructure:"db" json:"db" yaml:"db"`
	Addr     string `mapstructure:"addr" json:"addr" yaml:"addr"`
	Password string `mapstructure:"password" json:"password" yaml:"password"`
}

Jump to

Keyboard shortcuts

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