http

package
v0.0.0-...-ffd3783 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bootstrap

type Bootstrap struct{}

func NewBootstrap

func NewBootstrap() *Bootstrap

func (*Bootstrap) BootstrapControllers

func (b *Bootstrap) BootstrapControllers(db *dbCommon.DB) []httpCommon.Controller

type CategoryController

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

func NewCategoryController

func NewCategoryController(service domain.CategoryService, responder CategoryResponder, reqHandler *CategoryRequestHandler) *CategoryController

func (*CategoryController) RegisterRoutes

func (c *CategoryController) RegisterRoutes(r *mux.Router)

type CategoryRequestHandler

type CategoryRequestHandler struct{}

func NewCategoryRequestHandler

func NewCategoryRequestHandler() *CategoryRequestHandler

type CategoryResponder

type CategoryResponder interface {
	RespondSuccessOk(w http.ResponseWriter, data any, n int)
	RespondSuccessNoContent(w http.ResponseWriter)
	RespondErrorNotFound(w http.ResponseWriter)
	RespondError(w http.ResponseWriter, message string, httpStatus int)
}

Jump to

Keyboard shortcuts

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