config

package
v0.0.0-...-031edd7 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exit

func Exit(msg string)

Types

type Config

type Config struct {
	NotifyType string
	WebHook    WebHook
	MailServer MailServer
	MailUser   MailUser
	Slack      Slack
}

func ParseConfig

func ParseConfig() *Config

type MailServer

type MailServer struct {
	User     string
	Password string
	Host     string
	Port     int
}

邮件服务器

type MailUser

type MailUser struct {
	Email []string
}

接收邮件的用户

type Slack

type Slack struct {
	WebHookUrl string
	Channel    string
}

type WebHook

type WebHook struct {
	Url string
}

Jump to

Keyboard shortcuts

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