Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToTextObject ¶
func ToTextObject(json *gjson.Result) (*TextObject, Skip, error)
Types ¶
type ButtonElement ¶
type ButtonElement struct { Text *TextObject Url string Confirm bool // TODO add a Emoji/Note? }
func (*ButtonElement) Render ¶
func (be *ButtonElement) Render(out *gotify.MarkdownWriter) error
type ContextBlock ¶
type ContextBlock struct { // Can be ImageElement or TextObject Elements []Block }
func (*ContextBlock) Render ¶
func (cb *ContextBlock) Render(out *gotify.MarkdownWriter) error
type DividerBlock ¶
type DividerBlock struct{}
func (*DividerBlock) Render ¶
func (db *DividerBlock) Render(out *gotify.MarkdownWriter) error
type HeaderBlock ¶
type HeaderBlock struct { // It's a TextObject but only `type=plain_text` is allowed. PlainText string }
func (*HeaderBlock) Render ¶
func (hb *HeaderBlock) Render(out *gotify.MarkdownWriter) error
type ImageBlock ¶
type ImageBlock struct { Image *ImageElement Title string }
func (*ImageBlock) Render ¶
func (ib *ImageBlock) Render(out *gotify.MarkdownWriter) error
type ImageElement ¶
func (*ImageElement) Render ¶
func (ie *ImageElement) Render(out *gotify.MarkdownWriter) error
type SectionBlock ¶
type SectionBlock struct { Text *TextObject Fields []*TextObject Accessory Block }
func (*SectionBlock) Render ¶
func (sb *SectionBlock) Render(out *gotify.MarkdownWriter) error
type TextObject ¶
func (*TextObject) Render ¶
func (to *TextObject) Render(out *gotify.MarkdownWriter) error
type VideoBlock ¶
func (*VideoBlock) Render ¶
func (vb *VideoBlock) Render(out *gotify.MarkdownWriter) error
Click to show internal directories.
Click to hide internal directories.