Versions in this module Expand all Collapse all v0 v0.1.1 Nov 20, 2026 Changes in this version + func CancelCode(link string) (string, error) + type Availability struct + End time.Time + Matches []Space + Start time.Time + Timezone string + WindowEnd map[Category]bool + type AvailabilityOptions struct + Category Category + End time.Time + MaxCapacity int + MinCapacity int + Start time.Time + type Booking struct + Cancelable bool + Category string + End time.Time + ID int + Space string + Start time.Time + type Cancellation struct + BookingID int + Canceled bool + MoreRemaining bool type Client + func (c *Client) Availability(ctx context.Context, options AvailabilityOptions) (Availability, error) + func (c *Client) Bookings(ctx context.Context, code string) ([]Booking, error) + func (c *Client) Cancel(ctx context.Context, code string, bookingID int) (Cancellation, error) type Schedule + func (s Schedule) Availability(start, end time.Time) (Availability, error) v0.1.0 Nov 12, 2026 Changes in this version + var ErrAuthenticationRequired = &Error + var ErrBookingUnknown = &Error + func ParseDate(value string) (time.Time, error) + type Category string + const CategoryAll + const CategoryFirst + const CategoryPods + const CategoryRooms + const CategorySecond + const CategoryThird + type CategoryInfo struct + ID int + Kind string + Name string + Slug Category + func Categories() []CategoryInfo + type CategorySchedule struct + Category CategoryInfo + Spaces []SpaceSchedule + WindowEnd bool + type Client struct + func New(httpClient Doer) *Client + func NewPublic() *Client + func Open(options auth.Options) (*Client, error) + func (c *Client) Book(ctx context.Context, selection Selection, details ReservationDetails) (reservation Reservation, resultErr error) + func (c *Client) Release(ctx context.Context) error + func (c *Client) Schedule(ctx context.Context, options ScheduleOptions) (Schedule, error) + func (c *Client) Space(ctx context.Context, id int) (Space, error) + func (c *Client) Spaces(ctx context.Context, selector Category) ([]Space, error) + type Doer interface + Do func(*http.Request) (*http.Response, error) + type Error struct + Cause error + Code string + Message string + func (e *Error) Error() string + func (e *Error) ErrorCode() string + func (e *Error) Is(target error) bool + func (e *Error) Unwrap() error + type Interval struct + Available bool + End time.Time + Start time.Time + Status string + type Reservation struct + ConfirmedAt time.Time + End time.Time + Space Space + Start time.Time + State string + type ReservationDetails struct + AcceptTerms bool + Fields map[string]string + type ResponseError struct + BodyBytes int + Cause error + Operation string + Status int + func (e *ResponseError) Error() string + func (e *ResponseError) ErrorCode() string + func (e *ResponseError) Unwrap() error + type Schedule struct + Categories []CategorySchedule + EndDate string + StartDate string + Timezone string + type ScheduleOptions struct + Category Category + Date time.Time + EndDate time.Time + MaxCapacity int + MinCapacity int + type Selection struct + End time.Time + SpaceID int + Start time.Time + func (s Selection) Validate() error + type Space struct + Capacity int + Category string + CategoryID int + CategorySlug Category + ID int + Kind string + Name string + URL string + type SpaceSchedule struct + Intervals []Interval + Space Space