message

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Summary         string
	StartTime       string
	EndTime         string
	HtmlDescription string
	TxtDescription  string
	IsAllDay        bool
}

type TemplatedMessage

type TemplatedMessage struct {
	Events []Event
	// contains filtered or unexported fields
}

func NewTemplatedMessage

func NewTemplatedMessage(htmlTemplate, txtTemplate string, events []calendar.Event, tz *time.Location) (TemplatedMessage, error)

func (TemplatedMessage) MatrixMessage

func (t TemplatedMessage) MatrixMessage() (event.MessageEventContent, error)

func (TemplatedMessage) Render

func (t TemplatedMessage) Render() (html string, txt string, err error)

func (TemplatedMessage) RenderHtml

func (t TemplatedMessage) RenderHtml() (string, error)

func (TemplatedMessage) RenderTxt

func (t TemplatedMessage) RenderTxt() (string, error)

Jump to

Keyboard shortcuts

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