config

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup()

Types

type AppConfig

type AppConfig struct {
	Cron      []string
	Sort      string
	Spider    SpiderConfig
	DataClean DataCleanConfig
	Logger    LoggerConfig
	DB        struct {
		FileName string
	}
	Api struct {
		Domain string
		Port   int
	}
	Notice struct {
		WxPusher struct {
			Enable   bool
			AppToken string
			Uids     []string
		}
		Email struct {
			Enable   bool
			From     string
			To       []string
			User     string
			Pwd      string
			SmtpAddr string
			Host     string
		}
	}
	CookieCloud CookieCloudConfig
}
var App AppConfig

type CookieCloudConfig added in v1.0.7

type CookieCloudConfig struct {
	ServerHost string
	UUID       string
	Password   string
}

type DataCleanConfig

type DataCleanConfig struct {
	//DistrictList []string
	BlackList []string
}

type LoggerConfig

type LoggerConfig struct {
	Formatter string
	Level     string
	Path      string
}

type SpiderConfig

type SpiderConfig struct {
	WebSite   []string
	TimeLimit int
}

Jump to

Keyboard shortcuts

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