tr477

package
v0.0.0-...-8fce991 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GenericMetadata_PacketDirection_name = map[int32]string{
		0: "UNI_TO_NNI",
		1: "NNI_TO_UNI",
	}
	GenericMetadata_PacketDirection_value = map[string]int32{
		"UNI_TO_NNI": 0,
		"NNI_TO_UNI": 1,
	}
)

Enum value maps for GenericMetadata_PacketDirection.

View Source
var CpriHello_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tr477_cpri_service.v2.CpriHello",
	HandlerType: (*CpriHelloServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "HelloCpri",
			Handler:    _CpriHello_HelloCpri_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "tr477_cpri_service.v2.proto",
}

CpriHello_ServiceDesc is the grpc.ServiceDesc for CpriHello service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var CpriMessage_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tr477_cpri_service.v2.CpriMessage",
	HandlerType: (*CpriMessageServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "transferCpri",
			Handler:       _CpriMessage_TransferCpri_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "tr477_cpri_service.v2.proto",
}

CpriMessage_ServiceDesc is the grpc.ServiceDesc for CpriMessage service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_tr477_cpri_message_proto protoreflect.FileDescriptor
View Source
var File_tr477_cpri_service_v2_proto protoreflect.FileDescriptor

Functions

func RegisterCpriHelloServer

func RegisterCpriHelloServer(s grpc.ServiceRegistrar, srv CpriHelloServer)

func RegisterCpriMessageServer

func RegisterCpriMessageServer(s grpc.ServiceRegistrar, srv CpriMessageServer)

Types

type CpriHelloClient

type CpriHelloClient interface {
	HelloCpri(ctx context.Context, in *HelloCpriRequest, opts ...grpc.CallOption) (*HelloCpriResponse, error)
}

CpriHelloClient is the client API for CpriHello service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewCpriHelloClient

func NewCpriHelloClient(cc grpc.ClientConnInterface) CpriHelloClient

type CpriHelloServer

type CpriHelloServer interface {
	HelloCpri(context.Context, *HelloCpriRequest) (*HelloCpriResponse, error)
	// contains filtered or unexported methods
}

CpriHelloServer is the server API for CpriHello service. All implementations must embed UnimplementedCpriHelloServer for forward compatibility

type CpriMessageClient

type CpriMessageClient interface {
	TransferCpri(ctx context.Context, opts ...grpc.CallOption) (CpriMessage_TransferCpriClient, error)
}

CpriMessageClient is the client API for CpriMessage service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type CpriMessageServer

type CpriMessageServer interface {
	TransferCpri(CpriMessage_TransferCpriServer) error
	// contains filtered or unexported methods
}

CpriMessageServer is the server API for CpriMessage service. All implementations must embed UnimplementedCpriMessageServer for forward compatibility

type CpriMessage_TransferCpriClient

type CpriMessage_TransferCpriClient interface {
	Send(*CpriMsg) error
	Recv() (*CpriMsg, error)
	grpc.ClientStream
}

type CpriMessage_TransferCpriServer

type CpriMessage_TransferCpriServer interface {
	Send(*CpriMsg) error
	Recv() (*CpriMsg, error)
	grpc.ServerStream
}

type CpriMetaData

type CpriMetaData struct {
	Generic *GenericMetadata `protobuf:"bytes,1,opt,name=generic,proto3" json:"generic,omitempty"` //Common generic metadata
	Onu     *OnuMetadata     `protobuf:"bytes,2,opt,name=onu,proto3" json:"onu,omitempty"`         //Optional information about the ONU that
	//originated the packet or is destination
	//for the packet
	//
	// Types that are assignable to SpecificMetadata:
	//	*CpriMetaData_Dhcp
	//	*CpriMetaData_Pppoe
	SpecificMetadata isCpriMetaData_SpecificMetadata `protobuf_oneof:"specific_metadata"`
	// contains filtered or unexported fields
}

func (*CpriMetaData) Descriptor deprecated

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

Deprecated: Use CpriMetaData.ProtoReflect.Descriptor instead.

func (*CpriMetaData) GetDhcp

func (x *CpriMetaData) GetDhcp() *DhcpMetadata

func (*CpriMetaData) GetGeneric

func (x *CpriMetaData) GetGeneric() *GenericMetadata

func (*CpriMetaData) GetOnu

func (x *CpriMetaData) GetOnu() *OnuMetadata

func (*CpriMetaData) GetPppoe

func (x *CpriMetaData) GetPppoe() *PppoeMetadata

func (*CpriMetaData) GetSpecificMetadata

func (m *CpriMetaData) GetSpecificMetadata() isCpriMetaData_SpecificMetadata

func (*CpriMetaData) ProtoMessage

func (*CpriMetaData) ProtoMessage()

func (*CpriMetaData) ProtoReflect

func (x *CpriMetaData) ProtoReflect() protoreflect.Message

func (*CpriMetaData) Reset

func (x *CpriMetaData) Reset()

func (*CpriMetaData) String

func (x *CpriMetaData) String() string

type CpriMetaData_Dhcp

type CpriMetaData_Dhcp struct {
	Dhcp *DhcpMetadata `protobuf:"bytes,3,opt,name=dhcp,proto3,oneof"`
}

type CpriMetaData_Pppoe

type CpriMetaData_Pppoe struct {
	Pppoe *PppoeMetadata `protobuf:"bytes,4,opt,name=pppoe,proto3,oneof"`
}

type CpriMsg

type CpriMsg struct {
	Header   *CpriMsgHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	MetaData *CpriMetaData  `protobuf:"bytes,2,opt,name=meta_data,json=metaData,proto3" json:"meta_data,omitempty"`
	Packet   []byte         `protobuf:"bytes,3,opt,name=packet,proto3" json:"packet,omitempty"` //Unmodified contents of the packet
	// contains filtered or unexported fields
}

func (*CpriMsg) Descriptor deprecated

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

Deprecated: Use CpriMsg.ProtoReflect.Descriptor instead.

func (*CpriMsg) GetHeader

func (x *CpriMsg) GetHeader() *CpriMsgHeader

func (*CpriMsg) GetMetaData

func (x *CpriMsg) GetMetaData() *CpriMetaData

func (*CpriMsg) GetPacket

func (x *CpriMsg) GetPacket() []byte

func (*CpriMsg) ProtoMessage

func (*CpriMsg) ProtoMessage()

func (*CpriMsg) ProtoReflect

func (x *CpriMsg) ProtoReflect() protoreflect.Message

func (*CpriMsg) Reset

func (x *CpriMsg) Reset()

func (*CpriMsg) String

func (x *CpriMsg) String() string

type CpriMsgHeader

type CpriMsgHeader struct {
	MsgId string `protobuf:"bytes,1,opt,name=msg_id,json=msgId,proto3" json:"msg_id,omitempty"` // Message identifier to
	// contains filtered or unexported fields
}

func (*CpriMsgHeader) Descriptor deprecated

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

Deprecated: Use CpriMsgHeader.ProtoReflect.Descriptor instead.

func (*CpriMsgHeader) GetMsgId

func (x *CpriMsgHeader) GetMsgId() string

func (*CpriMsgHeader) ProtoMessage

func (*CpriMsgHeader) ProtoMessage()

func (*CpriMsgHeader) ProtoReflect

func (x *CpriMsgHeader) ProtoReflect() protoreflect.Message

func (*CpriMsgHeader) Reset

func (x *CpriMsgHeader) Reset()

func (*CpriMsgHeader) String

func (x *CpriMsgHeader) String() string

type DhcpMetadata

type DhcpMetadata struct {
	HwIdElements *HardwareIdElements `protobuf:"bytes,1,opt,name=hw_id_elements,json=hwIdElements,proto3" json:"hw_id_elements,omitempty"`
	// contains filtered or unexported fields
}

func (*DhcpMetadata) Descriptor deprecated

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

Deprecated: Use DhcpMetadata.ProtoReflect.Descriptor instead.

func (*DhcpMetadata) GetHwIdElements

func (x *DhcpMetadata) GetHwIdElements() *HardwareIdElements

func (*DhcpMetadata) ProtoMessage

func (*DhcpMetadata) ProtoMessage()

func (*DhcpMetadata) ProtoReflect

func (x *DhcpMetadata) ProtoReflect() protoreflect.Message

func (*DhcpMetadata) Reset

func (x *DhcpMetadata) Reset()

func (*DhcpMetadata) String

func (x *DhcpMetadata) String() string

type GenericMetadata

type GenericMetadata struct {
	DeviceName string `protobuf:"bytes,1,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` //The name of the device where the packet was
	//intercepted/is destined to
	DeviceInterface string `protobuf:"bytes,2,opt,name=device_interface,json=deviceInterface,proto3" json:"device_interface,omitempty"` //The name of the interface where the packet
	//was intercepted/is destined to. Typically
	//this should be the name of a TR-383 VLAN
	//sub-interface
	Direction GenericMetadata_PacketDirection `` //The direction of the packet when it was
	/* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GenericMetadata) Descriptor deprecated

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

Deprecated: Use GenericMetadata.ProtoReflect.Descriptor instead.

func (*GenericMetadata) GetDeviceInterface

func (x *GenericMetadata) GetDeviceInterface() string

func (*GenericMetadata) GetDeviceName

func (x *GenericMetadata) GetDeviceName() string

func (*GenericMetadata) GetDirection

func (*GenericMetadata) ProtoMessage

func (*GenericMetadata) ProtoMessage()

func (*GenericMetadata) ProtoReflect

func (x *GenericMetadata) ProtoReflect() protoreflect.Message

func (*GenericMetadata) Reset

func (x *GenericMetadata) Reset()

func (*GenericMetadata) String

func (x *GenericMetadata) String() string

type GenericMetadata_PacketDirection

type GenericMetadata_PacketDirection int32
const (
	GenericMetadata_UNI_TO_NNI GenericMetadata_PacketDirection = 0 //UNI to NNI direction
	GenericMetadata_NNI_TO_UNI GenericMetadata_PacketDirection = 1 //NNI to UNI direction
)

func (GenericMetadata_PacketDirection) Descriptor

func (GenericMetadata_PacketDirection) Enum

func (GenericMetadata_PacketDirection) EnumDescriptor deprecated

func (GenericMetadata_PacketDirection) EnumDescriptor() ([]byte, []int)

Deprecated: Use GenericMetadata_PacketDirection.Descriptor instead.

func (GenericMetadata_PacketDirection) Number

func (GenericMetadata_PacketDirection) String

func (GenericMetadata_PacketDirection) Type

type HardwareIdElements

type HardwareIdElements struct {

	//Hardware Identification elements (TR-101i2 section 3.9.3, Table 2)
	ChassisNumber string `protobuf:"bytes,1,opt,name=chassis_number,json=chassisNumber,proto3" json:"chassis_number,omitempty"` //Char(2) Chassis number in the access node
	RackNumber    string `protobuf:"bytes,2,opt,name=rack_number,json=rackNumber,proto3" json:"rack_number,omitempty"`          //Char(2) Rack number in the access node
	FrameNumber   string `protobuf:"bytes,3,opt,name=frame_number,json=frameNumber,proto3" json:"frame_number,omitempty"`       //Char(2) Frame number in the rack
	SlotNumber    string `protobuf:"bytes,4,opt,name=slot_number,json=slotNumber,proto3" json:"slot_number,omitempty"`          //Char(2) Slot number in the chassis or rack or
	//frame
	SubSlotNumber string `protobuf:"bytes,5,opt,name=sub_slot_number,json=subSlotNumber,proto3" json:"sub_slot_number,omitempty"` //Char(2) Sub-slot number
	PortNumber    string `protobuf:"bytes,6,opt,name=port_number,json=portNumber,proto3" json:"port_number,omitempty"`            //Char(3) Port number in the slot
	// contains filtered or unexported fields
}

func (*HardwareIdElements) Descriptor deprecated

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

Deprecated: Use HardwareIdElements.ProtoReflect.Descriptor instead.

func (*HardwareIdElements) GetChassisNumber

func (x *HardwareIdElements) GetChassisNumber() string

func (*HardwareIdElements) GetFrameNumber

func (x *HardwareIdElements) GetFrameNumber() string

func (*HardwareIdElements) GetPortNumber

func (x *HardwareIdElements) GetPortNumber() string

func (*HardwareIdElements) GetRackNumber

func (x *HardwareIdElements) GetRackNumber() string

func (*HardwareIdElements) GetSlotNumber

func (x *HardwareIdElements) GetSlotNumber() string

func (*HardwareIdElements) GetSubSlotNumber

func (x *HardwareIdElements) GetSubSlotNumber() string

func (*HardwareIdElements) ProtoMessage

func (*HardwareIdElements) ProtoMessage()

func (*HardwareIdElements) ProtoReflect

func (x *HardwareIdElements) ProtoReflect() protoreflect.Message

func (*HardwareIdElements) Reset

func (x *HardwareIdElements) Reset()

func (*HardwareIdElements) String

func (x *HardwareIdElements) String() string

type Hello

type Hello struct {
	EntityName   string `protobuf:"bytes,1,opt,name=entity_name,json=entityName,proto3" json:"entity_name,omitempty"`       //Unique name of the pOLT or D-OLT
	EndpointName string `protobuf:"bytes,2,opt,name=endpoint_name,json=endpointName,proto3" json:"endpoint_name,omitempty"` //The pOLT or D-OLT endpoint name
	// contains filtered or unexported fields
}

func (*Hello) Descriptor deprecated

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

Deprecated: Use Hello.ProtoReflect.Descriptor instead.

func (*Hello) GetEndpointName

func (x *Hello) GetEndpointName() string

func (*Hello) GetEntityName

func (x *Hello) GetEntityName() string

func (*Hello) ProtoMessage

func (*Hello) ProtoMessage()

func (*Hello) ProtoReflect

func (x *Hello) ProtoReflect() protoreflect.Message

func (*Hello) Reset

func (x *Hello) Reset()

func (*Hello) String

func (x *Hello) String() string

type HelloCpriRequest

type HelloCpriRequest struct {
	LocalEndpointHello *Hello `protobuf:"bytes,1,opt,name=local_endpoint_hello,json=localEndpointHello,proto3" json:"local_endpoint_hello,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloCpriRequest) Descriptor deprecated

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

Deprecated: Use HelloCpriRequest.ProtoReflect.Descriptor instead.

func (*HelloCpriRequest) GetLocalEndpointHello

func (x *HelloCpriRequest) GetLocalEndpointHello() *Hello

func (*HelloCpriRequest) ProtoMessage

func (*HelloCpriRequest) ProtoMessage()

func (*HelloCpriRequest) ProtoReflect

func (x *HelloCpriRequest) ProtoReflect() protoreflect.Message

func (*HelloCpriRequest) Reset

func (x *HelloCpriRequest) Reset()

func (*HelloCpriRequest) String

func (x *HelloCpriRequest) String() string

type HelloCpriResponse

type HelloCpriResponse struct {
	RemoteEndpointHello *Hello `protobuf:"bytes,1,opt,name=remote_endpoint_hello,json=remoteEndpointHello,proto3" json:"remote_endpoint_hello,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloCpriResponse) Descriptor deprecated

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

Deprecated: Use HelloCpriResponse.ProtoReflect.Descriptor instead.

func (*HelloCpriResponse) GetRemoteEndpointHello

func (x *HelloCpriResponse) GetRemoteEndpointHello() *Hello

func (*HelloCpriResponse) ProtoMessage

func (*HelloCpriResponse) ProtoMessage()

func (*HelloCpriResponse) ProtoReflect

func (x *HelloCpriResponse) ProtoReflect() protoreflect.Message

func (*HelloCpriResponse) Reset

func (x *HelloCpriResponse) Reset()

func (*HelloCpriResponse) String

func (x *HelloCpriResponse) String() string

type OnuMetadata

type OnuMetadata struct {
	ChannelTermination string `protobuf:"bytes,1,opt,name=channel_termination,json=channelTermination,proto3" json:"channel_termination,omitempty"` //The local name of the channel termination
	//in the OLT where the ONU is attached
	OnuId string `protobuf:"bytes,2,opt,name=onu_id,json=onuId,proto3" json:"onu_id,omitempty"` //ITU-T Transmission Convergence (TC)
	// contains filtered or unexported fields
}

func (*OnuMetadata) Descriptor deprecated

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

Deprecated: Use OnuMetadata.ProtoReflect.Descriptor instead.

func (*OnuMetadata) GetChannelTermination

func (x *OnuMetadata) GetChannelTermination() string

func (*OnuMetadata) GetOnuId

func (x *OnuMetadata) GetOnuId() string

func (*OnuMetadata) ProtoMessage

func (*OnuMetadata) ProtoMessage()

func (*OnuMetadata) ProtoReflect

func (x *OnuMetadata) ProtoReflect() protoreflect.Message

func (*OnuMetadata) Reset

func (x *OnuMetadata) Reset()

func (*OnuMetadata) String

func (x *OnuMetadata) String() string

type PppoeMetadata

type PppoeMetadata struct {
	HwIdElements *HardwareIdElements `protobuf:"bytes,1,opt,name=hw_id_elements,json=hwIdElements,proto3" json:"hw_id_elements,omitempty"`
	// contains filtered or unexported fields
}

func (*PppoeMetadata) Descriptor deprecated

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

Deprecated: Use PppoeMetadata.ProtoReflect.Descriptor instead.

func (*PppoeMetadata) GetHwIdElements

func (x *PppoeMetadata) GetHwIdElements() *HardwareIdElements

func (*PppoeMetadata) ProtoMessage

func (*PppoeMetadata) ProtoMessage()

func (*PppoeMetadata) ProtoReflect

func (x *PppoeMetadata) ProtoReflect() protoreflect.Message

func (*PppoeMetadata) Reset

func (x *PppoeMetadata) Reset()

func (*PppoeMetadata) String

func (x *PppoeMetadata) String() string

type UnimplementedCpriHelloServer

type UnimplementedCpriHelloServer struct {
}

UnimplementedCpriHelloServer must be embedded to have forward compatible implementations.

func (UnimplementedCpriHelloServer) HelloCpri

type UnimplementedCpriMessageServer

type UnimplementedCpriMessageServer struct {
}

UnimplementedCpriMessageServer must be embedded to have forward compatible implementations.

func (UnimplementedCpriMessageServer) TransferCpri

type UnsafeCpriHelloServer

type UnsafeCpriHelloServer interface {
	// contains filtered or unexported methods
}

UnsafeCpriHelloServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CpriHelloServer will result in compilation errors.

type UnsafeCpriMessageServer

type UnsafeCpriMessageServer interface {
	// contains filtered or unexported methods
}

UnsafeCpriMessageServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CpriMessageServer will result in compilation errors.

Jump to

Keyboard shortcuts

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