calendar

package
v1.5.11 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package calendar is the native Base + IAM booking backend that speaks Cal.com's API-v2 shapes, so a public booking page rendered with Cal's <Booker> atom talks straight to Base. It mounts under /v1/calendar and serves the Booker's endpoint subset — public event, available slots, slot holds, booking create/read/cancel, and an anonymous /me — over the scheduling collections defined in migration 1780700000_scheduling.go (eventType, availabilitySchedule, booking). The availability computation, the transactional double-book guard and the rate limiter are the reviewed core, preserved verbatim; this package only reshapes the wire contract from the bespoke /v1/schedule shapes to the Cal atom's.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustRegister

func MustRegister(app core.App, config Config)

MustRegister registers the calendar plugin and panics on error.

func Register

func Register(app core.App, config Config) error

Register mounts the public booking API on the app when enabled.

Types

type Config

type Config struct {
	Enabled bool
}

Config controls the plugin. The booking API is opt-in.

func ConfigFromEnv

func ConfigFromEnv() Config

ConfigFromEnv reads CALENDAR_ENABLED.

Jump to

Keyboard shortcuts

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