settings

package
v1.0.1-0...-5616c21 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup()

Types

type AllConfig

type AllConfig struct {
	App
	Server
}
var Config AllConfig

type App

type App struct {
	Version string
	Name    string
	Log     struct {
		Level string
		File  struct {
			Enable  bool
			Path    string
			Encoder string
		}
	}
	Auth struct {
		Secret              string
		ExpireDuration      string `mapstructure:"expire_duration"`
		RefreshDuration     string `mapstructure:"refresh_duration"`
		CasbinModelPath     string `mapstructure:"casbin_model_path"`
		CasbinPolicyAdapter string `mapstructure:"casbin_policy_adapter"`
		CasbinPolicyPath    string `mapstructure:"casbin_policy_path"`
	}
	Swagger struct {
		Enable bool
	}
	Data struct {
		Database struct {
			Driver      string
			Source      string
			MaxIdleConn int `mapstructure:"max_idle_conn"`
			MaxOpenConn int `mapstructure:"max_open_conn"`
		}
		Cache struct {
			Driver string
			Source string
		}
	}
	MQ struct {
		Source string
	}
	Response struct {
		HideErrorDetails bool `mapstructure:"hide_error_details"`
	}
	Upload struct {
		SuperBed struct {
			Token      string
			Categories string
		}
	}
}

type Server

type Server struct {
	RunMode  string `mapstructure:"run_mode"`
	Port     string
	BasePath string `mapstructure:"base_path"`
}

Jump to

Keyboard shortcuts

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