Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireAPIkey ¶
func RequireAPIkey(apikey string) gin.HandlerFunc
RequireAPIkey is a middleware that requires the given api key to be present in the headers authorization field.
func RequireCalendarSecret ¶
func RequireCalendarSecret() gin.HandlerFunc
RequireCalendarSecret is a middleware that requires the calendar secret to be set as a query parameter.
func RequireID2InURI ¶ added in v1.8.4
func RequireID2InURI() gin.HandlerFunc
RequireID2InURI returns a Gin middleware which requires an ID2 of the type uint to be supplied in the URI of the request.
func RequireIDInURI ¶
func RequireIDInURI() gin.HandlerFunc
RequireIDInURI returns a Gin middleware which requires an ID of the type uint to be supplied in the URI of the request.
func RequireStringIDInURI ¶
func RequireStringIDInURI() gin.HandlerFunc
RequireStringIDInURI returns a Gin middleware which requires an ID of the type string to be supplied in the URI of the request.
Types ¶
type Handler ¶ added in v1.9.0
type Handler struct { Calendar *handler.CalendarHandler Database *handler.DatabaseHandler }
Click to show internal directories.
Click to hide internal directories.