controller

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	Init(app interface{}, params []string, request *http.Request)
	Run(response http.ResponseWriter, request *http.Request)
}

Controller Main interface for controllers

type Super

type Super struct {
	Controller
	Container    interface{}
	Host         string
	Params       []string
	Session      *session.Session
	SessionStore session.Store
}

Super Super-struct for all controllers.

func (*Super) Init

func (c *Super) Init(app interface{}, params []string, request *http.Request)

Init Initialise the controller

Jump to

Keyboard shortcuts

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