handlers

package
v0.0.0-...-fafc1b4 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler is used so that we can dependency inject different services into the database

func New

func New(db *mongo.Database) *Handler

New will create a new handler with the given databse and other dependencies that your routes may need

func (*Handler) Home

func (h *Handler) Home(c echo.Context) error

Jump to

Keyboard shortcuts

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