calendars

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: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calendar

type Calendar interface {
	GetEvents(context.Context) ([]Event, error)
	CreateEvent(context.Context, Event) error
}

type CreateCalendarFunc

type CreateCalendarFunc func(context.Context, string) (Calendar, error)

type Event

type Event struct {
	Title     string    `json:"title"`
	StartTime time.Time `json:"startTime"`
	EndTime   time.Time `json:"endTime"`
}

type Server

type Server interface {
	Serve(lis net.Listener) error
}

func CreateCalendarServer

func CreateCalendarServer(create CreateCalendarFunc) Server

Jump to

Keyboard shortcuts

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