Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowAllFilter ¶
type AllowAllFilter struct {
Filter
}
func (*AllowAllFilter) AllowChanId ¶
func (f *AllowAllFilter) AllowChanId(id uint64) bool
func (*AllowAllFilter) AllowPubKey ¶
func (f *AllowAllFilter) AllowPubKey(id string) bool
func (*AllowAllFilter) AllowSpecial ¶
func (f *AllowAllFilter) AllowSpecial(private bool) bool
type FileFilter ¶
func (*FileFilter) AllowChanId ¶
func (f *FileFilter) AllowChanId(id uint64) bool
func (*FileFilter) AllowPubKey ¶
func (f *FileFilter) AllowPubKey(id string) bool
func (*FileFilter) AllowSpecial ¶
func (f *FileFilter) AllowSpecial(private bool) bool
func (*FileFilter) Reload ¶
func (f *FileFilter) Reload() error
type Filter ¶
type Filter struct {
Options Options
// contains filtered or unexported fields
}
func (*Filter) AllowChanId ¶
func (*Filter) AllowPubKey ¶
func (*Filter) AllowSpecial ¶
type FilterInterface ¶
type FilterInterface interface {
AllowPubKey(id string) bool
AllowChanId(id uint64) bool
AllowSpecial(private bool) bool
}
func NewAllowAllFilter ¶
func NewAllowAllFilter() (FilterInterface, error)
func NewFilterFromFile ¶
func NewUnitTestFilter ¶
func NewUnitTestFilter() (FilterInterface, error)
type UnitTestFilter ¶
type UnitTestFilter struct {
Filter
}
func (*UnitTestFilter) AddAllowChanId ¶
func (u *UnitTestFilter) AddAllowChanId(id uint64)
func (*UnitTestFilter) AddAllowPubKey ¶
func (u *UnitTestFilter) AddAllowPubKey(id string)
func (*UnitTestFilter) ChangeOptions ¶
func (f *UnitTestFilter) ChangeOptions(options Options)
Click to show internal directories.
Click to hide internal directories.