controllers

package
v0.0.0-...-ea53bbc Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseController

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

func (*BaseController) App

func (C *BaseController) App() di.AppInterface

func (*BaseController) GetContext

func (C *BaseController) GetContext() interface{}

func (*BaseController) Run

func (C *BaseController) Run() error

func (*BaseController) SetContainer

func (C *BaseController) SetContainer(app di.AppInterface) Controller

func (*BaseController) SetContext

func (C *BaseController) SetContext(context interface{}) Controller

type CLIController

type CLIController struct {
	BaseController
	// contains filtered or unexported fields
}

func (*CLIController) GetContext

func (C *CLIController) GetContext() interface{}

func (*CLIController) Run

func (C *CLIController) Run() error

func (*CLIController) SetContext

func (C *CLIController) SetContext(context interface{}) Controller

type Controller

type Controller interface {
	GetContext() interface{}
	Run() error
	SetContainer(di.AppInterface) Controller
	SetContext(interface{}) Controller
}

type HTTPController

type HTTPController struct {
	BaseController
	// contains filtered or unexported fields
}

func (*HTTPController) GetContext

func (C *HTTPController) GetContext() interface{}

func (*HTTPController) Run

func (C *HTTPController) Run() error

func (*HTTPController) SetContext

func (C *HTTPController) SetContext(context interface{}) Controller

type WebSocketController

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

func (*WebSocketController) GetContext

func (C *WebSocketController) GetContext() interface{}

func (*WebSocketController) Run

func (C *WebSocketController) Run() error

func (*WebSocketController) SetContext

func (C *WebSocketController) SetContext(context interface{}) Controller

Directories

Path Synopsis
websocket

Jump to

Keyboard shortcuts

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