Documentation ¶
Index ¶
- type Button
- type ButtonWidget
- type Card
- type Header
- type Image
- type ImageWidget
- type Message
- func ClaimToMessage(event string, claim factcheckModel.Claim) (*Message, error)
- func DefaultMessage(data interface{}) *Message
- func EpisodeToMessage(event string, episode podcastModel.Episode) (*Message, error)
- func OthToMessage(entityType, action string, obj map[string]interface{}) (*Message, error)
- func PodcastToMessage(event string, podcast podcastModel.Podcast) (*Message, error)
- func PolicyToMessage(event string, pol coreModel.Policy) (*Message, error)
- func PostToMessage(event string, post hukzx.Post) (*Message, error)
- func ToMessage(whData whmodel.WebhookData) (*Message, error)
- type OnClick
- type OpenLink
- type Section
- type TextParagraph
- type TextParagraphWidget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ButtonWidget ¶
type ButtonWidget struct {
Button Button `json:"button,omitempty"`
}
type ImageWidget ¶
type ImageWidget struct {
Image Image `json:"image,omitempty"`
}
type Message ¶
type Message struct {
Cards []Card `json:"cards,omitempty"`
}
func ClaimToMessage ¶
func ClaimToMessage(event string, claim factcheckModel.Claim) (*Message, error)
func DefaultMessage ¶
func DefaultMessage(data interface{}) *Message
func EpisodeToMessage ¶
func EpisodeToMessage(event string, episode podcastModel.Episode) (*Message, error)
func OthToMessage ¶
func PodcastToMessage ¶
func PodcastToMessage(event string, podcast podcastModel.Podcast) (*Message, error)
type TextParagraph ¶
type TextParagraph struct {
Text string `json:"text,omitempty"`
}
type TextParagraphWidget ¶
type TextParagraphWidget struct {
TextParagraph TextParagraph `json:"textParagraph,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.