gcal

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MPL-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CalEvent

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

func NewCalEvent

func NewCalEvent(event *calendar.Event) *CalEvent

func (*CalEvent) AllDay

func (calEvent *CalEvent) AllDay() bool

func (*CalEvent) ConflictsWith

func (calEvent *CalEvent) ConflictsWith(otherEvents []*CalEvent) bool

func (*CalEvent) End

func (calEvent *CalEvent) End() time.Time

func (*CalEvent) Now

func (calEvent *CalEvent) Now() bool

func (*CalEvent) Past

func (calEvent *CalEvent) Past() bool

func (*CalEvent) ResponseFor

func (calEvent *CalEvent) ResponseFor(email string) string

func (*CalEvent) Start

func (calEvent *CalEvent) Start() time.Time

func (*CalEvent) Timestamp

func (calEvent *CalEvent) Timestamp(hourFormat string, showEndTime bool) string

type Settings

type Settings struct {
	*cfg.Common
	// contains filtered or unexported fields
}

Settings defines the configuration options for this module

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings

NewSettingsFromYAML creates and returns an instance of Settings with configuration options populated

type Widget

type Widget struct {
	view.TextWidget
	// contains filtered or unexported fields
}

func NewWidget

func NewWidget(tviewApp *tview.Application, redrawChan chan bool, settings *Settings) *Widget

func (*Widget) Disable

func (widget *Widget) Disable()

func (*Widget) Fetch

func (widget *Widget) Fetch() ([]*CalEvent, error)

func (*Widget) Refresh

func (widget *Widget) Refresh()

Jump to

Keyboard shortcuts

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