Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReqStatusType ¶
type ReqStatusType int64
const ( RSTATEUnknown ReqStatusType = iota RSTATEOpen RSTATEClosed RSTATEAssigned )
func (ReqStatusType) String ¶
func (s ReqStatusType) String() string
func (*ReqStatusType) UnmarshalYAML ¶
func (s *ReqStatusType) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML unmashals a quoted YAML string to the enum value
type ReqSubType ¶
type ReqSubType int64
const ( RSTUnknown ReqSubType = iota RSTDesignDecision )
func (ReqSubType) String ¶
func (s ReqSubType) String() string
func (*ReqSubType) UnmarshalYAML ¶
func (s *ReqSubType) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML unmashals a quoted YAML string to the enum value
type Requirement ¶
type Requirement struct { SubType ReqSubType `yaml:"subtype"` Name string `yaml:"name"` SolvedBy []string `yaml:"solved-by,flow"` Status ReqStatusType `yaml:"status"` }
func NewRequirement ¶
func NewRequirement(path string) *Requirement
type RequirementGraph ¶
type RequirementGraph struct { *simple.DirectedGraph // Different 'views' towards the graph node content // ID -> Requirement mapping ReqsIDsMap map[int64]*Requirement // Name -> Requirement mapping ReqsNameMap map[string]*Requirement // Name -> ID mapping IDsNameMap map[string]int64 // ID -> graph.Node NodesIDMap map[int64]*graph.Node }
func NewRequirementGraph ¶
func NewRequirementGraph() *RequirementGraph
func (RequirementGraph) AddRequirement ¶
func (self RequirementGraph) AddRequirement( requirement *Requirement) int64
func (RequirementGraph) CreateAllEdges ¶
func (self RequirementGraph) CreateAllEdges(log *zap.Logger)
func (RequirementGraph) GetReqByID ¶
func (self RequirementGraph) GetReqByID(id int64) *Requirement
type RqmgData ¶
type RqmgData struct {
Requirements *RequirementGraph
}
func NewRqmgData ¶
func NewRqmgData() *RqmgData
Click to show internal directories.
Click to hide internal directories.