Versions in this module Expand all Collapse all v0 v0.1.1 Aug 21, 2024 v0.1.0 Jul 31, 2024 Changes in this version + func ToTextObject(json *gjson.Result) (*TextObject, Skip, error) + type Block interface + Parse func(block *gjson.Result) (Skip, error) + Render func(out *gotify.MarkdownWriter) error + type ButtonElement struct + Confirm bool + Text *TextObject + Url string + func (be *ButtonElement) Parse(json *gjson.Result) (Skip, error) + func (be *ButtonElement) Render(out *gotify.MarkdownWriter) error + type ContextBlock struct + Elements []Block + func (cb *ContextBlock) Parse(block *gjson.Result) (Skip, error) + func (cb *ContextBlock) Render(out *gotify.MarkdownWriter) error + type DividerBlock struct + func (db *DividerBlock) Parse(_ *gjson.Result) (Skip, error) + func (db *DividerBlock) Render(out *gotify.MarkdownWriter) error + type HeaderBlock struct + PlainText string + func (hb *HeaderBlock) Parse(block *gjson.Result) (Skip, error) + func (hb *HeaderBlock) Render(out *gotify.MarkdownWriter) error + type ImageBlock struct + Image *ImageElement + Title string + func (ib *ImageBlock) Parse(json *gjson.Result) (Skip, error) + func (ib *ImageBlock) Render(out *gotify.MarkdownWriter) error + type ImageElement struct + AltText string + Url string + func (ie *ImageElement) Parse(json *gjson.Result) (Skip, error) + func (ie *ImageElement) Render(out *gotify.MarkdownWriter) error + type SectionBlock struct + Accessory Block + Fields []*TextObject + Text *TextObject + func (sb *SectionBlock) Parse(block *gjson.Result) (Skip, error) + func (sb *SectionBlock) Render(out *gotify.MarkdownWriter) error + type Skip bool + type TextObject struct + Text string + Type string + func (to *TextObject) Parse(json *gjson.Result) (Skip, error) + func (to *TextObject) Render(out *gotify.MarkdownWriter) error + type VideoBlock struct + AltText string + ThumbUrl string + Title string + VideoUrl string + func (vb *VideoBlock) Parse(block *gjson.Result) (Skip, error) + func (vb *VideoBlock) Render(out *gotify.MarkdownWriter) error