controllers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseControllers

type BaseControllers struct {
	Resource   models.BaseResource
	Controller string
	Variable   string
}

func (BaseControllers) AddToRouter

func (controller BaseControllers) AddToRouter(router *http.ServeMux)

func (BaseControllers) Delete

func (controller BaseControllers) Delete() http.Handler

func (BaseControllers) Get

func (controller BaseControllers) Get() http.Handler

func (BaseControllers) GetAll

func (controller BaseControllers) GetAll() http.Handler

func (BaseControllers) Patch

func (controller BaseControllers) Patch() http.Handler

func (BaseControllers) Post

func (controller BaseControllers) Post() http.Handler

type Controllers

type Controllers interface {
	GetAll() http.Handler
	Post() http.Handler
	Get() http.Handler
	Patch() http.Handler
	Delete() http.Handler

	AddToRouter(router *http.ServeMux)
}

Jump to

Keyboard shortcuts

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