server

package
v0.0.0-...-18fed97 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 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 {
	Register(routerGroup *gin.RouterGroup)
}

Controller defines the default functionality of a handler. It must be implemented by any struct that needs to be registered further.

type ControllerWrapper

type ControllerWrapper struct {
	dig.Out

	Controller Controller `group:"controllers"`
}

ControllerWrapper contains a Controller along and helps to initialize the Controllers.

type Controllers

type Controllers struct {
	HTTP []Controller
}

Controllers is a collections of all available controllers.

func NewControllersWithParams

func NewControllersWithParams(cp ControllersParams) Controllers

NewControllersWithParams creates a new collection of controllers based on the given services.

type ControllersParams

type ControllersParams struct {
	dig.In

	Controllers []Controller `group:"controllers"`
}

ControllersParams contains all managed controllers.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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