Documentation
¶
Index ¶
- Constants
- func Filter(ids []string, p Parseable) filtered
- func Join(a, b Parseable) joint
- type Base
- func (b *Base) Active(m core.MatcherType) bool
- func (b *Base) Add(m core.Matcher, t core.MatcherType) (core.Matcher, error)
- func (b *Base) Details() string
- func (b *Base) GraphP(i int) string
- func (b *Base) HasSig(id string, ms ...core.MatcherType) bool
- func (b *Base) Hit(m core.MatcherType, idx int) (bool, string)
- func (b *Base) IDs(m core.MatcherType) []string
- func (b *Base) Inspect(ids ...string) (string, error)
- func (b *Base) Lookup(m core.MatcherType, keys []string) []int
- func (b *Base) Multi() config.Multi
- func (b *Base) Name() string
- func (b *Base) NoPriority() bool
- func (b *Base) Place(m core.MatcherType, idx int) (int, int)
- func (b *Base) Recognise(m core.MatcherType, idx int) (bool, string)
- func (b *Base) Save(ls *persist.LoadSaver)
- func (b *Base) Start(m core.MatcherType) int
- func (b *Base) String() string
- func (b *Base) ZipDefault() bool
- type Blank
- func (b Blank) Globs() ([]string, []string)
- func (b Blank) IDs() []string
- func (b Blank) Infos() map[string]FormatInfo
- func (b Blank) MIMEs() ([]string, []string)
- func (b Blank) MSCFBs() ([][]string, [][]frames.Signature, []string, error)
- func (b Blank) Priorities() priority.Map
- func (b Blank) RIFFs() ([][4]byte, []string)
- func (b Blank) Signatures() ([]frames.Signature, []string, error)
- func (b Blank) Texts() []string
- func (b Blank) XMLs() ([][2]string, []string)
- func (b Blank) Zips() ([][]string, [][]frames.Signature, []string, error)
- type FormatInfo
- type Mirror
- type Parseable
Constants ¶
View Source
const ( Priorities int = iota Missing Implicit )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
A base identifier that can be embedded in other identifier
func (*Base) Lookup ¶ added in v1.7.9
func (b *Base) Lookup(m core.MatcherType, keys []string) []int
func (*Base) NoPriority ¶
func (*Base) ZipDefault ¶
type Blank ¶
type Blank struct{}
Blank parseable can be embedded within other parseables in order to include default nil implementations of the interface
func (Blank) Infos ¶
func (b Blank) Infos() map[string]FormatInfo
func (Blank) Priorities ¶
type FormatInfo ¶
type FormatInfo interface {
String() string
}
FormatInfo is Identifier-specific information to be retained for the Identifier.
type Mirror ¶
type Mirror struct{ Parseable }
Mirror reverses the PREV wild segments within signatures as SUCC/EOF wild segments so they match at EOF as well as BOF.
type Parseable ¶
type Parseable interface { IDs() []string // list of all IDs in identifier Infos() map[string]FormatInfo // identifier specific information Globs() ([]string, []string) // signature set and corresponding IDs for globmatcher MIMEs() ([]string, []string) // signature set and corresponding IDs for mimematcher XMLs() ([][2]string, []string) // signature set and corresponding IDs for xmlmatcher Signatures() ([]frames.Signature, []string, error) // signature set and corresponding IDs for bytematcher Zips() ([][]string, [][]frames.Signature, []string, error) // signature set and corresponding IDs for container matcher - Zip MSCFBs() ([][]string, [][]frames.Signature, []string, error) // signature set and corresponding IDs for container matcher - MSCFB RIFFs() ([][4]byte, []string) // signature set and corresponding IDs for riffmatcher Texts() []string // IDs for textmatcher Priorities() priority.Map // priority map }
Parseable is something we can parse to derive filename, MIME, XML and byte signatures.
func ApplyConfig ¶
Click to show internal directories.
Click to hide internal directories.