setting

package
v0.0.0-...-e525d52 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cfg                      *ini.File
	AppSetting               = &App{}
	ServerSetting            = &Server{}
	ProfileSetting           = &Profile{}
	ProfileFileSetting       = &ProfileFile{}
	ProfileFileStaticSetting = &ProfileFileStatic{}
	ProfileRouteSetting      = &ProfileRoute{}
)

Functions

func NewSetting

func NewSetting()

Types

type App

type App struct {
	AppName    string
	AppVersion string
	RunMode    string
}

type Profile

type Profile struct {
	SaveMode       int32
	Protocol       string
	Host1          string
	Host2          string
	ProfileUrl     string
	HeapUrl        string
	BlockUrl       string
	MutexUrl       string
	GoroutineUrl   string
	SuffixUrl      string
	DefaultSeconds int32
	DefaultTimeout int32
	MaxSeconds     int32
}

type ProfileFile

type ProfileFile struct {
	ProfileFilePrefix string
	HeapFilePrefix    string
	BlockFilePrefix   string
	MutexFilePrefix   string
}

type ProfileFileStatic

type ProfileFileStatic struct {
	FSProtocol     string
	FSDomain       string
	FSPort         string
	FSRelativePath string
}

type ProfileRoute

type ProfileRoute struct {
	RootSavePath      string
	ProfileSavePath   string
	HeapSavePath      string
	BlockSavePath     string
	MutexSavePath     string
	GoroutineSavePath string
}

type Server

type Server struct {
	HttpAddr string
	HttpPort string
}

Jump to

Keyboard shortcuts

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