api

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsencesGet

func AbsencesGet(c *gin.Context)

AbsencesGet - Return absence list

func AgendaGet

func AgendaGet(c *gin.Context)

AgendaGet - Returns a list of all user's courses between start and end timestamps. start and end must be milliseconds UNIX timestamps. They are not mandatory and have defaults to the first and last day of the week.

func CreateKeyFromContext

func CreateKeyFromContext(c *gin.Context) string

CreateKey creates a package specific key for a given string

func EventAgendaGet added in v0.0.4

func EventAgendaGet(c *gin.Context)

EventAgendaGet -

func Index

func Index(c *gin.Context)

Index is the index handler.

func NewRouter

func NewRouter() *gin.Engine

func NotationsClassGet added in v0.0.4

func NotationsClassGet(c *gin.Context)

NotationsClassGet - Returns a list of all user's class notes with min, average and max note

func NotationsGet

func NotationsGet(c *gin.Context)

NotationsGet - Returns a list of all user's notes

func PersonalInformationsGet added in v0.0.4

func PersonalInformationsGet(c *gin.Context)

PersonalInformationsGet - Returns user's personal informations

func TokenPost

func TokenPost(c *gin.Context)

TokenPost -

Types

type Route

type Route struct {
	// Name is the name of this Route.
	Name string
	// Method is the string for the HTTP method. ex) GET, POST etc..
	Method string
	// Pattern is the pattern of the URI.
	Pattern string
	// HandlerFunc is the handler function of this route.
	HandlerFunc gin.HandlerFunc
}

Route is the information for every URI.

type Routes

type Routes []Route

Routes is the list of the generated Route.

Jump to

Keyboard shortcuts

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