zep

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateFormat = "02.01.2006"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CalendarAPI

type CalendarAPI struct {
	// contains filtered or unexported fields
}

func (*CalendarAPI) EventsInTimeframe

func (zep *CalendarAPI) EventsInTimeframe(ctx context.Context, start time.Time, end time.Time) ([]models.Event, error)

func (*CalendarAPI) GetCalendarID added in v0.8.0

func (zep *CalendarAPI) GetCalendarID() string

func (*CalendarAPI) Initialize

func (zep *CalendarAPI) Initialize(ctx context.Context, calendarID string, config map[string]interface{}) error

func (*CalendarAPI) ListEvents

func (zep *CalendarAPI) ListEvents(from, to time.Time) ([]Event, error)

ListEvents returns all events of the given calendar of a user (if it exists).

func (*CalendarAPI) Name

func (zep *CalendarAPI) Name() string

type Event

type Event struct {
	ID          string
	Start       time.Time
	End         time.Time
	Summary     string
	Description string
	Category    string
	Etag        string
}

Event is a simplified representation for an event which has been entered in ZEP.

func (Event) String

func (a Event) String() string

Jump to

Keyboard shortcuts

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