(ctx context.Context, msg proto.Message, parentID uint64)
| 89 | } |
| 90 | |
| 91 | func (d *decoder) ChildObject(ctx context.Context, msg proto.Message, parentID uint64) error { |
| 92 | obj, err := d.decode(ctx, msg) |
| 93 | if err != nil { |
| 94 | return err |
| 95 | } |
| 96 | return d.add(ctx, obj, d.groups[parentID]) |
| 97 | } |
| 98 | |
| 99 | func (d *decoder) add(ctx context.Context, child, parent interface{}) error { |
| 100 | if parent, ok := parent.(*cmdGroup); ok { |