handler

package
v0.0.0-...-a6e9d85 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: GPL-3.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

ErrorResponse represents an error response.

type Handler

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

Handler handles HTTP requests for the on-call schedule API.

func New

func New(storage storage.Storage, logger *zap.Logger) *Handler

New creates a new handler instance.

func (*Handler) CreateSchedule

func (h *Handler) CreateSchedule(c echo.Context) error

CreateSchedule handles schedule creation requests.

func (*Handler) GetSchedule

func (h *Handler) GetSchedule(c echo.Context) error

GetSchedule handles schedule retrieval requests.

func (*Handler) Health

func (h *Handler) Health(c echo.Context) error

Health handles health check requests.

type Request

type Request struct {
	Name    string   `json:"name"`
	Team    string   `json:"team"`
	Members []string `json:"members"`
	Days    []string `json:"days"`
	Start   string   `json:"start"`
	End     string   `json:"end"`
}

Request represents the schedule creation request.

Jump to

Keyboard shortcuts

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