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 ¶
- func RegisterLldpServer(s *grpc.Server, srv LldpServer)
- type EmptyMessage
- type Interface
- type LldpClient
- type LldpServer
- type Lldp_ListInterfaceNeighborsClient
- type Lldp_ListInterfaceNeighborsServer
- type Lldp_ListInterfacesClient
- type Lldp_ListInterfacesServer
- type Lldp_ListNeighborsClient
- type Lldp_ListNeighborsServer
- type Neighbor
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) ProtoMessage ¶
func (*Interface) ProtoMessage()
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) ProtoMessage ¶
func (*Neighbor) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.