config

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

Types

type Config

type Config struct {
	MySQL struct {
		Base struct {
			MaxOpenConn     int
			MaxIdleConn     int
			ConnMaxLifeTime time.Duration
			Addr            string
			User            string
			Pass            string
			Name            string
		}
	}

	ETCD struct {
		Endpoints            []string
		Username             string
		Password             string
		DialTimeout          time.Duration
		DialKeepAlive        time.Duration
		DialKeepAliveTimeout time.Duration
	}

	JWT struct {
		Secret          string
		ExpireDuration  time.Duration
		Type            string
		RefreshDuration time.Duration
	}

	Log struct {
		LogPath    string
		Level      string
		Stdout     bool
		JsonFormat bool
	}

	Server struct {
		ServerName     string
		Host           string
		Pprof          bool
		HistoryListLen int64
	}

	Jaeger struct {
		UdpEndpoint string
		StdOut      bool
	}

	SDK struct {
		ConfigFilePath string
		LogLevel       string
		MergeConfig    bool
	}
}

func Get

func Get() Config

Jump to

Keyboard shortcuts

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