itercal

package
v0.0.0-...-ffc5d0d Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Buildings

func Buildings(ctx context.Context, cacheSpace *cache.Space, srv *directory.Service) (bleve.Index, error)

func ForEachBuilding

func ForEachBuilding(ctx context.Context, srv *directory.Service, f func(b *directory.Building) error) error

func ForEachEvent

func ForEachEvent(ctx context.Context, srv *calendar.Service, calendarId string, start, end time.Time, f func(*calendar.Event) error) error

func ForEachResourceInBuilding

func ForEachResourceInBuilding(ctx context.Context, srv *directory.Service, buildingId string, f func(r *directory.CalendarResource) error) error

func SearchBuildings

func SearchBuildings(idx bleve.Index, q string) (buildingID string, err error)

Types

type Resources

type Resources []*directory.CalendarResource

func ResourcesInBuilding

func ResourcesInBuilding(ctx context.Context, cacheSpace *cache.Space, srv *directory.Service, buildingId string) (Resources, error)

Jump to

Keyboard shortcuts

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