extendx

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 1 Imported by: 0

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

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 IEnableExtension interface {
	// Enable 是否启用
	Enable() bool
	// EnableExtension 启用
	EnableExtension() error
	// DisableExtension 禁用
	DisableExtension() error
}

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 IInitExtension interface {
	// InitExtension 初始化
	InitExtension() error
	// DestroyExtension 反初始化
	DestroyExtension() error
}

type ISaveExtension

type ISaveExtension interface {
	// SaveExtension 保存数据
	SaveExtension() error
}

Directories

Path Synopsis
Package protox Created by xuzhuoxi on 2019-02-26.
Package protox Created by xuzhuoxi on 2019-02-26.

Jump to

Keyboard shortcuts

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