pushLib

package
v0.0.0-...-bdb8b81 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsvalidFeiShuWebHookUrl

func IsvalidFeiShuWebHookUrl(url string) bool

func PushTextMessage

func PushTextMessage(webHookUrl, message string) error

func PushTextMessageToAll

func PushTextMessageToAll(webHookUrl, message string) error

func PushTextMessageToDefault

func PushTextMessageToDefault(message string) error

push text message to feiShu default webHookUrl

func SetDefaultFeiShuWebHookUrl

func SetDefaultFeiShuWebHookUrl(url string)

Types

type FeiShuResponse

type FeiShuResponse struct {
	Code    int    `json:"code"`
	Message string `json:"msg"`
}

type FeiShuTextMessage

type FeiShuTextMessage struct {
	MessageType string                   `json:"msg_type"`
	Content     FeiShuTextMessageContent `json:"content"`
}

type FeiShuTextMessageContent

type FeiShuTextMessageContent struct {
	Text string `json:"text"`
}

Jump to

Keyboard shortcuts

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