define

package
v0.0.0-...-cc63be1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package define ...

Author : [email protected]<白茶清欢>

Date : 4:21 下午 2021/8/14

Package define ...

Author : [email protected]<白茶清欢>

Date : 4:19 下午 2021/8/14

Package define ...

Description : define ...

Author : [email protected]<张德满>

Date : 2022/01/15 10:55 PM

Package define ...

Author : [email protected]<白茶清欢>

Date : 5:12 下午 2021/8/14

Index

Constants

View Source
const (
	// OTPRedisFlag ...
	OTPRedisFlag = "otp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Port   int    `json:"port" yaml:"port"`
	Env    string `json:"env" yaml:"env"`
	Domain string `json:"domain" yaml:"domain"`
}

Base 基础配置

Author : [email protected]<白茶清欢>

Date : 4:22 下午 2021/8/14

type DBLog

type DBLog struct {
	Level            int                     `json:"level" yaml:"level"`
	Console          bool                    `json:"console" yaml:"console"`
	TraceFieldName   string                  `json:"trace_field_name" yaml:"trace_field_name"`
	ExtractFieldList []string                `json:"extract_field_list" yaml:"extract_field_list"`
	Split            *logger.RotateLogConfig `json:"split" yaml:"split"`
}

DBLog 数据库日志配置

Author : [email protected]<白茶清欢>

Date : 7:04 下午 2021/8/7

type Database

type Database struct {
	DB  *mysql.DBConfig `json:"db" yaml:"db"`
	Log *DBLog          `json:"log" yaml:"log"`
}

Database 数据库配置

Author : [email protected]<白茶清欢>

Date : 6:55 下午 2021/8/7

type OAuth

type OAuth struct {
	Type                   string `json:"type" yaml:"type"`
	Host                   string `json:"host" yaml:"host"`
	AuthorizationPageURI   string `json:"authorization_page_uri" yaml:"authorization-page-uri"`
	GetAccessTokenURI      string `json:"get_access_token_uri" yaml:"get-access-token-uri"`
	ValidateAccessTokenURI string `json:"validate_access_token_uri" yaml:"validate-access-token-uri"`
	GrantType              string `json:"grant_type" yaml:"grant-type"`
	AccessTokenKey         string `json:"access_token_key" yaml:"access-token-key"`
	UseAuthorization       bool   `json:"use_authorization" yaml:"use-authorization"`
	ClientID               string `json:"client_id" yaml:"client-id"`
	Secret                 string `json:"secret" yaml:"secret"`
	Callback               string `json:"callback" yaml:"callback"`
	Text                   string `json:"text" yaml:" "`
}

OAuth 配置

Author : [email protected]<白茶清欢>

Date : 2022/1/15 10:56 PM

type Redis

type Redis struct {
	DB  RedisDB  `json:"db" yaml:"db"`
	Log RedisLog `json:"log" yaml:"log"`
}

Redis redis配置

Author : [email protected]<白茶清欢>

Date : 5:12 下午 2021/8/14

type RedisDB

type RedisDB struct {
	Host     string `json:"host" yaml:"host"`
	Port     int    `json:"port" yaml:"port"`
	Database int    `json:"database" yaml:"database"`
	Password string `json:"password" yaml:"password"`
}

RedisDB redis配置

Author : [email protected]<白茶清欢>

Date : 5:14 下午 2021/8/14

type RedisLog

type RedisLog struct {
	Level            int                     `json:"level" yaml:"level"`
	Console          bool                    `json:"console" yaml:"console"`
	TraceFieldName   string                  `json:"trace_field_name" yaml:"trace_field_name"`
	ExtractFieldList []string                `json:"extract_field_list" yaml:"extract_field_list"`
	Split            *logger.RotateLogConfig `json:"split" yaml:"split"`
}

RedisLog 数据库日志配置

Author : [email protected]<白茶清欢>

Date : 7:04 下午 2021/8/7

Jump to

Keyboard shortcuts

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