Versions in this module Expand all Collapse all v0 v0.1.0 May 11, 2015 v0.0.3 May 6, 2015 v0.0.2 May 6, 2015 Changes in this version + const DepQualified + const LanguageWideQualified + const RepositoryWideQualified + const ScopeQualified + const StatAuthors + const StatClients + const StatDependents + const StatExportedElements + const StatRRefs + const StatURefs + const StatXRefs + const Unqualified + var AllStatTypes = []StatType + var ErrDefNotExist = errors.New("def does not exist") + var MakeDefFormatters = make(map[string]MakeDefFormatter) + var QualLevels = []Qualification + func IsNotExist(err error) bool + func IsValidTreePath(treePath string) bool + func MakeURI(cloneURL string) string + func RegisterMakeDefFormatter(unitType string, f MakeDefFormatter) + func TryMakeURI(cloneURL string) (string, error) + func URIEqual(a, b string) bool + func UniqueRefDefs(refs []*Ref, m map[RefDefKey]int) map[RefDefKey]int + type Def struct + Data json.RawMessage + DefEnd uint32 + DefStart uint32 + Docs []DefDoc + Exported bool + File string + Kind string + Local bool + Name string + Test bool + TreePath string + func (*Def) ProtoMessage() + func (m *Def) Marshal() (data []byte, err error) + func (m *Def) MarshalTo(data []byte) (n int, err error) + func (m *Def) Reset() + func (m *Def) Size() (n int) + func (m *Def) String() string + func (m *Def) Unmarshal(data []byte) error + func (s *Def) Fmt() DefPrintFormatter + func (this *Def) GoString() string + type DefDoc struct + Data string + Format string + func (*DefDoc) ProtoMessage() + func (m *DefDoc) Marshal() (data []byte, err error) + func (m *DefDoc) MarshalTo(data []byte) (n int, err error) + func (m *DefDoc) Reset() + func (m *DefDoc) Size() (n int) + func (m *DefDoc) String() string + func (m *DefDoc) Unmarshal(data []byte) error + func (this *DefDoc) GoString() string + type DefFormatter interface + DefKeyword func() string + Kind func() string + Language func() string + Name func(qual Qualification) string + NameAndTypeSeparator func() string + Type func(qual Qualification) string + type DefKey struct + CommitID string + Path string + Repo string + Unit string + UnitType string + func (*DefKey) ProtoMessage() + func (m *DefKey) Marshal() (data []byte, err error) + func (m *DefKey) MarshalTo(data []byte) (n int, err error) + func (m *DefKey) Reset() + func (m *DefKey) Size() (n int) + func (m *DefKey) String() string + func (m *DefKey) Unmarshal(data []byte) error + func (this *DefKey) GoString() string + type DefPrintFormatter interface + func PrintFormatter(s *Def) DefPrintFormatter + type Defs []*Def + func (defs Defs) KeySet() (keys map[DefKey]struct{}, err error) + func (defs Defs) Keys() (keys []DefKey) + func (vs Defs) Len() int + func (vs Defs) Less(i, j int) bool + func (vs Defs) Swap(i, j int) + type Doc struct + Data string + End uint32 + File string + Format string + Start uint32 + func (*Doc) ProtoMessage() + func (d *Doc) Key() DocKey + func (m *Doc) Marshal() (data []byte, err error) + func (m *Doc) MarshalTo(data []byte) (n int, err error) + func (m *Doc) Reset() + func (m *Doc) Size() (n int) + func (m *Doc) String() string + func (m *Doc) Unmarshal(data []byte) error + func (this *Doc) GoString() string + type DocKey struct + File string + Format string + Start uint32 + func (d DocKey) String() string + type Docs []*Doc + func (vs Docs) Len() int + func (vs Docs) Less(i, j int) bool + func (vs Docs) Swap(i, j int) + type MakeDefFormatter func(*Def) DefFormatter + type Output struct + Anns []*ann.Ann + Defs []*Def + Docs []*Doc + Refs []*Ref + func (*Output) ProtoMessage() + func (m *Output) Marshal() (data []byte, err error) + func (m *Output) MarshalTo(data []byte) (n int, err error) + func (m *Output) Reset() + func (m *Output) Size() (n int) + func (m *Output) String() string + func (m *Output) Unmarshal(data []byte) error + type Propagate struct + DstPath string + DstRepo string + DstUnit string + DstUnitType string + SrcPath string + SrcRepo string + SrcUnit string + SrcUnitType string + type Qualification string + type Ref struct + CommitID string + Def bool + DefPath string + DefRepo string + DefUnit string + DefUnitType string + End uint32 + File string + Repo string + Start uint32 + Unit string + UnitType string + func (*Ref) ProtoMessage() + func (m *Ref) Marshal() (data []byte, err error) + func (m *Ref) MarshalTo(data []byte) (n int, err error) + func (m *Ref) Reset() + func (m *Ref) Size() (n int) + func (m *Ref) String() string + func (m *Ref) Unmarshal(data []byte) error + func (r *Ref) DefKey() DefKey + func (r *Ref) RefDefKey() RefDefKey + func (r *Ref) RefKey() RefKey + func (r *Ref) SetFromDefKey(k DefKey) + func (this *Ref) GoString() string + type RefDefKey struct + DefPath string + DefRepo string + DefUnit string + DefUnitType string + func (*RefDefKey) ProtoMessage() + func (m *RefDefKey) Marshal() (data []byte, err error) + func (m *RefDefKey) MarshalTo(data []byte) (n int, err error) + func (m *RefDefKey) Reset() + func (m *RefDefKey) Size() (n int) + func (m *RefDefKey) String() string + func (m *RefDefKey) Unmarshal(data []byte) error + func (this *RefDefKey) GoString() string + type RefKey struct + CommitID string + Def bool + DefPath string + DefRepo string + DefUnit string + DefUnitType string + End uint32 + File string + Repo string + Start uint32 + Unit string + UnitType string + func (r *RefKey) RefDefKey() RefDefKey + type RefSet struct + func NewRefSet() *RefSet + func (c *RefSet) AddAndCheckUnique(ref Ref) (duplicate bool) + type Refs []*Ref + func (vs Refs) Len() int + func (vs Refs) Less(i, j int) bool + func (vs Refs) Swap(i, j int) + type RepositoryListingDef struct + Language string + Name string + NameLabel string + SortKey string + type StatType string + func (x StatType) IsAbstract() bool + type Stats map[StatType]int