Documentation ¶
Overview ¶
Package memxl provides a xlistd.List implementation that uses main memory for storage.
This package is a work in progress and makes no API stability promises.
Index ¶
- Constants
- func Builder(defaultCfg Config) xlistd.BuildListFn
- func LoadFromData(list *List, data []Data, clearBefore bool) error
- func LoadFromFile(list *List, filename string, clearBefore bool) error
- type Config
- type Data
- type List
- func (l *List) AddCIDR4(cidr string) error
- func (l *List) AddCIDR4s(cidrs []string) error
- func (l *List) AddCIDR6(cidr string) error
- func (l *List) AddCIDR6s(cidrs []string) error
- func (l *List) AddDomain(domain string) error
- func (l *List) AddDomains(domains []string) error
- func (l *List) AddIP4(ip string) error
- func (l *List) AddIP4s(ips []string) error
- func (l *List) AddIP6(ip string) error
- func (l *List) AddIP6s(ips []string) error
- func (l *List) AddMD5(hash string) error
- func (l *List) AddMD5s(hashes []string) error
- func (l *List) AddSHA1(hash string) error
- func (l *List) AddSHA1s(hashes []string) error
- func (l *List) AddSHA256(hash string) error
- func (l *List) AddSHA256s(hashes []string) error
- func (l *List) AddSubdomain(subdomain string) error
- func (l *List) AddSubdomains(subdomains []string) error
- func (l *List) Append(ctx context.Context, name string, r xlist.Resource, f xlistd.Format) error
- func (l *List) Check(ctx context.Context, name string, resource xlist.Resource) (xlist.Response, error)
- func (l *List) Class() string
- func (l *List) Clear() error
- func (l *List) ID() string
- func (l *List) LoadData(ctx context.Context, data []Data) error
- func (l *List) LoadReader(ctx context.Context, in io.Reader) error
- func (l *List) Ping() error
- func (l *List) Remove(ctx context.Context, name string, r xlist.Resource, f xlistd.Format) error
- func (l *List) Resources(ctx context.Context) ([]xlist.Resource, error)
Constants ¶
View Source
const ComponentClass = "mem"
ComponentClass registered.
Variables ¶
This section is empty.
Functions ¶
func Builder ¶
func Builder(defaultCfg Config) xlistd.BuildListFn
Builder returns a builder function.
func LoadFromData ¶
LoadFromData loads a hashmem list from a data array
Types ¶
type List ¶
type List struct {
// contains filtered or unexported fields
}
List stores all items in memory.
func (*List) AddDomains ¶
AddDomains add a list of domains.
func (*List) AddSHA256s ¶
AddSHA256s add a list of sha256 hashes.
func (*List) AddSubdomain ¶
AddSubdomain adds a subdomain.
func (*List) AddSubdomains ¶
AddSubdomains add a list of subdomains.
func (*List) Check ¶
func (l *List) Check(ctx context.Context, name string, resource xlist.Resource) (xlist.Response, error)
Check implements xlist.Checker interface.
func (*List) LoadReader ¶
LoadReader data to the list from an io.Reader with the memxl format
Click to show internal directories.
Click to hide internal directories.