calendar

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const TitlePrefix string = "[reminder] "

Variables

This section is empty.

Functions

func AddEvents added in v1.9.27

func AddEvents(srv *gc.Service, events []*gc.Event, dryMode bool) error

AddEvents adds passed calendar events to the Cloud

func DeleteEvents added in v1.9.27

func DeleteEvents(srv *gc.Service, events []*gc.Event, dryMode bool) error

DeleteEvents delete passed cloud calendar events

func EventString added in v1.9.20

func EventString(event *gc.Event) string

func FetchUpcomingEventsAndDetails added in v1.9.27

func FetchUpcomingEventsAndDetails(srv *gc.Service, backYears int, aheadYears int, query string) ([]*gc.Event, string, string, error)

FetchUpcomingEvents returns slice of `Event` objects for specified number of years, with some default settings.

func GetCalendarService added in v1.9.16

func GetCalendarService(options *Options) (*gc.Service, error)

Get Calendar Service.

Types

type Options

type Options struct {
	CredentialFile string `json:"credential_file" yaml:"credential_file" mapstructure:"credential_file"`
	TokenFile      string `json:"token_file" yaml:"token_file" mapstructure:"token_file"`
	DryMode        bool   `json:"dry_mode" yaml:"dry_mode" mapstructure:"dry_mode"`
}

func DefaultOptions

func DefaultOptions() *Options

Jump to

Keyboard shortcuts

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