Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultFilter = new(defaultFilter)
Functions ¶
This section is empty.
Types ¶
type AndGroup ¶
type AndGroup struct {
// contains filtered or unexported fields
}
func NewAndGroup ¶
func NewAndGroup() *AndGroup
func (*AndGroup) Append ¶
func (fg *AndGroup) Append(filters ...Filter)
Append a new filter to the group
type EqualsRepository ¶
type EqualsRepository struct {
// contains filtered or unexported fields
}
func NewEqualsRepository ¶
func NewEqualsRepository(repoName string) *EqualsRepository
func (*EqualsRepository) String ¶
func (er *EqualsRepository) String() string
type EqualsType ¶
type EqualsType struct {
// contains filtered or unexported fields
}
func NewEqualsType ¶
func NewEqualsType(typeName string) *EqualsType
func (*EqualsType) String ¶
func (er *EqualsType) String() string
type Filter ¶
type Filter interface { // Filter should return if the event will be reported or not Filter(e *github.Event) bool }
Filter will control if the github.Event should or not be shown
type FilterGroup ¶
type OrGroup ¶
type OrGroup struct {
// contains filtered or unexported fields
}
func NewOrGroup ¶
func NewOrGroup() *OrGroup
func (*OrGroup) Append ¶
func (fg *OrGroup) Append(filters ...Filter)
Append a new filter to the group
type RepositoryNameRegExpFilter ¶
type RepositoryNameRegExpFilter struct {
// contains filtered or unexported fields
}
func NewRepositoryNameRegExpFilter ¶
func NewRepositoryNameRegExpFilter(r *regexp.Regexp) *RepositoryNameRegExpFilter
func (*RepositoryNameRegExpFilter) Filter ¶
func (f *RepositoryNameRegExpFilter) Filter(e *github.Event) bool
func (*RepositoryNameRegExpFilter) String ¶
func (f *RepositoryNameRegExpFilter) String() string
type TypeRegExpFilter ¶
type TypeRegExpFilter struct {
// contains filtered or unexported fields
}
func NewTypeRegExpFilter ¶
func NewTypeRegExpFilter(r *regexp.Regexp) *TypeRegExpFilter
func (*TypeRegExpFilter) String ¶
func (f *TypeRegExpFilter) String() string
Click to show internal directories.
Click to hide internal directories.