datatable

package
v0.0.0-...-406c194 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WhichTypePath = iota
	WhichTypeUrl
	WhichTypeInline         // Dummy
	DateTypeKeywordTable    = "keyword_table"
	DateTypeNetlistTable    = "netlist_table"
	DateTypeDomainlistTable = "domain_table"
	DateTypeEcsTable        = "ecs_table"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DataTable

type DataTable struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewDataTable

func NewDataTable(datatype string, tag string, wtype int, path, url string, inline string) *DataTable

func NewFromArgs

func NewFromArgs(datatype string, tag string, from string) *DataTable

func (*DataTable) GetData

func (kt *DataTable) GetData() TextData

func (*DataTable) Len

func (kt *DataTable) Len() int

func (*DataTable) LoadAll

func (kt *DataTable) LoadAll()

func (*DataTable) LoadFromFile

func (kt *DataTable) LoadFromFile()

func (*DataTable) LoadFromInline

func (kt *DataTable) LoadFromInline(ws []string)

func (*DataTable) LoadFromUrl

func (kt *DataTable) LoadFromUrl()

func (*DataTable) Match

func (kt *DataTable) Match(name string) bool

func (*DataTable) Reset

func (kt *DataTable) Reset()

func (*DataTable) SetBootstrap

func (kt *DataTable) SetBootstrap(bs []string)

func (*DataTable) SetJwtSecret

func (kt *DataTable) SetJwtSecret(s string)

func (*DataTable) String

func (kt *DataTable) String() string

type DomainData

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

func (*DomainData) ForEach

func (d *DomainData) ForEach(f func(interface{}) error, max int)

func (*DomainData) Len

func (d *DomainData) Len() int

func (*DomainData) LessString

func (d *DomainData) LessString() string

func (*DomainData) Match

func (d *DomainData) Match(name string) bool

func (*DomainData) MatchNet

func (d *DomainData) MatchNet(inet iplib.Net) bool

func (*DomainData) ParseFile

func (d *DomainData) ParseFile(r io.Reader) error

func (*DomainData) ParseInline

func (d *DomainData) ParseInline(ws []string)

func (*DomainData) ParseLines

func (d *DomainData) ParseLines(lines []string, reset bool)

func (*DomainData) Reset

func (d *DomainData) Reset()

type EcsData

type EcsData struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewEcsData

func NewEcsData(tag string) *EcsData

func (*EcsData) ForEach

func (e *EcsData) ForEach(f func(interface{}) error, max int)

func (*EcsData) Len

func (e *EcsData) Len() int

func (*EcsData) LessString

func (e *EcsData) LessString() string

func (*EcsData) Match

func (e *EcsData) Match(name string) bool

func (*EcsData) MatchEcsIP

func (e *EcsData) MatchEcsIP(q string) net.IP

func (*EcsData) MatchNet

func (e *EcsData) MatchNet(inet iplib.Net) bool

func (*EcsData) ParseFile

func (e *EcsData) ParseFile(r io.Reader) error

func (*EcsData) ParseInline

func (e *EcsData) ParseInline(ws []string)

func (*EcsData) ParseLines

func (e *EcsData) ParseLines(lines []string, reset bool)

func (*EcsData) Reset

func (e *EcsData) Reset()

type NetlistData

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

func (*NetlistData) ForEach

func (n *NetlistData) ForEach(f func(interface{}) error, max int)

func (*NetlistData) Len

func (n *NetlistData) Len() int

func (*NetlistData) LessString

func (n *NetlistData) LessString() string

func (*NetlistData) Match

func (n *NetlistData) Match(name string) bool

func (*NetlistData) MatchNet

func (n *NetlistData) MatchNet(inet iplib.Net) bool

func (*NetlistData) ParseFile

func (n *NetlistData) ParseFile(r io.Reader) error

func (*NetlistData) ParseInline

func (n *NetlistData) ParseInline(ws []string)

func (*NetlistData) ParseLines

func (n *NetlistData) ParseLines(lines []string, reset bool)

func (*NetlistData) Reset

func (n *NetlistData) Reset()

type TextData

type TextData interface {
	ParseFile(reader io.Reader) error
	ParseLines(lines []string, reset bool)
	ParseInline(ws []string)
	Match(name string) bool
	MatchNet(inet iplib.Net) bool
	LessString() string
	Reset()
	ForEach(f func(interface{}) error, mx int)
	Len() int
}

Jump to

Keyboard shortcuts

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