Documentation ¶
Index ¶
- type DB
- func (db *DB) Delete(segID common.RawBytes) (int, error)
- func (db *DB) DeleteWithIntf(intf query.IntfSpec) (int, error)
- func (db *DB) Get(params *query.Params) ([]*query.Result, error)
- func (db *DB) Insert(pseg *seg.PathSegment, segTypes []seg.Type) (int, error)
- func (db *DB) InsertWithHPCfgIDs(pseg *seg.PathSegment, segTypes []seg.Type, hpCfgIDs []*query.HPCfgID) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) Delete ¶
Delete deletes a path segment with a given ID. Returns the number of deleted path segments (0 or 1).
func (*DB) DeleteWithIntf ¶
DeleteWithIntf deletes all path segments that contain a given interface. Returns the number of path segments deleted.
Click to show internal directories.
Click to hide internal directories.