calendar

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: GPL-3.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	PluginID           = "dev.bsbctl.calendar"
	PluginVersion      = "0.1.0"
	AppID              = "calendar"
	ChannelUpcoming    = "upcoming"
	ChannelActive      = "active"
	ChannelInteraction = "interaction"
	OperationCalendars = "calendars"
	CalendarOpenAction = "open"
)
View Source
const (
	CalendarOptionsAction = "calendar_event_options"
)

Variables

View Source
var (
	ErrCalendarAccess         = errors.New("full Calendar access is unavailable")
	ErrStaleMeetingAction     = errors.New("meeting action is stale")
	ErrMeetingLinkUnavailable = errors.New("meeting link is unavailable")
)
View Source
var ErrUnsupported = errors.New("Calendar integration requires macOS with cgo enabled")

Functions

func DefinitionForVersion

func DefinitionForVersion(version string) pluginsdk.Definition

Types

type Config

type Config struct {
	ReminderEnabled       bool
	ReminderLead          time.Duration
	ReminderSound         bool
	ReminderShowEventName bool
	ActiveEnabled         bool
	ActiveSound           bool
	ActiveDisplay         activeDisplay
	ActiveTheme           string
	CalendarOverrides     map[string]calendarOverride
}

func (Config) SettingsForKey

func (c Config) SettingsForKey(key string) calendarSettings

type Handler

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

func New

func New(host Host) *Handler

func (*Handler) EndSession

func (h *Handler) EndSession(ctx context.Context, request protocol.SessionEndRequest) error

func (*Handler) HandleSessionInput

func (h *Handler) HandleSessionInput(ctx context.Context, request protocol.SessionInputRequest) (protocol.SessionInputResult, error)

func (*Handler) Health

func (*Handler) InvokeOperation

func (h *Handler) InvokeOperation(ctx context.Context, request protocol.OperationRequest) (protocol.OperationResult, error)

func (*Handler) ReplaceInstances

func (h *Handler) ReplaceInstances(ctx context.Context, instances []protocol.Instance) error

func (*Handler) Shutdown

func (h *Handler) Shutdown(ctx context.Context) error

func (*Handler) StartSession

func (h *Handler) StartSession(ctx context.Context, request protocol.SessionStartRequest) error

type Host

type Host interface {
	SaveCheckpoint(context.Context, protocol.CheckpointRequest) error
	BeginSessionExecution(context.Context, protocol.SessionExecutionRequest) error
	Log(context.Context, protocol.LogNotification) error
	CompleteSession(context.Context, protocol.CompleteSessionRequest) error
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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