filters

package
v0.0.0-...-8101777 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: AGPL-3.0-or-later Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountAge

type AccountAge struct{}

func (AccountAge) Args

func (f AccountAge) Args() int

func (AccountAge) Deprecated

func (f AccountAge) Deprecated() bool

func (AccountAge) Description

func (f AccountAge) Description() string

func (AccountAge) Name

func (f AccountAge) Name() string

func (AccountAge) NewItem

func (f AccountAge) NewItem(env *models.Env, args []string) (interfaces.FilterItemInterface, error)

type AccountAgeItem

type AccountAgeItem struct {
	Age        time.Duration
	Comparison AmountComparisonType
}

func (*AccountAgeItem) Match

func (f *AccountAgeItem) Match(env *models.Env) bool

type AmountComparisonType

type AmountComparisonType string
const (
	AmountComparisonLT AmountComparisonType = "lt"
	AmountComparisonGT AmountComparisonType = "gt"
	AmountComparisonEQ AmountComparisonType = "eq"
)

type AttachmentsCount

type AttachmentsCount struct{}

func (AttachmentsCount) Args

func (f AttachmentsCount) Args() int

func (AttachmentsCount) Deprecated

func (f AttachmentsCount) Deprecated() bool

func (AttachmentsCount) Description

func (f AttachmentsCount) Description() string

func (AttachmentsCount) Name

func (f AttachmentsCount) Name() string

func (AttachmentsCount) NewItem

type AttachmentsCountItem

type AttachmentsCountItem struct {
	Amount     int
	Comparison AmountComparisonType
}

func (*AttachmentsCountItem) Match

func (f *AttachmentsCountItem) Match(env *models.Env) bool

type BucketAmount

type BucketAmount struct{}

func (BucketAmount) Args

func (f BucketAmount) Args() int

func (BucketAmount) Deprecated

func (f BucketAmount) Deprecated() bool

func (BucketAmount) Description

func (f BucketAmount) Description() string

func (BucketAmount) Name

func (f BucketAmount) Name() string

func (BucketAmount) NewItem

func (f BucketAmount) NewItem(env *models.Env, args []string) (interfaces.FilterItemInterface, error)

type BucketAmountItem

type BucketAmountItem struct {
	Amount     int
	Comparison AmountComparisonType
}

func (*BucketAmountItem) Match

func (f *BucketAmountItem) Match(env *models.Env) bool

type Channel

type Channel struct{}

func (Channel) Args

func (f Channel) Args() int

func (Channel) Deprecated

func (f Channel) Deprecated() bool

func (Channel) Description

func (f Channel) Description() string

func (Channel) Name

func (f Channel) Name() string

func (Channel) NewItem

func (f Channel) NewItem(env *models.Env, args []string) (interfaces.FilterItemInterface, error)

type ChannelID

type ChannelID struct{}

deprecated: use if_channel

func (ChannelID) Args

func (f ChannelID) Args() int

func (ChannelID) Deprecated

func (f ChannelID) Deprecated() bool

func (ChannelID) Description

func (f ChannelID) Description() string

func (ChannelID) Name

func (f ChannelID) Name() string

func (ChannelID) NewItem

func (f ChannelID) NewItem(env *models.Env, args []string) (interfaces.FilterItemInterface, error)

type ChannelIDItem

type ChannelIDItem struct {
	// contains filtered or unexported fields
}

func (*ChannelIDItem) Match

func (f *ChannelIDItem) Match(env *models.Env) bool

type ChannelItem

type ChannelItem struct {
	// contains filtered or unexported fields
}

func (*ChannelItem) Match

func (f *ChannelItem) Match(env *models.Env) bool

type EmojiCount

type EmojiCount struct{}

func (EmojiCount) Args

func (f EmojiCount) Args() int

func (EmojiCount) Deprecated

func (f EmojiCount) Deprecated() bool

func (EmojiCount) Description

func (f EmojiCount) Description() string

func (EmojiCount) Name

func (f EmojiCount) Name() string

func (EmojiCount) NewItem

func (f EmojiCount) NewItem(env *models.Env, args []string) (interfaces.FilterItemInterface, error)

type EmojiCountItem

type EmojiCountItem struct {
	Amount     int
	Comparison AmountComparisonType
}

func (*EmojiCountItem) Match

func (f *EmojiCountItem) Match(env *models.Env) bool

type InvitesCount

type InvitesCount struct{}

func (InvitesCount) Args

func (f InvitesCount) Args() int

func (InvitesCount) Deprecated

func (f InvitesCount) Deprecated() bool

func (InvitesCount) Description

func (f InvitesCount) Description() string

func (InvitesCount) Name

func (f InvitesCount) Name() string

func (InvitesCount) NewItem

func (f InvitesCount) NewItem(env *models.Env, args []string) (interfaces.FilterItemInterface, error)

type InvitesCountItem

type InvitesCountItem struct {
	Amount     int
	Comparison AmountComparisonType
}

func (*InvitesCountItem) Match

func (f *InvitesCountItem) Match(env *models.Env) bool

type MentionsCount

type MentionsCount struct{}

func (MentionsCount) Args

func (f MentionsCount) Args() int

func (MentionsCount) Deprecated

func (f MentionsCount) Deprecated() bool

func (MentionsCount) Description

func (f MentionsCount) Description() string

func (MentionsCount) Name

func (f MentionsCount) Name() string

func (MentionsCount) NewItem

func (f MentionsCount) NewItem(env *models.Env, args []string) (interfaces.FilterItemInterface, error)

type MentionsCountItem

type MentionsCountItem struct {
	Amount     int
	Comparison AmountComparisonType
}

func (*MentionsCountItem) Match

func (f *MentionsCountItem) Match(env *models.Env) bool

type RegexMessageContent

type RegexMessageContent struct{}

func (RegexMessageContent) Args

func (f RegexMessageContent) Args() int

func (RegexMessageContent) Deprecated

func (f RegexMessageContent) Deprecated() bool

func (RegexMessageContent) Description

func (f RegexMessageContent) Description() string

func (RegexMessageContent) Name

func (f RegexMessageContent) Name() string

func (RegexMessageContent) NewItem

type RegexMessageContentItem

type RegexMessageContentItem struct {
	// contains filtered or unexported fields
}

func (*RegexMessageContentItem) Match

func (f *RegexMessageContentItem) Match(env *models.Env) bool

type RegexUserName

type RegexUserName struct{}

func (RegexUserName) Args

func (f RegexUserName) Args() int

func (RegexUserName) Deprecated

func (f RegexUserName) Deprecated() bool

func (RegexUserName) Description

func (f RegexUserName) Description() string

func (RegexUserName) Name

func (f RegexUserName) Name() string

func (RegexUserName) NewItem

func (f RegexUserName) NewItem(env *models.Env, args []string) (interfaces.FilterItemInterface, error)

type RegexUserNameItem

type RegexUserNameItem struct {
	// contains filtered or unexported fields
}

func (*RegexUserNameItem) Match

func (f *RegexUserNameItem) Match(env *models.Env) bool

type Role

type Role struct{}

func (Role) Args

func (f Role) Args() int

func (Role) Deprecated

func (f Role) Deprecated() bool

func (Role) Description

func (f Role) Description() string

func (Role) Name

func (f Role) Name() string

func (Role) NewItem

func (f Role) NewItem(env *models.Env, args []string) (interfaces.FilterItemInterface, error)

type RoleID

type RoleID struct{}

deprecated: use if_role

func (RoleID) Args

func (f RoleID) Args() int

func (RoleID) Deprecated

func (f RoleID) Deprecated() bool

func (RoleID) Description

func (f RoleID) Description() string

func (RoleID) Name

func (f RoleID) Name() string

func (RoleID) NewItem

func (f RoleID) NewItem(env *models.Env, args []string) (interfaces.FilterItemInterface, error)

type RoleIDItem

type RoleIDItem struct {
	RoleIDs []string
}

func (*RoleIDItem) Match

func (f *RoleIDItem) Match(env *models.Env) bool

type RoleItem

type RoleItem struct {
	RoleIDs []string
}

func (*RoleItem) Match

func (f *RoleItem) Match(env *models.Env) bool

type True

type True struct{}

func (True) Args

func (f True) Args() int

func (True) Deprecated

func (f True) Deprecated() bool

func (True) Description

func (f True) Description() string

func (True) Name

func (f True) Name() string

func (True) NewItem

func (f True) NewItem(env *models.Env, args []string) (interfaces.FilterItemInterface, error)

type TrueItem

type TrueItem struct{}

func (*TrueItem) Match

func (f *TrueItem) Match(env *models.Env) bool

type User

type User struct{}

func (User) Args

func (f User) Args() int

func (User) Deprecated

func (f User) Deprecated() bool

func (User) Description

func (f User) Description() string

func (User) Name

func (f User) Name() string

func (User) NewItem

func (f User) NewItem(env *models.Env, args []string) (interfaces.FilterItemInterface, error)

type UserID

type UserID struct{}

deprecated: use if_is_user

func (UserID) Args

func (f UserID) Args() int

func (UserID) Deprecated

func (f UserID) Deprecated() bool

func (UserID) Description

func (f UserID) Description() string

func (UserID) Name

func (f UserID) Name() string

func (UserID) NewItem

func (f UserID) NewItem(env *models.Env, args []string) (interfaces.FilterItemInterface, error)

type UserIDItem

type UserIDItem struct {
	UserIDs []string
}

func (*UserIDItem) Match

func (f *UserIDItem) Match(env *models.Env) bool

type UserItem

type UserItem struct {
	UserIDs []string
}

func (*UserItem) Match

func (f *UserItem) Match(env *models.Env) bool

type Wait

type Wait struct{}

func (Wait) Args

func (f Wait) Args() int

func (Wait) Deprecated

func (f Wait) Deprecated() bool

func (Wait) Description

func (f Wait) Description() string

func (Wait) Name

func (f Wait) Name() string

func (Wait) NewItem

func (f Wait) NewItem(env *models.Env, args []string) (interfaces.FilterItemInterface, error)

type WaitItem

type WaitItem struct {
	Duration time.Duration
}

func (*WaitItem) Match

func (f *WaitItem) Match(env *models.Env) bool

Jump to

Keyboard shortcuts

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