slack

package
v0.0.73 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Type      string      `json:"type,omitempty"`
	Text      interface{} `json:"text,omitempty"`
	Title     interface{} `json:"title,omitempty"`
	Accessory interface{} `json:"accessory,omitempty"`
	ImageURL  string      `json:"image_url,omitempty"`
	AltText   string      `json:"alt_text,omitempty"`
}

type ImageAccessory

type ImageAccessory struct {
	Type     string `json:"type,omitempty"`
	ImageURL string `json:"image_url,omitempty"`
	AltText  string `json:"alt_text,omitempty"`
}

type Message

type Message struct {
	Blocks []Block `json:"blocks,omitempty"`
}

func ClaimToMessage

func ClaimToMessage(event string, claim factcheckModel.Claim) (*Message, error)

func DefaultMessage

func DefaultMessage(whData whmodel.WebhookData) (*Message, error)

func EpisodeToMessage

func EpisodeToMessage(event string, episode podcastModel.Episode) (*Message, error)

func OthToMessage

func OthToMessage(entityType, action string, obj map[string]interface{}) (*Message, error)

func PodcastToMessage

func PodcastToMessage(event string, podcast podcastModel.Podcast) (*Message, error)

func PolicyToMessage

func PolicyToMessage(event string, pol coreModel.Policy) (*Message, error)

func PostToMessage

func PostToMessage(event string, post hukzx.Post) (*Message, error)

func ToMessage

func ToMessage(whData whmodel.WebhookData) (*Message, error)

type TextBlock

type TextBlock struct {
	Type  string `json:"type,omitempty"`
	Text  string `json:"text,omitempty"`
	Emoji bool   `json:"emoji,omitempty"`
}

Jump to

Keyboard shortcuts

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