global

package
v0.0.0-...-3b8fdc3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aes

type Aes struct {
	Key    string `json:"key"`
	Secret string `json:"secret"`
}

type Elastic

type Elastic struct {
	Url string `json:"url"`
}

type GlobalConfig

type GlobalConfig struct {
	IsEnableGOMAXPROCS bool                 `json:"is_enable_gomaxprocs"`
	GinAppDebug        string               `json:"gin_app_debug"`
	GinAppName         string               `json:"gin_app_name"`
	Http               Http                 `json:"http"`
	Websocket          Websocket            `json:"websocket"`
	Grpc               Grpc                 `json:"grpc"`
	Nacos              *nacosRF.NacosConfig `json:"nacos"`
	Rpc                Rpc                  `json:"rpc"`
	Mysql              Mysql                `json:"mysql"`
	Redis              Redis                `json:"redis"`
	Mongo              Mongo                `json:"mongo"`
	LevelDb            LevelDb              `json:"level_db"`
	Elastic            Elastic              `json:"elastic"`
	Aes                Aes                  `json:"aes"`
	Jwt                Jwt                  `json:"jwt"`
}

GlobalConfig 框架应用配置

var Config *GlobalConfig

type Grpc

type Grpc struct {
	Port string `json:"port"`
}

Grpc Grpc配置

type Http

type Http struct {
	BindPort string `json:"bind_port"`
	LogPath  string `json:"log_path"`
}

Http http服务配置

type Jwt

type Jwt struct {
	Expire time.Duration `json:"expire"`
	Secret string        `json:"secret"`
}

type LevelDb

type LevelDb struct {
	Path string `json:"path"`
}

type Mongo

type Mongo struct {
	Addr string `json:"addr"`
}

Mongo mongo配置

type Mysql

type Mysql struct {
	DbDsn        string `json:"db_dsn"`
	MaxOpenConns int    `json:"max_open_conns"`
	MaxIdleConns int    `json:"max_idle_conns"`
}

Mysql 数据库配置

type Redis

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

Redis redis配置

type Rpc

type Rpc struct {
	Listener string `json:"listener"`
}

Rpc Rpc配置

type Websocket

type Websocket struct {
	BindPort string `json:"bind_port"`
}

Websocket Websocket服务配置

Jump to

Keyboard shortcuts

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