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

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