router

package
v0.0.0-...-ea1d32c Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package router is responsible for setting up all the endpoints supported by the system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(h HealthController, eventController EventController) *mux.Router

Init initializes the endpoints we will handle

Types

type EventController

type EventController interface {
	Create(resp http.ResponseWriter, request *http.Request)
}

EventController handles event related requests

type HealthController

type HealthController interface {
	Status(w http.ResponseWriter, r *http.Request)
}

HealthController Object providing over all status of the service

Jump to

Keyboard shortcuts

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