Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MFilter = app_msg.Apply(&MsgFilter{}).(*MsgFilter)
)
Functions ¶
func ExpectString ¶
Types ¶
type Filter ¶
type Filter interface {
Acceptor
mo_multi.MultiValue
SetOptions(o ...FilterOpt)
// Debug information
Debug() interface{}
// Weather the filter enabled or not.
// Note: Accept() will return true when the filter is not enabled.
IsEnabled() bool
}
type FilterOpt ¶
type FilterOpt interface {
Acceptor
// Bind variable for configure flag
Bind() interface{}
// Filter option name suffix.
NameSuffix() string
// Description of this filter option.
Desc() app_msg.Message
// True if the option enabled thru the flag.
Enabled() bool
// Serialize settings
Capture() interface{}
// Restore settings
Restore(v es_json.Json) error
}
func NewEmailFilter ¶
func NewEmailFilter() FilterOpt
func NewNameFilter ¶
func NewNameFilter() FilterOpt
func NewNamePrefixFilter ¶
func NewNamePrefixFilter() FilterOpt
func NewNameSuffixFilter ¶
func NewNameSuffixFilter() FilterOpt
func NewTestNameFilter ¶
Click to show internal directories.
Click to hide internal directories.