yaml

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 0 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"`
	LifeTime  int64  `mapstructure:"lifetime" json:"lifetime" yaml:"lifetime"`
}

type Config

type Config struct {
	Debug    bool                `mapstructure:"debug" json:"debug" yaml:"debug"`
	Timezone string              `mapstructure:"timezone" json:"timezone" yaml:"timezone"`
	AppName  string              `mapstructure:"appName" json:"appName" yaml:"appName"`
	Session  Session             `mapstructure:"session" json:"session" yaml:"session"`
	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"`
	LifeTime int64  `mapstructure:"lifetime" json:"lifetime" yaml:"lifetime"`
}

type Logger

type Logger struct {
	Level      string `mapstructure:"level" json:"level" yaml:"level"`
	Encoding   string `mapstructure:"encoding" json:"encoding" yaml:"encoding"`
	OutputDir  string `mapstructure:"output-dir" json:"output-dir" yaml:"output-dir"`
	MaxAge     int    `mapstructure:"maxage" json:"maxage" yaml:"maxage"`
	MaxSize    int    `mapstructure:"maxsize" json:"maxsize" yaml:"maxsize"`
	MaxBackups int    `mapstructure:"maxbackups" json:"maxbackups" yaml:"maxbackups"`
	Compress   bool   `mapstructure:"compress" json:"compress" yaml:"compress"`
	Filename   string `mapstructure:"filename" json:"filename" yaml:"filename"`
}

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"`
	MaxOpenConns    int    `mapstructure:"maxOpenConns" json:"maxOpenConns" yaml:"maxOpenConns"`
	MaxIdleConns    int    `mapstructure:"maxIdleConns" json:"maxIdleConns" yaml:"maxIdleConns"`
	ConnMaxLifeTime int    `mapstructure:"connMaxLifeTime" json:"connMaxLifeTime" yaml:"connMaxLifeTime"`
}

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"`
}

type Session added in v0.3.0

type Session struct {
	SecretKey string `mapstructure:"secret-key" json:"secret-key" yaml:"secret-key"`
	LifeTime  int    `mapstructure:"lifetime" json:"lifetime" yaml:"lifetime"`
}

Jump to

Keyboard shortcuts

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