views

package
v0.0.0-...-5de3a08 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureSubject

func EnsureSubject(s string) string

func RenderCalendarView

func RenderCalendarView(events []*remote.Event, timeZone string) (string, error)

func RenderDaySummary

func RenderDaySummary(events []*remote.Event, timezone string) (string, []*model.SlackAttachment, error)

func RenderEventAsAttachment

func RenderEventAsAttachment(event *remote.Event, timezone string, options ...Option) (*model.SlackAttachment, error)

func RenderEventWillStartLine

func RenderEventWillStartLine(subject, weblink string, startTime time.Time) string

func RenderStatusChangeNotificationView

func RenderStatusChangeNotificationView(events []*remote.Event, status, url string) *model.SlackAttachment

func RenderUpcomingEvent

func RenderUpcomingEvent(event *remote.Event, timeZone string) (string, error)

func RenderUpcomingEventAsAttachment

func RenderUpcomingEventAsAttachment(event *remote.Event, timeZone string, options ...Option) (message string, attachment *model.SlackAttachment, err error)

Types

type Option

type Option interface {
	Apply(remote.Event, *model.SlackAttachment)
}

func ShowTimezoneOption

func ShowTimezoneOption(timezone string) Option

Jump to

Keyboard shortcuts

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