controllers

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package controllers integrates the controllers used by the application

Index

Constants

This section is empty.

Variables

View Source
var AllControllers = make(Set)

AllControllers contains all the controllers that are registered by the application

Functions

This section is empty.

Types

type Controller

type Controller interface {
	Init(di *DependencyInjection)
	ServeHTTP(w http.ResponseWriter, r *http.Request)
	BackendType() ControllerBackendType
}

Controller is the interface a controller must satisfy

type ControllerBackendType

type ControllerBackendType byte
const (
	MainController ControllerBackendType = 1 + iota
	AdminController
	AllController
)

type Set

type Set map[string]Controller

Set defines the controllers set for storing all controllers

Directories

Path Synopsis
Package v0 is the set of version zero api controllers exposed to clients
Package v0 is the set of version zero api controllers exposed to clients

Jump to

Keyboard shortcuts

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