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 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 ¶
func (ij *DefaultContainerInjector) GetValue(in ContainerInjector, t reflect.Type) (reflect.Value, bool)
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
Click to show internal directories.
Click to hide internal directories.