cnst

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateFormat = "2006-01-02"
	TimeFormat = "2006-01-02 15:04:05"
)
View Source
const (
	SlackCode        = "slack"
	SlackUrlKey      = "url"
	SlackTemplateKey = "template"
	SlackChannelKey  = "channel"
)
View Source
const (
	MailCode        = "mail"
	MailTemplateKey = "template"
	MailServerKey   = "server"
	MailUserKey     = "user"
)
View Source
const (
	WebhookCode        = "webhook"
	WebhookTemplateKey = "template"
	WebhookUrlKey      = "url"
)

Variables

View Source
var Default = struct {
	JsPkg string
}{
	JsPkg: filepath.Join(build.Default.GOPATH, "js_pkg"),
}
View Source
var Env = struct {
	Dev  string
	Stag string
	Prod string
}{
	Dev:  "dev",
	Stag: "stag",
	Prod: "prod",
}

Functions

func MatchEnv

func MatchEnv(e string) bool

func MatchLogLevel

func MatchLogLevel(e string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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