controller

package
v0.0.0-...-abd3fef Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 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 Controller

type Controller struct {
	Context types.IContext
	// contains filtered or unexported fields
}

func (*Controller) CallRoute

func (c *Controller) CallRoute(controllerReflectionType reflect.Type, controllerReflectionValue reflect.Value, fragments []string, request *http.Request) (*response.Response, error)

func (*Controller) Route

func (controller *Controller) Route() string

func (*Controller) SetContext

func (controller *Controller) SetContext(context types.IContext)

type WebSocketController

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

func (*WebSocketController) Upgrade

func (controller *WebSocketController) Upgrade(writer http.ResponseWriter, request *http.Request) (bool, error)

Jump to

Keyboard shortcuts

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