Documentation ¶
Index ¶
- Variables
- func ChangeWorkingDirectory(path string) error
- func GetFieldFromStruct(cfg interface{}, field []string) (result map[string]string, err error)
- func GetWorkingDir() string
- func GracefulShutdown(ctx context.Context, funcs Shutdowns)
- func IsLocal(cfg interface{}) bool
- func LoadEnv(cfg interface{}) error
- type Payload
- type Shutdowns
Constants ¶
This section is empty.
Variables ¶
View Source
var SERVICE_NAME = "zigot"
Functions ¶
func ChangeWorkingDirectory ¶
func GetFieldFromStruct ¶
func GetWorkingDir ¶
func GetWorkingDir() string
func GracefulShutdown ¶
Types ¶
type Payload ¶
type Payload struct { Parse string `json:"parse,omitempty"` Username string `json:"username,omitempty"` IconUrl string `json:"icon_url,omitempty"` IconEmoji string `json:"icon_emoji,omitempty"` Channel string `json:"channel,omitempty"` Text string `json:"text,omitempty"` LinkNames string `json:"link_names,omitempty"` UnfurlLinks bool `json:"unfurl_links,omitempty"` UnfurlMedia bool `json:"unfurl_media,omitempty"` Markdown bool `json:"mrkdwn,omitempty"` }
Click to show internal directories.
Click to hide internal directories.