conn

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: Apache-2.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 Conn

type Conn interface {
	// Insert or update a path segment.
	Insert(context.Context, *seg.PathSegment, []proto.PathSegType) (int, error)
	// Insert or update a path segment with a given label.
	InsertWithHPCfgIDs(context.Context, *seg.PathSegment, []proto.PathSegType, []*query.HPCfgID) (
		int, error)
	// Deletes a path segment with a given ID. Returns the number of deleted
	// path segments (0 or 1).
	Delete(context.Context, common.RawBytes) (int, error)
	// Deletes all path segments that contain a given interface. Returns the number
	// of path segments deleted.
	DeleteWithIntf(context.Context, query.IntfSpec) (int, error)
	// Get returns all path segment(s) matching the parameters specified.
	Get(context.Context, *query.Params) ([]*query.Result, error)
}

Jump to

Keyboard shortcuts

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