handlers

package
v0.0.0-...-ea2f23f Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CalendarContent string = "text/calendar; charset=utf-8"
View Source
const ContentType string = "Content-Type"
View Source
const DatabaseFileName string = "data/calendars.db"

Variables

This section is empty.

Functions

func CreateCalendar

func CreateCalendar(c *gin.Context)

func GetCalendarByID

func GetCalendarByID(c *gin.Context)

func UpdateCalendar

func UpdateCalendar(c *gin.Context)

Types

type CreateParams

type CreateParams struct {
	Url                string `form:"url" json:"url" binding:"required"`
	ReplacementSummary string `form:"replacementSummary" json:"replacementSummary" binding:"required"`
}

type UpdateParams

type UpdateParams struct {
	Id                 string `form:"id" json:"id" binding:"required"`
	Url                string `form:"url" json:"url"`
	ReplacementSummary string `form:"replacementSummary" json:"replacementSummary"`
}

Jump to

Keyboard shortcuts

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