Documentation ¶
Index ¶
- Constants
- Variables
- func GetExecRootDir() string
- func NewLogRotate(filename string, maxSize, maxBackups int) zerolog.Logger
- func NewMultiLevelWriter(writer ...io.Writer) zerolog.Logger
- func NewRotate(filename string, maxSize, maxBackups int) io.Writer
- func ValidateContentType(contentType string) bool
- type Logger
- type Response
Constants ¶
View Source
const ( JsonContentType = "application/json" FormContentType = "application/x-www-form-urlencoded" )
Variables ¶
View Source
var HttpClient = &http.Client{}
HttpClient client
View Source
var WebhookContentTypeList = []string{JsonContentType, FormContentType}
Functions ¶
func GetExecRootDir ¶
func GetExecRootDir() string
func ValidateContentType ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.