event

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Window = time.Hour

Window represents the size of the window that contains the events being considered.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	ID          string
	StartDate   time.Time
	EndDate     time.Time
	URL         *url.URL
	Title       string
	Description string
	Recurrence  string
}

Event represents a comeet event.

func (*Event) Dates

func (e *Event) Dates() ([]time.Time, error)

Dates returns a event's dates based on its recurrence.

In case it has none, it returns the start date.

func (*Event) Message

func (e *Event) Message() string

Message returns a formatted text to put in a message.

func (*Event) String

func (e *Event) String() string

String returns the string representation of an event's content.

Jump to

Keyboard shortcuts

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