Documentation ¶
Overview ¶
Package extendx Created by xuzhuoxi on 2019-02-17. @author xuzhuoxi
Package extendx Created by xuzhuoxi on 2019-02-17. @author xuzhuoxi
Index ¶
- type ExtensionContainer
- func (m *ExtensionContainer) AppendExtension(extension IExtension)
- func (m *ExtensionContainer) CheckExtension(name string) bool
- func (m *ExtensionContainer) Extensions() []IExtension
- func (m *ExtensionContainer) ExtensionsReversed() []IExtension
- func (m *ExtensionContainer) GetExtension(name string) IExtension
- func (m *ExtensionContainer) HandleAt(index int, handler func(index int, extension IExtension)) error
- func (m *ExtensionContainer) HandleAtName(name string, handler func(name string, extension IExtension)) error
- func (m *ExtensionContainer) Len() int
- func (m *ExtensionContainer) Range(handler func(index int, extension IExtension))
- func (m *ExtensionContainer) RangeReverse(handler func(index int, extension IExtension))
- type IEnableExtension
- type IExtension
- type IExtensionContainer
- type IInitExtension
- type ISaveExtension
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtensionContainer ¶
type ExtensionContainer struct {
// contains filtered or unexported fields
}
func NewExtensionContainer ¶
func NewExtensionContainer() ExtensionContainer
func (*ExtensionContainer) AppendExtension ¶
func (m *ExtensionContainer) AppendExtension(extension IExtension)
func (*ExtensionContainer) CheckExtension ¶
func (m *ExtensionContainer) CheckExtension(name string) bool
func (*ExtensionContainer) Extensions ¶
func (m *ExtensionContainer) Extensions() []IExtension
func (*ExtensionContainer) ExtensionsReversed ¶
func (m *ExtensionContainer) ExtensionsReversed() []IExtension
func (*ExtensionContainer) GetExtension ¶
func (m *ExtensionContainer) GetExtension(name string) IExtension
func (*ExtensionContainer) HandleAt ¶
func (m *ExtensionContainer) HandleAt(index int, handler func(index int, extension IExtension)) error
func (*ExtensionContainer) HandleAtName ¶
func (m *ExtensionContainer) HandleAtName(name string, handler func(name string, extension IExtension)) error
func (*ExtensionContainer) Len ¶
func (m *ExtensionContainer) Len() int
func (*ExtensionContainer) Range ¶
func (m *ExtensionContainer) Range(handler func(index int, extension IExtension))
func (*ExtensionContainer) RangeReverse ¶
func (m *ExtensionContainer) RangeReverse(handler func(index int, extension IExtension))
type IEnableExtension ¶
type IExtension ¶
type IExtension interface { // ExtensionName 主键标识 ExtensionName() string }
type IExtensionContainer ¶
type IExtensionContainer interface { // AppendExtension // 增加Extension AppendExtension(extension IExtension) // CheckExtension // 检查 CheckExtension(name string) bool // GetExtension // 取Extension GetExtension(name string) IExtension // Len // Extension数量 Len() int // Extensions // 列表 Extensions() []IExtension // ExtensionsReversed // 反向列表 ExtensionsReversed() []IExtension // Range // 按列表处理 Range(handler func(index int, extension IExtension)) // RangeReverse // 按反向列表处理 RangeReverse(handler func(index int, extension IExtension)) // HandleAt // 对指定Extension执行处理 HandleAt(index int, handler func(index int, extension IExtension)) error // HandleAtName // 对指定Extension执行处理 HandleAtName(name string, handler func(name string, extension IExtension)) error }
func NewIExtensionContainer ¶
func NewIExtensionContainer() IExtensionContainer
type IInitExtension ¶
type ISaveExtension ¶
type ISaveExtension interface { // SaveExtension 保存数据 SaveExtension() error }
Click to show internal directories.
Click to hide internal directories.