Documentation
¶
Overview ¶
Package link holds the cross-source links between units.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Unit unit.Unit
Kind EventKind
Actor string // person key, "github:<login>"
At time.Time
Anchor unit.Anchor // Ref "review:<id>", "merged", "closed"
}
Event is a provider-neutral event on a unit, read by the resolver.
type Kind ¶
type Kind string
Kind is the one link-kind enum; extraction ops use these values as link_kind.
type Link ¶
type Link struct {
From unit.Unit `json:"from"`
To unit.Unit `json:"to"`
Kind Kind `json:"kind"`
Item string `json:"item,omitempty"` // item id on From; "" links the unit only and resolves nothing
Evidence unit.Anchor `json:"evidence"` // the message or event that names To
Origin Origin `json:"origin"`
At time.Time `json:"at"`
}