Documentation
¶
Overview ¶
Package voltha is a generated protocol buffer package.
It is generated from these files:
ponsim.proto
It has these top-level messages:
PonSimDeviceInfo FlowTable PonSimPacketCounter PonSimPortMetrics PonSimMetrics
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPonSimServer ¶
func RegisterPonSimServer(s *grpc.Server, srv PonSimServer)
Types ¶
type FlowTable ¶
type FlowTable struct { Port int32 `protobuf:"varint,1,opt,name=port" json:"port,omitempty"` Flows []*openflow_13.OfpFlowStats `protobuf:"bytes,2,rep,name=flows" json:"flows,omitempty"` }
func (*FlowTable) Descriptor ¶
func (*FlowTable) GetFlows ¶
func (m *FlowTable) GetFlows() []*openflow_13.OfpFlowStats
func (*FlowTable) ProtoMessage ¶
func (*FlowTable) ProtoMessage()
type PonSimClient ¶
type PonSimClient interface { GetDeviceInfo(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*PonSimDeviceInfo, error) UpdateFlowTable(ctx context.Context, in *FlowTable, opts ...grpc.CallOption) (*google_protobuf.Empty, error) GetStats(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*PonSimMetrics, error) }
func NewPonSimClient ¶
func NewPonSimClient(cc *grpc.ClientConn) PonSimClient
type PonSimDeviceInfo ¶
type PonSimDeviceInfo struct { NniPort int32 `protobuf:"varint,1,opt,name=nni_port,json=nniPort" json:"nni_port,omitempty"` UniPorts []int32 `protobuf:"varint,2,rep,packed,name=uni_ports,json=uniPorts" json:"uni_ports,omitempty"` }
func (*PonSimDeviceInfo) Descriptor ¶
func (*PonSimDeviceInfo) Descriptor() ([]byte, []int)
func (*PonSimDeviceInfo) GetNniPort ¶
func (m *PonSimDeviceInfo) GetNniPort() int32
func (*PonSimDeviceInfo) GetUniPorts ¶
func (m *PonSimDeviceInfo) GetUniPorts() []int32
func (*PonSimDeviceInfo) ProtoMessage ¶
func (*PonSimDeviceInfo) ProtoMessage()
func (*PonSimDeviceInfo) Reset ¶
func (m *PonSimDeviceInfo) Reset()
func (*PonSimDeviceInfo) String ¶
func (m *PonSimDeviceInfo) String() string
type PonSimMetrics ¶
type PonSimMetrics struct { Device string `protobuf:"bytes,1,opt,name=device" json:"device,omitempty"` Metrics []*PonSimPortMetrics `protobuf:"bytes,2,rep,name=metrics" json:"metrics,omitempty"` }
func (*PonSimMetrics) Descriptor ¶
func (*PonSimMetrics) Descriptor() ([]byte, []int)
func (*PonSimMetrics) GetDevice ¶
func (m *PonSimMetrics) GetDevice() string
func (*PonSimMetrics) GetMetrics ¶
func (m *PonSimMetrics) GetMetrics() []*PonSimPortMetrics
func (*PonSimMetrics) ProtoMessage ¶
func (*PonSimMetrics) ProtoMessage()
func (*PonSimMetrics) Reset ¶
func (m *PonSimMetrics) Reset()
func (*PonSimMetrics) String ¶
func (m *PonSimMetrics) String() string
type PonSimPacketCounter ¶
type PonSimPacketCounter struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Value int64 `protobuf:"varint,2,opt,name=value" json:"value,omitempty"` }
func (*PonSimPacketCounter) Descriptor ¶
func (*PonSimPacketCounter) Descriptor() ([]byte, []int)
func (*PonSimPacketCounter) GetName ¶
func (m *PonSimPacketCounter) GetName() string
func (*PonSimPacketCounter) GetValue ¶
func (m *PonSimPacketCounter) GetValue() int64
func (*PonSimPacketCounter) ProtoMessage ¶
func (*PonSimPacketCounter) ProtoMessage()
func (*PonSimPacketCounter) Reset ¶
func (m *PonSimPacketCounter) Reset()
func (*PonSimPacketCounter) String ¶
func (m *PonSimPacketCounter) String() string
type PonSimPortMetrics ¶
type PonSimPortMetrics struct { PortName string `protobuf:"bytes,1,opt,name=port_name,json=portName" json:"port_name,omitempty"` Packets []*PonSimPacketCounter `protobuf:"bytes,2,rep,name=packets" json:"packets,omitempty"` }
func (*PonSimPortMetrics) Descriptor ¶
func (*PonSimPortMetrics) Descriptor() ([]byte, []int)
func (*PonSimPortMetrics) GetPackets ¶
func (m *PonSimPortMetrics) GetPackets() []*PonSimPacketCounter
func (*PonSimPortMetrics) GetPortName ¶
func (m *PonSimPortMetrics) GetPortName() string
func (*PonSimPortMetrics) ProtoMessage ¶
func (*PonSimPortMetrics) ProtoMessage()
func (*PonSimPortMetrics) Reset ¶
func (m *PonSimPortMetrics) Reset()
func (*PonSimPortMetrics) String ¶
func (m *PonSimPortMetrics) String() string
type PonSimServer ¶
type PonSimServer interface { GetDeviceInfo(context.Context, *google_protobuf.Empty) (*PonSimDeviceInfo, error) UpdateFlowTable(context.Context, *FlowTable) (*google_protobuf.Empty, error) GetStats(context.Context, *google_protobuf.Empty) (*PonSimMetrics, error) }
Click to show internal directories.
Click to hide internal directories.