MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / GetSub

Method GetSub

module/catalogue/tree.go:34–47  ·  view source on GitHub ↗
(uuid string)

Source from the content-addressed store, hash-verified

32}
33
34func (r *Root) GetSub(uuid string) []string {
35 if uuid == "" {
36 uuids := make([]string, 0, len(r.list))
37 for _, g := range r.list {
38 uuids = append(uuids, g.Uuid)
39 }
40 return uuids
41 }
42 n, has := r.nodes[uuid]
43 if has {
44 return n.SubId()
45 }
46 return nil
47}
48func NewRoot(list []*catalogue.Catalogue) *Root {
49 m := make(map[string]*Group)
50 l := make([]*Group, 0, len(list))

Callers

nothing calls this directly

Calls 1

SubIdMethod · 0.80

Tested by

no test coverage detected