routes

package
v0.0.0-...-bb5f922 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRouter

func CreateRouter(h IHandler) *mux.Router

CreateRouter creates a mux router and attaches routes

Types

type IHandler

type IHandler interface {
	CreateUser(w http.ResponseWriter, r *http.Request)
	GetUserByUUID(w http.ResponseWriter, r *http.Request)
	UpdateUser(w http.ResponseWriter, r *http.Request)
	DeleteUser(w http.ResponseWriter, r *http.Request)
}

IHandler lists the methods the handler package implements

func NewHandler

func NewHandler(u user.IService) IHandler

NewHandler returns new instance of handler with all methods attached

Jump to

Keyboard shortcuts

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