store

package
v0.0.0-...-f284539 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bookings

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

func OpenBookingDatabase

func OpenBookingDatabase(ctx context.Context, filename string) (*Bookings, error)

func (*Bookings) AddBooking

func (store *Bookings) AddBooking(ctx context.Context, b booking.Booking) error

func (*Bookings) Close

func (store *Bookings) Close() error

func (*Bookings) DeleteBooking

func (store *Bookings) DeleteBooking(ctx context.Context, id booking.ID) error

func (*Bookings) GetAllBookingsForDate

func (store *Bookings) GetAllBookingsForDate(ctx context.Context, date time.Time) ([]booking.Booking, error)

func (*Bookings) GetDeskBookings

func (store *Bookings) GetDeskBookings(ctx context.Context, desk string) ([]booking.Booking, error)

func (*Bookings) GetFutureBookingsForUser

func (store *Bookings) GetFutureBookingsForUser(ctx context.Context, user string) ([]booking.Booking, error)

type Desks

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

func OpenDeskConfig

func OpenDeskConfig(path string) (_ *Desks, err error)

func (*Desks) DeskExists

func (store *Desks) DeskExists(name string) bool

func (*Desks) Desks

func (store *Desks) Desks() []string

Jump to

Keyboard shortcuts

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