Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { io.Closer Capabilities(ctx context.Context, r *gpb.CapabilityRequest) (*gpb.CapabilityResponse, error) CapabilitiesWithString(ctx context.Context, request string) (*gpb.CapabilityResponse, error) Get(ctx context.Context, r *gpb.GetRequest) (*gpb.GetResponse, error) GetWithString(ctx context.Context, request string) (*gpb.GetResponse, error) Set(ctx context.Context, r *gpb.SetRequest) (*gpb.SetResponse, error) SetWithString(ctx context.Context, request string) (*gpb.SetResponse, error) Subscribe(ctx context.Context, q baseClient.Query) error }
Client gNMI client interface
type ConnManager ¶
type ConnManager interface { Get(ctx context.Context, connID ConnID) (Conn, bool) Connect(ctx context.Context, target *topoapi.Object) error Disconnect(ctx context.Context, targetID topoapi.ID) error Watch(ctx context.Context, ch chan<- Conn) error }
ConnManager gNMI connection manager
func NewConnManager ¶
func NewConnManager() ConnManager
NewConnManager creates a new gNMI connection manager
Click to show internal directories.
Click to hide internal directories.