config

package
v0.0.0-...-a1b16c7 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

this file will complete configurations below server configuration log configuration

Index

Constants

This section is empty.

Variables

View Source
var (
	ProxyAddr        string
	UdpAddr          string
	TcpAddr          string
	LogAddr          string
	FreshLogInterval int64
	FreshUdpInterval int64
	SqlitePath       string
	RedisCfg         RedisConfig
	RunMode          string // run_mode or dep
	DMGodId          int64
	DMRootPath       string
	VPTemplatePath   string
	VPTmpPath        string
	V1X1SrcPath      string
)

Functions

func All

func All()

func GetMainDir

func GetMainDir() (exPath string, e error)

func GetSthInMainDir

func GetSthInMainDir(path string) string

func IsIgnoreResource

func IsIgnoreResource(path string) bool

配置文件中是否标明该文件需要忽略

func IsRunModeDep

func IsRunModeDep() bool

func IsRunModeDev

func IsRunModeDev() bool

Types

type DM1Config

type DM1Config struct {
	Ignore []struct {
		Name string `json:"name"`
	} `json:"ignore"`
}

https://mholt.github.io/json-to-go/ \sa server_dm1.go this struct is auto generated

var (
	DM1 DM1Config
)

type RedisConfig

type RedisConfig struct {
	Addr               string
	MaxIdle, MaxActive int
}

Jump to

Keyboard shortcuts

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