loc

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(ls *persist.LoadSaver) core.Identifier

func New

func New(opts ...config.Option) (core.Identifier, error)

Types

type Identification

type Identification struct {
	Namespace string
	ID        string
	Name      string
	LongName  string
	MIME      string
	Basis     []string
	Warning   string
	// contains filtered or unexported fields
}

func (Identification) Archive

func (id Identification) Archive() config.Archive

func (Identification) Known

func (id Identification) Known() bool

func (Identification) String

func (id Identification) String() string

func (Identification) Values added in v1.7.1

func (id Identification) Values() []string

func (Identification) Warn

func (id Identification) Warn() string

type Identifier

type Identifier struct {
	*identifier.Base
	// contains filtered or unexported fields
}

func (*Identifier) Fields

func (i *Identifier) Fields() []string

func (*Identifier) Recorder

func (i *Identifier) Recorder() core.Recorder

func (*Identifier) Save

func (i *Identifier) Save(ls *persist.LoadSaver)

type Recorder

type Recorder struct {
	*Identifier
	// contains filtered or unexported fields
}

func (*Recorder) Active

func (r *Recorder) Active(m core.MatcherType)

func (*Recorder) Record

func (r *Recorder) Record(m core.MatcherType, res core.Result) bool

func (*Recorder) Report

func (r *Recorder) Report() []core.Identification

func (*Recorder) Satisfied

func (r *Recorder) Satisfied(mt core.MatcherType) (bool, core.Hint)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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