Documentation
¶
Index ¶
- func EnsureSubject(s string) string
- func RenderCalendarView(events []*remote.Event, timeZone string) (string, error)
- func RenderDaySummary(events []*remote.Event, timezone string) (string, []*model.SlackAttachment, error)
- func RenderEventAsAttachment(event *remote.Event, timezone string, options ...Option) (*model.SlackAttachment, error)
- func RenderEventWillStartLine(subject, weblink string, startTime time.Time) string
- func RenderStatusChangeNotificationView(events []*remote.Event, status, url string) *model.SlackAttachment
- func RenderUpcomingEvent(event *remote.Event, timeZone string) (string, error)
- func RenderUpcomingEventAsAttachment(event *remote.Event, timeZone string, options ...Option) (message string, attachment *model.SlackAttachment, err error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureSubject ¶
func RenderCalendarView ¶
func RenderDaySummary ¶
func RenderEventAsAttachment ¶
func RenderStatusChangeNotificationView ¶
func RenderStatusChangeNotificationView(events []*remote.Event, status, url string) *model.SlackAttachment
func RenderUpcomingEvent ¶
Types ¶
type Option ¶
type Option interface {
Apply(remote.Event, *model.SlackAttachment)
}
func ShowTimezoneOption ¶
Click to show internal directories.
Click to hide internal directories.