ixgnmi

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package ixgnmi provides a GNMI client for Ixia.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is an Ixia GNMI client.

func NewClient

func NewClient(ctx context.Context, name string, reader StatReader, client *ixconfig.Client, opts ...grpc.DialOption) (_ *Client, rerr error)

NewClient creates a new Ixia gNMI client.

func (*Client) Flush

func (c *Client) Flush()

Flush flushes the GNMI data for the Ixia.

func (*Client) Subscribe

func (c *Client) Subscribe(ctx context.Context, opts ...grpc.CallOption) (gpb.GNMI_SubscribeClient, error)

type StatReader

type StatReader func(context.Context, []string) (*Stats, error)

StatReader reads Ixia stats for a specified set of views.

type Stats

type Stats struct {
	Tables            map[string]ixweb.StatTable
	IngressTrackFlows []string
	EgressTrackFlows  []string
}

Stats are Ixia statistics collected from ixia.

Jump to

Keyboard shortcuts

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