config

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CoreConf crocodile conf
	CoreConf *coreConf
)

Functions

func Init

func Init(conf string)

Init Config

Types

type Cert

type Cert struct {
	Enable   bool
	CertFile string
	KeyFile  string
}

Cert tls cert

type Client

type Client struct {
	Port        int
	ServerAddrs []string
	ServerPort  int
	HostGroup   string
	Weight      int
	Remark      string
}

Client crocodile client config

type Log

type Log struct {
	LogPath    string
	MaxSize    int
	Compress   bool
	MaxAge     int
	MaxBackups int
	LogLevel   string
	Format     string
}

Log Config

type Notify

type Notify struct {
	Email    email
	DingDing dingding
	Slack    slack
	Telegram telegram
	WeChat   wechat
	WebHook  webhook
}

Notify send msg to user

type Server

type Server struct {
	Port        int
	MaxHTTPTime duration
	DB          db
	Redis       redis
}

Server crocodile server config

Jump to

Keyboard shortcuts

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