container

package
v0.0.0-...-85aee89 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	GetHTTPConfig() config.HTTPConfig
	GetHTTPConfigurer() api.HTTPConfigurer
	GetSecurityContainer() securityContainer.SecurityContainer
}

Container boot 容器

type ContainerInjector

type ContainerInjector interface {
	// 根据类型获取值
	GetValue(ContainerInjector, reflect.Type) (reflect.Value, bool)
}

ContainerInjector 容器注入器

type ContainerPre

type ContainerPre interface {
	Container
	GetContainerInjector() ContainerInjector
}

ContainerPre 前置容器

type ContainerPrint

type ContainerPrint interface {
	Container
}

ContainerPrint 打印容器实例

type DefaultContainer

type DefaultContainer struct {
	HTTPConfig        config.HTTPConfig
	HTTPConfigurer    api.HTTPConfigurer
	SecurityContainer securityContainer.SecurityContainer
}

DefaultContainer 默认容器

func (*DefaultContainer) GetHTTPConfig

func (c *DefaultContainer) GetHTTPConfig() config.HTTPConfig

GetHTTPConfig default

func (*DefaultContainer) GetHTTPConfigurer

func (c *DefaultContainer) GetHTTPConfigurer() api.HTTPConfigurer

GetHTTPConfigurer default

func (*DefaultContainer) GetSecurityContainer

func (c *DefaultContainer) GetSecurityContainer() securityContainer.SecurityContainer

GetSecurityContainer default

type DefaultContainerInjector

type DefaultContainerInjector struct {
}

DefaultContainerInjector 默认容器注入实现

func (*DefaultContainerInjector) GetValue

GetSecurityInjector 获取安全注入

type DefaultContainerPre

type DefaultContainerPre struct {
	HTTPConfig        config.HTTPConfig
	HTTPConfigurer    api.HTTPConfigurer
	SecurityContainer securityContainer.SecurityContainer `container:"true"`
	ContainerInjector ContainerInjector
}

DefaultContainerPre 默认容器 pre

func (*DefaultContainerPre) GetContainerInjector

func (c *DefaultContainerPre) GetContainerInjector() ContainerInjector

GetContainerInjector default

func (*DefaultContainerPre) GetHTTPConfig

func (c *DefaultContainerPre) GetHTTPConfig() config.HTTPConfig

GetHTTPConfig default

func (*DefaultContainerPre) GetHTTPConfigurer

func (c *DefaultContainerPre) GetHTTPConfigurer() api.HTTPConfigurer

GetHTTPConfigurer default

func (*DefaultContainerPre) GetSecurityContainer

func (c *DefaultContainerPre) GetSecurityContainer() securityContainer.SecurityContainer

GetSecurityContainer default

type Factory

type Factory func(context.Context) (Container, func(), error)

Factory 容器工厂

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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