Documentation ¶
Index ¶
- Constants
- func FormatFullTime(t time.Time) string
- func GetDomainFromHost(host string) string
- func GetErrorCode(err error) int32
- func GraceHttpServe(addr string, handler http.Handler) error
- func HttpGet(client *http.Client, url string, headers map[string]string, ret interface{}) error
- func HttpPost(client *http.Client, url string, headers map[string]string, params interface{}, ...) error
- func HttpPostWithForm(client *http.Client, url string, headers map[string]string, ...) error
- func IsHttpStatusSuccess(code int) bool
- func NewErrorWithCode(code int32, text string) error
- func NewGinEngine() *gin.Engine
- func NewHttpClient(skipSSLVerify bool) *http.Client
- func NewHttpClientWithShortTimeout(skipSSLVerify bool) *http.Client
- func ParseConfig(defaultPath string, v interface{}) bool
- func StringToInt64(s string, defaultVal int64) int64
- type RobotDingDing
- type RobotFeishu
Constants ¶
View Source
const (
ErrFail = 1
)
Variables ¶
This section is empty.
Functions ¶
func FormatFullTime ¶
func GetDomainFromHost ¶
func GetErrorCode ¶
func HttpPostWithForm ¶
func IsHttpStatusSuccess ¶
func NewErrorWithCode ¶
func NewGinEngine ¶
func NewHttpClient ¶
func ParseConfig ¶
func StringToInt64 ¶
Types ¶
type RobotDingDing ¶
type RobotDingDing struct {
// contains filtered or unexported fields
}
func NewRobotDingDing ¶
func NewRobotDingDing(env string, app string, url string, secret string) *RobotDingDing
https://developers.dingtalk.com/document/app/custom-robot-access
func (*RobotDingDing) SendMsg ¶
func (this *RobotDingDing) SendMsg(msg string) string
type RobotFeishu ¶
type RobotFeishu struct {
// contains filtered or unexported fields
}
func NewRobotFeishu ¶
func NewRobotFeishu(env string, app string, url string, secret string) *RobotFeishu
https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN
func (*RobotFeishu) SendMsg ¶
func (this *RobotFeishu) SendMsg(msg string) string
Click to show internal directories.
Click to hide internal directories.