lldp

package
v0.0.0-...-8049898 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2017 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Overview

Package lldp is a generated protocol buffer package.

It is generated from these files:

lldp.proto

It has these top-level messages:

EmptyMessage
Neighbor
Interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterLldpServer

func RegisterLldpServer(s *grpc.Server, srv LldpServer)

Types

type EmptyMessage

type EmptyMessage struct {
}

func (*EmptyMessage) Descriptor

func (*EmptyMessage) Descriptor() ([]byte, []int)

func (*EmptyMessage) ProtoMessage

func (*EmptyMessage) ProtoMessage()

func (*EmptyMessage) Reset

func (m *EmptyMessage) Reset()

func (*EmptyMessage) String

func (m *EmptyMessage) String() string

type Interface

type Interface struct {
	Index        int32  `protobuf:"varint,1,opt,name=index" json:"index,omitempty"`
	Mtu          int32  `protobuf:"varint,2,opt,name=mtu" json:"mtu,omitempty"`
	Name         string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
	Hardwareaddr string `protobuf:"bytes,4,opt,name=hardwareaddr" json:"hardwareaddr,omitempty"`
	Flags        uint32 `protobuf:"varint,5,opt,name=flags" json:"flags,omitempty"`
}

func (*Interface) Descriptor

func (*Interface) Descriptor() ([]byte, []int)

func (*Interface) ProtoMessage

func (*Interface) ProtoMessage()

func (*Interface) Reset

func (m *Interface) Reset()

func (*Interface) String

func (m *Interface) String() string

type LldpClient

type LldpClient interface {
	ListInterfaces(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (Lldp_ListInterfacesClient, error)
	GetInterfaceDetails(ctx context.Context, in *Interface, opts ...grpc.CallOption) (*Interface, error)
	ListInterfaceNeighbors(ctx context.Context, in *Interface, opts ...grpc.CallOption) (Lldp_ListInterfaceNeighborsClient, error)
	ListNeighbors(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (Lldp_ListNeighborsClient, error)
}

func NewLldpClient

func NewLldpClient(cc *grpc.ClientConn) LldpClient

type LldpServer

type LldpServer interface {
	ListInterfaces(*EmptyMessage, Lldp_ListInterfacesServer) error
	GetInterfaceDetails(context.Context, *Interface) (*Interface, error)
	ListInterfaceNeighbors(*Interface, Lldp_ListInterfaceNeighborsServer) error
	ListNeighbors(*EmptyMessage, Lldp_ListNeighborsServer) error
}

type Lldp_ListInterfaceNeighborsClient

type Lldp_ListInterfaceNeighborsClient interface {
	Recv() (*Neighbor, error)
	grpc.ClientStream
}

type Lldp_ListInterfaceNeighborsServer

type Lldp_ListInterfaceNeighborsServer interface {
	Send(*Neighbor) error
	grpc.ServerStream
}

type Lldp_ListInterfacesClient

type Lldp_ListInterfacesClient interface {
	Recv() (*Interface, error)
	grpc.ClientStream
}

type Lldp_ListInterfacesServer

type Lldp_ListInterfacesServer interface {
	Send(*Interface) error
	grpc.ServerStream
}

type Lldp_ListNeighborsClient

type Lldp_ListNeighborsClient interface {
	Recv() (*Neighbor, error)
	grpc.ClientStream
}

type Lldp_ListNeighborsServer

type Lldp_ListNeighborsServer interface {
	Send(*Neighbor) error
	grpc.ServerStream
}

type Neighbor

type Neighbor struct {
	Portid          string `protobuf:"bytes,1,opt,name=portid" json:"portid,omitempty"`
	Portdescription string `protobuf:"bytes,2,opt,name=portdescription" json:"portdescription,omitempty"`
	Sysname         string `protobuf:"bytes,3,opt,name=sysname" json:"sysname,omitempty"`
	Sysdesc         string `protobuf:"bytes,4,opt,name=sysdesc" json:"sysdesc,omitempty"`
	Address         string `protobuf:"bytes,5,opt,name=address" json:"address,omitempty"`
	Vlan            string `protobuf:"bytes,6,opt,name=vlan" json:"vlan,omitempty"`
	Type            string `protobuf:"bytes,7,opt,name=type" json:"type,omitempty"`
}

func (*Neighbor) Descriptor

func (*Neighbor) Descriptor() ([]byte, []int)

func (*Neighbor) ProtoMessage

func (*Neighbor) ProtoMessage()

func (*Neighbor) Reset

func (m *Neighbor) Reset()

func (*Neighbor) String

func (m *Neighbor) String() string

Jump to

Keyboard shortcuts

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