data

package
v0.0.0-...-6113e57 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

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

type Topic

type Topic struct {
	Name string `yaml:"name"`
}

func NewTopic

func NewTopic(path string) *Topic

Jump to

Keyboard shortcuts

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