Documentation
¶
Index ¶
Constants ¶
View Source
const ( HashMd5 = "md5" HashSha1 = "sha1" HashSha224 = "sha224" HashSha256 = "sha256" HashSha384 = "sha384" HashSha512 = "sha512" HashSha512_224 = "sha512_224" HashSha512_256 = "sha512_256" )
Variables ¶
View Source
var ( Context = context.Background() TimeNow = time.Now().Local() )
Functions ¶
func Config ¶
func Config(config string, t ConfigBlock) (map[string]interface{}, error)
Get secret token from config.
func HTTPRequestContent ¶
HttpRequestContent make a simple request to url, and return response body, default request method is get.
func HashAlgorithm ¶
Types ¶
type ConfigBlock ¶
type ConfigBlock string
Read config.toml.
const ( Discord ConfigBlock = "discord" ICP ConfigBlock = "west" LINE ConfigBlock = "line" Slack ConfigBlock = "slack" Telegram ConfigBlock = "telegram" )
func (ConfigBlock) String ¶
func (c ConfigBlock) String() string
Click to show internal directories.
Click to hide internal directories.