controller

package
v0.0.0-...-92f7cd3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEventHandlers

func RegisterEventHandlers(r *routing.RouteGroup, service event.IService, logger log.ILogger)

RegisterEventHandlers sets up the routing of the HTTP handlers.

GET /api/event/
GET /api/event/{ID}
POST /api/event/
PUT /api/event/{ID}
DELETE /api/event/{ID}

Types

type Controller

type Controller struct {
}

Controller is the parent struct for all controllers

func (Controller) ExtractQueryFromContext

func (c Controller) ExtractQueryFromContext(ctx *routing.Context) map[string]interface{}

ExtractQueryFromContext extracts a query from context

Jump to

Keyboard shortcuts

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