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, targetID topoapi.ID) (Conn, error) List(ctx context.Context) ([]Conn, error) Watch(ctx context.Context, ch chan<- Conn) error Connect(ctx context.Context, target *topoapi.Object) (Conn, error) }
ConnManager gNMI connection manager
func NewConnManager ¶
func NewConnManager() ConnManager
NewConnManager creates a new gNMI connection manager
type Subscription ¶
type Subscription struct { UpdatesOnly bool Prefix string Mode string StreamMode string SampleInterval uint64 HeartbeatInterval uint64 Paths [][]string Origin string }
Subscription subscription request information
func (*Subscription) Build ¶
func (s *Subscription) Build() (*gnmipb.SubscribeRequest, error)
Build builds a gNMI subscription request
Click to show internal directories.
Click to hide internal directories.