controller

package
v0.0.0-...-5dd97c0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(c *chi.Mux, r entities.RouteUseCase)

NewHandler will instantiate the handlers.

Types

type RouteHandler

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

RouteHandler is struct that implements Route Entity.

func (*RouteHandler) Create

func (h *RouteHandler) Create(w http.ResponseWriter, r *http.Request)

Create creates new routes.

func (*RouteHandler) Find

func (h *RouteHandler) Find(w http.ResponseWriter, r *http.Request)

Find finds the best route.

Jump to

Keyboard shortcuts

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