match

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Candidate added in v0.7.0

type Candidate struct {
	ArticleNumber int64
	MessageID     string
	Subject       string
	Poster        string
	PostedAt      *time.Time
	Bytes         int64
	Lines         int
	Xref          string
	RawOverview   map[string]any
}

type Options added in v0.7.0

type Options struct {
	HighConfidenceThreshold     float64
	ProbableConfidenceThreshold float64
	ArticleBucketSize           int64
}

type Result

type Result struct {
	SourceReleaseKey  string
	ReleaseFamilyKey  string
	FileSetKey        string
	FileFamilyKey     string
	IdentityStrength  string
	IdentityReason    string
	SubjectSetToken   string
	SubjectSetKind    string
	FamilyKind        string
	BaseStem          string
	IsAuxiliary       bool
	IsMainPayload     bool
	ReleaseName       string
	ReleaseKey        string
	BinaryName        string
	BinaryKey         string
	FileName          string
	FileIndex         int
	ExpectedFileCount int
	PartNumber        int
	TotalParts        int
	IsPars            bool
	MatchConfidence   float64
	MatchStatus       string
	GroupingEvidence  map[string]any
}

type Service

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

func NewService

func NewService(opts ...Options) *Service

func (*Service) Match added in v0.7.0

func (s *Service) Match(candidate Candidate) Result

func (*Service) MatchSubject

func (s *Service) MatchSubject(subject, messageID string) Result

Jump to

Keyboard shortcuts

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