Documentation ¶
Index ¶
- Variables
- type Attr
- type Candidate
- type Canonical
- type CreateCandidate
- type Duplicate
- type ID
- type Machine
- func (m *Machine) Apply(s Transition) error
- func (m *Machine) LastError() error
- func (m *Machine) VisitCreateCandidate(v *CreateCandidate) any
- func (m *Machine) VisitMarkAsCanonical(v *MarkAsCanonical) any
- func (m *Machine) VisitMarkAsDuplicate(v *MarkAsDuplicate) any
- func (m *Machine) VisitMarkAsUnique(v *MarkAsUnique) any
- type MarkAsCanonical
- type MarkAsDuplicate
- type MarkAsUnique
- type Unique
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidTransition = fmt.Errorf("invalid transition")
Functions ¶
This section is empty.
Types ¶
type CreateCandidate ¶
type CreateCandidate struct {
ID ID
}
type Machine ¶
type Machine struct {
// contains filtered or unexported fields
}
func NewMachine ¶
func NewMachine() *Machine
func (*Machine) VisitCreateCandidate ¶
func (m *Machine) VisitCreateCandidate(v *CreateCandidate) any
func (*Machine) VisitMarkAsCanonical ¶
func (m *Machine) VisitMarkAsCanonical(v *MarkAsCanonical) any
func (*Machine) VisitMarkAsDuplicate ¶
func (m *Machine) VisitMarkAsDuplicate(v *MarkAsDuplicate) any
func (*Machine) VisitMarkAsUnique ¶
func (m *Machine) VisitMarkAsUnique(v *MarkAsUnique) any
type MarkAsCanonical ¶
type MarkAsCanonical struct{}
type MarkAsDuplicate ¶
type MarkAsDuplicate struct{ CanonicalID ID }
type MarkAsUnique ¶
type MarkAsUnique struct{}
Click to show internal directories.
Click to hide internal directories.