config

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config                       types.ConfigType
	NetLog                       *zerolog.Logger
	AppLog                       *zerolog.Logger
	URL_CAPTIVE_PORTAL_DETECTION = []string{
		"http://www.gstatic.com/generate_204",
		"http://clients3.google.com/generate_204",
		"http://www.apple.com/library/test/success",
		"http://connectivitycheck.android.com/generate_204",
		"http://connectivitycheck.gstatic.com/generate_204",
		"http://www.msftncsi.com/ncsi.txt",
		"http://www.appleiphonecell.com",
		"http://captive.apple.com",
		"http://captive.roku.com/ok",
		"http://detectportal.firefox.com/success.txt",
		"http://www.msftconnecttest.com/connecttest.txt",
		"http://fireoscaptiveportal.com/generate_204",
		"http://connectivitycheck.cbg-app.huawei.com/generate_204",
		"http://connect.rom.miui.com/generate_204",
		"http://freetimecaptiveportal.com/generate_204",
		"http://gateway.zscalerthree.net/generate_204",
		"http://gateway.zscloud.net/generate_204",
		"http://g.cn/generate_204",
		"http://play.googleapis.com/generate_204",
		"http://speedtest-global.spatialbuzz.net/generate_204",
		"http://tabletcaptiveportal.com/generate204",
		"http://www.google.cn/generate_204",
		"http://edge.microsoft.com/captiveportal/generate_204",
	}
)

Functions

func ParseConfig

func ParseConfig()

Types

type LoggingConfig

type LoggingConfig struct {
	ConsoleLoggingEnabled bool
	FileLoggingEnabled    bool
	Directory             string
	Filename              string
	MaxSize               int
	MaxBackups            int
	MaxAge                int
}

func (*LoggingConfig) Configure

func (c *LoggingConfig) Configure() *zerolog.Logger

Jump to

Keyboard shortcuts

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