ioc

package
v0.0.0-...-b1757e7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiHandlerIocContainer = &IocContainer{
	store: map[string]IocObject{},
}

Functions

This section is empty.

Types

type GinApiHandler

type GinApiHandler interface {
	Registry(gin.IRouter)
}

type IocContainer

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

func DefaultApiHandlerContainer

func DefaultApiHandlerContainer() *IocContainer

func DefaultControllerContainer

func DefaultControllerContainer() *IocContainer

func (*IocContainer) Get

func (c *IocContainer) Get(name string) IocObject

func (*IocContainer) Init

func (c *IocContainer) Init() error

func (*IocContainer) Register

func (c *IocContainer) Register(obj IocObject)

func (*IocContainer) RouterRegistry

func (c *IocContainer) RouterRegistry(router gin.IRouter)

type IocObject

type IocObject interface {
	Init() error

	Name() string
}

Jump to

Keyboard shortcuts

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