calendar

package
v0.0.0-...-db8ebed Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const AGENDA = "YOUR CALENDAR NAME"

Variables

View Source
var (
	ErrAgendaNotFound = errors.New("agenda not found")
	ErrAddAgenda      = errors.New("error when adding agenda")
	ErrListEventsWeek = errors.New("error list events week")
)

Functions

This section is empty.

Types

type Calendar

type Calendar struct {
	Service    *gCalendar.Service
	CalendarID string
}

func NewClient

func NewClient() *Calendar

NewClient: Creates a new client

func (*Calendar) DeleteEvent

func (c *Calendar) DeleteEvent(eventId string) error

DeleteEvent: Deletes an event

func (*Calendar) GetAgendaID

func (c *Calendar) GetAgendaID() error

GetAgendaID: Get calendar ID

func (*Calendar) InsertAgendaID

func (c *Calendar) InsertAgendaID(id string) error

InsertAgendaID: Inserts an existing calendar into the user's calendar list

func (*Calendar) InsertEvent

func (c *Calendar) InsertEvent(data InsertEventData) error

InsertEvent: Creates an event

func (*Calendar) ListTodayEvents

func (c *Calendar) ListTodayEvents() error

ListTodayEvents: Gets all events of the day

func (*Calendar) ListWeekEvents

func (c *Calendar) ListWeekEvents() error

ListWeekEvents: Gets all events of the week

type InsertEventData

type InsertEventData struct {
	Title         string
	Description   string
	Location      string
	DateTimeStart string
	DateTimeEnd   string
}

Jump to

Keyboard shortcuts

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