calendar

package
v0.0.0-...-e9ca3b0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCalendar

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

GCalendar is a wrapper for Google Calendar Service

func NewGCalerndar

func NewGCalerndar(gToken *auth.GToken, cfg *oauth2.Config) GCalendar

NewGCalerndar inits a GCalendar struct

func (GCalendar) CalendarEvent

func (gc GCalendar) CalendarEvent(
	a staff.Assignment,
	t *config.Template,
) (*calendar.Event, error)

CalendarEvent generates a google calendar event

func (GCalendar) CalendarService

func (gc GCalendar) CalendarService(ctx context.Context, authHandler auth.ConsentHandlerFunc) (*calendar.Service, error)

CalendarService inits a google calendar service

Jump to

Keyboard shortcuts

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