calendar

package
v0.0.0-...-607e100 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calendar

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

func NewCalendar

func NewCalendar(oauth2ConfigFile string) (*Calendar, error)

func (*Calendar) CreateEvent

func (c *Calendar) CreateEvent(ctx context.Context, calendarId string, event *gCalendar.Event, token *oauth2.Token) error

func (*Calendar) CreateWatchChannel

func (c *Calendar) CreateWatchChannel(ctx context.Context, calendarId, webhookPath string, token *oauth2.Token) (*gCalendar.Channel, error)

func (*Calendar) DeleteWatchChannel

func (c *Calendar) DeleteWatchChannel(ctx context.Context, channelId, resourceId string, token *oauth2.Token) error

func (*Calendar) ExchangeCode

func (c *Calendar) ExchangeCode(ctx context.Context, code string) (*oauth2.Token, error)

func (*Calendar) GetAuthURL

func (c *Calendar) GetAuthURL(state string) string

func (*Calendar) GetCalendarsList

func (c *Calendar) GetCalendarsList(ctx context.Context, token *oauth2.Token) ([]*gCalendar.CalendarListEntry, error)

func (*Calendar) GetEventByID

func (c *Calendar) GetEventByID(ctx context.Context, eventId string, calendarId string, token *oauth2.Token) (*gCalendar.Event, error)

func (*Calendar) GetEventsList

func (c *Calendar) GetEventsList(ctx context.Context, calendarId, start, end string, maxResults int64, token *oauth2.Token) ([]*gCalendar.Event, error)

Jump to

Keyboard shortcuts

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