handlers

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package handlers contains all the routes for the API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct{}

Handler contains all the routes as methods. This makes it easy to spread api keys and secrets between your routes. In case you need to add one of those said common parts, you just need to add them to your struct definition.

func NewHandler

func NewHandler() *Handler

NewHandler creates and returns a Handler struct

func (Handler) Info

func (h Handler) Info() httprouter.Handle

Info is used for health checking as well as outputting current app version

Jump to

Keyboard shortcuts

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