Back to

Package handlers

Latest Go to latest

The highest tagged major version is .

Published: Sep 14, 2020 | License: MIT | Module:


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) Hello

func (h *Handler) Hello(c echo.Context) (err error)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier