cController

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Component = &ControllerComponent{}

Functions

func GetGinHandlerFunc

func GetGinHandlerFunc(app, name, method string) (gin.HandlerFunc, error)

Types

type ControllerComponent added in v0.3.4

type ControllerComponent struct{}

func (*ControllerComponent) Inject added in v0.3.4

func (i *ControllerComponent) Inject(instance any) bool

func (*ControllerComponent) InjectConf added in v0.4.0

func (i *ControllerComponent) InjectConf(config cComponents.ConfigInterface) bool

func (*ControllerComponent) Listen added in v0.4.0

func (*ControllerComponent) Load added in v0.3.4

func (i *ControllerComponent) Load()

type ControllerContainer

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

func (*ControllerContainer) Get

func (i *ControllerContainer) Get(name string) any

func (*ControllerContainer) Is added in v0.4.0

func (i *ControllerContainer) Is(instance any) bool

func (*ControllerContainer) Range added in v0.4.0

func (i *ControllerContainer) Range(f func(instance any))

func (*ControllerContainer) Remove added in v0.4.0

func (i *ControllerContainer) Remove(name string) bool

func (*ControllerContainer) Save

func (i *ControllerContainer) Save(instance any) bool

type ControllerInterface

type ControllerInterface interface {
	ControllerName() (app, name string)
}

Jump to

Keyboard shortcuts

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