http

package
v0.0.0-...-98765d7 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserHandler

func NewUserHandler(r *mux.Router, us user.Usecase)

NewUserHandler will initialize the /users resources endpoint

Types

type User

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

User struct

type UserHandler

type UserHandler struct {
	UsrUsecase user.Usecase
}

UserHandler represent the httphandler for user

func (*UserHandler) FetchUser

func (usr *UserHandler) FetchUser(w http.ResponseWriter, r *http.Request)

FetchUser handler

func (*UserHandler) GetByID

func (usr *UserHandler) GetByID(w http.ResponseWriter, r *http.Request)

GetByID handler

Jump to

Keyboard shortcuts

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