schedule

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEvent

func CreateEvent(ctx context.Context, roomID string, event calendars.Event) error

func GetEvents

func GetEvents(ctx context.Context, roomID string) ([]calendars.Event, error)

func GetStatic added in v0.3.1

func GetStatic(ctx context.Context, docName string) (io.ReadCloser, string, error)

Types

type Config

type Config struct {
	// couch doc stuff
	ID  string `json:"_id"`
	Rev string `json:"_rev"`

	// visual appearance
	DisplayName string `json:"displayName"`
	ImageURL    string `json:"image-url"`
	StyleURL    string `json:"style-url"`

	// functionality
	CanCreateEvents     bool `json:"canCreateEvents"`
	DisplayMeetingTitle bool `json:"displayMeetingTitle"`
	CanRequestHelp      bool `json:"canRequestHelp"`

	// how to get events - from one of our calendars (gsuite, exchange, etc.)
	CalendarURL string `json:"calendarURL"`
}

func GetConfig

func GetConfig(ctx context.Context, roomID string) (Config, error)

type HelpRequest added in v0.3.3

type HelpRequest struct {
	DeviceID string
}

Jump to

Keyboard shortcuts

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