Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterMPLSServer(s grpc.ServiceRegistrar, srv MPLSServer)
- type ClearLSPCountersRequest
- func (*ClearLSPCountersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClearLSPCountersRequest) GetName() string
- func (*ClearLSPCountersRequest) ProtoMessage()
- func (x *ClearLSPCountersRequest) ProtoReflect() protoreflect.Message
- func (x *ClearLSPCountersRequest) Reset()
- func (x *ClearLSPCountersRequest) String() string
- type ClearLSPCountersResponse
- type ClearLSPRequest
- func (*ClearLSPRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClearLSPRequest) GetMode() ClearLSPRequest_Mode
- func (x *ClearLSPRequest) GetName() string
- func (*ClearLSPRequest) ProtoMessage()
- func (x *ClearLSPRequest) ProtoReflect() protoreflect.Message
- func (x *ClearLSPRequest) Reset()
- func (x *ClearLSPRequest) String() string
- type ClearLSPRequest_Mode
- func (ClearLSPRequest_Mode) Descriptor() protoreflect.EnumDescriptor
- func (x ClearLSPRequest_Mode) Enum() *ClearLSPRequest_Mode
- func (ClearLSPRequest_Mode) EnumDescriptor() ([]byte, []int)deprecated
- func (x ClearLSPRequest_Mode) Number() protoreflect.EnumNumber
- func (x ClearLSPRequest_Mode) String() string
- func (ClearLSPRequest_Mode) Type() protoreflect.EnumType
- type ClearLSPResponse
- type MPLSClient
- type MPLSPingPWEDestination
- func (*MPLSPingPWEDestination) Descriptor() ([]byte, []int)deprecated
- func (x *MPLSPingPWEDestination) GetEler() string
- func (x *MPLSPingPWEDestination) GetVcid() uint32
- func (*MPLSPingPWEDestination) ProtoMessage()
- func (x *MPLSPingPWEDestination) ProtoReflect() protoreflect.Message
- func (x *MPLSPingPWEDestination) Reset()
- func (x *MPLSPingPWEDestination) String() string
- type MPLSPingRSVPTEDestination
- func (*MPLSPingRSVPTEDestination) Descriptor() ([]byte, []int)deprecated
- func (x *MPLSPingRSVPTEDestination) GetDst() string
- func (x *MPLSPingRSVPTEDestination) GetExtendedTunnelId() uint32
- func (x *MPLSPingRSVPTEDestination) GetSrc() string
- func (*MPLSPingRSVPTEDestination) ProtoMessage()
- func (x *MPLSPingRSVPTEDestination) ProtoReflect() protoreflect.Message
- func (x *MPLSPingRSVPTEDestination) Reset()
- func (x *MPLSPingRSVPTEDestination) String() string
- type MPLSPingRequest
- func (*MPLSPingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MPLSPingRequest) GetCount() uint32
- func (x *MPLSPingRequest) GetDestination() isMPLSPingRequest_Destination
- func (x *MPLSPingRequest) GetFec129Pwe() *MPLSPingPWEDestination
- func (x *MPLSPingRequest) GetLdpFec() string
- func (x *MPLSPingRequest) GetMplsTtl() uint32
- func (x *MPLSPingRequest) GetReplyMode() MPLSPingRequest_ReplyMode
- func (x *MPLSPingRequest) GetRsvpteLsp() *MPLSPingRSVPTEDestination
- func (x *MPLSPingRequest) GetRsvpteLspName() string
- func (x *MPLSPingRequest) GetSize() uint32
- func (x *MPLSPingRequest) GetSourceAddress() string
- func (x *MPLSPingRequest) GetTrafficClass() uint32
- func (*MPLSPingRequest) ProtoMessage()
- func (x *MPLSPingRequest) ProtoReflect() protoreflect.Message
- func (x *MPLSPingRequest) Reset()
- func (x *MPLSPingRequest) String() string
- type MPLSPingRequest_Fec129Pwe
- type MPLSPingRequest_LdpFec
- type MPLSPingRequest_ReplyMode
- func (MPLSPingRequest_ReplyMode) Descriptor() protoreflect.EnumDescriptor
- func (x MPLSPingRequest_ReplyMode) Enum() *MPLSPingRequest_ReplyMode
- func (MPLSPingRequest_ReplyMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x MPLSPingRequest_ReplyMode) Number() protoreflect.EnumNumber
- func (x MPLSPingRequest_ReplyMode) String() string
- func (MPLSPingRequest_ReplyMode) Type() protoreflect.EnumType
- type MPLSPingRequest_RsvpteLsp
- type MPLSPingRequest_RsvpteLspName
- type MPLSPingResponse
- func (*MPLSPingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MPLSPingResponse) GetResponse() MPLSPingResponse_EchoResponseCode
- func (x *MPLSPingResponse) GetResponseTime() uint64
- func (x *MPLSPingResponse) GetSeq() uint32
- func (*MPLSPingResponse) ProtoMessage()
- func (x *MPLSPingResponse) ProtoReflect() protoreflect.Message
- func (x *MPLSPingResponse) Reset()
- func (x *MPLSPingResponse) String() string
- type MPLSPingResponse_EchoResponseCode
- func (MPLSPingResponse_EchoResponseCode) Descriptor() protoreflect.EnumDescriptor
- func (x MPLSPingResponse_EchoResponseCode) Enum() *MPLSPingResponse_EchoResponseCode
- func (MPLSPingResponse_EchoResponseCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x MPLSPingResponse_EchoResponseCode) Number() protoreflect.EnumNumber
- func (x MPLSPingResponse_EchoResponseCode) String() string
- func (MPLSPingResponse_EchoResponseCode) Type() protoreflect.EnumType
- type MPLSServer
- type MPLS_MPLSPingClient
- type MPLS_MPLSPingServer
- type UnimplementedMPLSServer
- func (UnimplementedMPLSServer) ClearLSP(context.Context, *ClearLSPRequest) (*ClearLSPResponse, error)
- func (UnimplementedMPLSServer) ClearLSPCounters(context.Context, *ClearLSPCountersRequest) (*ClearLSPCountersResponse, error)
- func (UnimplementedMPLSServer) MPLSPing(*MPLSPingRequest, grpc.ServerStreamingServer[MPLSPingResponse]) error
- type UnsafeMPLSServer
Constants ¶
const ( MPLS_ClearLSP_FullMethodName = "/gnoi.mpls.MPLS/ClearLSP" MPLS_ClearLSPCounters_FullMethodName = "/gnoi.mpls.MPLS/ClearLSPCounters" MPLS_MPLSPing_FullMethodName = "/gnoi.mpls.MPLS/MPLSPing" )
Variables ¶
var ( ClearLSPRequest_Mode_name = map[int32]string{ 0: "DEFAULT", 1: "AGGRESSIVE", 2: "RESET", 3: "AUTOBW_AGGRESSIVE", 4: "AUTOBW_NONAGGRESSIVE", } ClearLSPRequest_Mode_value = map[string]int32{ "DEFAULT": 0, "NONAGGRESSIVE": 0, "AGGRESSIVE": 1, "RESET": 2, "AUTOBW_AGGRESSIVE": 3, "AUTOBW_NONAGGRESSIVE": 4, } )
Enum value maps for ClearLSPRequest_Mode.
var ( MPLSPingRequest_ReplyMode_name = map[int32]string{ 0: "IPV4", 1: "ROUTER_ALERT", } MPLSPingRequest_ReplyMode_value = map[string]int32{ "IPV4": 0, "ROUTER_ALERT": 1, } )
Enum value maps for MPLSPingRequest_ReplyMode.
var ( MPLSPingResponse_EchoResponseCode_name = map[int32]string{ 0: "SUCCESS", 1: "NOT_SENT", 2: "TIMEOUT", } MPLSPingResponse_EchoResponseCode_value = map[string]int32{ "SUCCESS": 0, "NOT_SENT": 1, "TIMEOUT": 2, } )
Enum value maps for MPLSPingResponse_EchoResponseCode.
var File_github_com_openconfig_gnoi_mpls_mpls_proto protoreflect.FileDescriptor
var MPLS_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gnoi.mpls.MPLS", HandlerType: (*MPLSServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ClearLSP", Handler: _MPLS_ClearLSP_Handler, }, { MethodName: "ClearLSPCounters", Handler: _MPLS_ClearLSPCounters_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "MPLSPing", Handler: _MPLS_MPLSPing_Handler, ServerStreams: true, }, }, Metadata: "github.com/openconfig/gnoi/mpls/mpls.proto", }
MPLS_ServiceDesc is the grpc.ServiceDesc for MPLS service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMPLSServer ¶
func RegisterMPLSServer(s grpc.ServiceRegistrar, srv MPLSServer)
Types ¶
type ClearLSPCountersRequest ¶
type ClearLSPCountersRequest struct {
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*ClearLSPCountersRequest) Descriptor
deprecated
func (*ClearLSPCountersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClearLSPCountersRequest.ProtoReflect.Descriptor instead.
func (*ClearLSPCountersRequest) GetName ¶
func (x *ClearLSPCountersRequest) GetName() string
func (*ClearLSPCountersRequest) ProtoMessage ¶
func (*ClearLSPCountersRequest) ProtoMessage()
func (*ClearLSPCountersRequest) ProtoReflect ¶
func (x *ClearLSPCountersRequest) ProtoReflect() protoreflect.Message
func (*ClearLSPCountersRequest) Reset ¶
func (x *ClearLSPCountersRequest) Reset()
func (*ClearLSPCountersRequest) String ¶
func (x *ClearLSPCountersRequest) String() string
type ClearLSPCountersResponse ¶
type ClearLSPCountersResponse struct {
// contains filtered or unexported fields
}
func (*ClearLSPCountersResponse) Descriptor
deprecated
func (*ClearLSPCountersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClearLSPCountersResponse.ProtoReflect.Descriptor instead.
func (*ClearLSPCountersResponse) ProtoMessage ¶
func (*ClearLSPCountersResponse) ProtoMessage()
func (*ClearLSPCountersResponse) ProtoReflect ¶
func (x *ClearLSPCountersResponse) ProtoReflect() protoreflect.Message
func (*ClearLSPCountersResponse) Reset ¶
func (x *ClearLSPCountersResponse) Reset()
func (*ClearLSPCountersResponse) String ¶
func (x *ClearLSPCountersResponse) String() string
type ClearLSPRequest ¶
type ClearLSPRequest struct {
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Mode ClearLSPRequest_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=gnoi.mpls.ClearLSPRequest_Mode" json:"mode,omitempty"`
// contains filtered or unexported fields
}
func (*ClearLSPRequest) Descriptor
deprecated
func (*ClearLSPRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClearLSPRequest.ProtoReflect.Descriptor instead.
func (*ClearLSPRequest) GetMode ¶
func (x *ClearLSPRequest) GetMode() ClearLSPRequest_Mode
func (*ClearLSPRequest) GetName ¶
func (x *ClearLSPRequest) GetName() string
func (*ClearLSPRequest) ProtoMessage ¶
func (*ClearLSPRequest) ProtoMessage()
func (*ClearLSPRequest) ProtoReflect ¶
func (x *ClearLSPRequest) ProtoReflect() protoreflect.Message
func (*ClearLSPRequest) Reset ¶
func (x *ClearLSPRequest) Reset()
func (*ClearLSPRequest) String ¶
func (x *ClearLSPRequest) String() string
type ClearLSPRequest_Mode ¶
type ClearLSPRequest_Mode int32
const ( ClearLSPRequest_DEFAULT ClearLSPRequest_Mode = 0 ClearLSPRequest_NONAGGRESSIVE ClearLSPRequest_Mode = 0 ClearLSPRequest_AGGRESSIVE ClearLSPRequest_Mode = 1 ClearLSPRequest_RESET ClearLSPRequest_Mode = 2 ClearLSPRequest_AUTOBW_AGGRESSIVE ClearLSPRequest_Mode = 3 ClearLSPRequest_AUTOBW_NONAGGRESSIVE ClearLSPRequest_Mode = 4 )
func (ClearLSPRequest_Mode) Descriptor ¶
func (ClearLSPRequest_Mode) Descriptor() protoreflect.EnumDescriptor
func (ClearLSPRequest_Mode) Enum ¶
func (x ClearLSPRequest_Mode) Enum() *ClearLSPRequest_Mode
func (ClearLSPRequest_Mode) EnumDescriptor
deprecated
func (ClearLSPRequest_Mode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ClearLSPRequest_Mode.Descriptor instead.
func (ClearLSPRequest_Mode) Number ¶
func (x ClearLSPRequest_Mode) Number() protoreflect.EnumNumber
func (ClearLSPRequest_Mode) String ¶
func (x ClearLSPRequest_Mode) String() string
func (ClearLSPRequest_Mode) Type ¶
func (ClearLSPRequest_Mode) Type() protoreflect.EnumType
type ClearLSPResponse ¶
type ClearLSPResponse struct {
// contains filtered or unexported fields
}
func (*ClearLSPResponse) Descriptor
deprecated
func (*ClearLSPResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClearLSPResponse.ProtoReflect.Descriptor instead.
func (*ClearLSPResponse) ProtoMessage ¶
func (*ClearLSPResponse) ProtoMessage()
func (*ClearLSPResponse) ProtoReflect ¶
func (x *ClearLSPResponse) ProtoReflect() protoreflect.Message
func (*ClearLSPResponse) Reset ¶
func (x *ClearLSPResponse) Reset()
func (*ClearLSPResponse) String ¶
func (x *ClearLSPResponse) String() string
type MPLSClient ¶
type MPLSClient interface {
ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error)
ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error)
MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[MPLSPingResponse], error)
}
MPLSClient is the client API for MPLS 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 NewMPLSClient ¶
func NewMPLSClient(cc grpc.ClientConnInterface) MPLSClient
type MPLSPingPWEDestination ¶
type MPLSPingPWEDestination struct {
Eler string `protobuf:"bytes,1,opt,name=eler,proto3" json:"eler,omitempty"`
Vcid uint32 `protobuf:"varint,2,opt,name=vcid,proto3" json:"vcid,omitempty"`
// contains filtered or unexported fields
}
func (*MPLSPingPWEDestination) Descriptor
deprecated
func (*MPLSPingPWEDestination) Descriptor() ([]byte, []int)
Deprecated: Use MPLSPingPWEDestination.ProtoReflect.Descriptor instead.
func (*MPLSPingPWEDestination) GetEler ¶
func (x *MPLSPingPWEDestination) GetEler() string
func (*MPLSPingPWEDestination) GetVcid ¶
func (x *MPLSPingPWEDestination) GetVcid() uint32
func (*MPLSPingPWEDestination) ProtoMessage ¶
func (*MPLSPingPWEDestination) ProtoMessage()
func (*MPLSPingPWEDestination) ProtoReflect ¶
func (x *MPLSPingPWEDestination) ProtoReflect() protoreflect.Message
func (*MPLSPingPWEDestination) Reset ¶
func (x *MPLSPingPWEDestination) Reset()
func (*MPLSPingPWEDestination) String ¶
func (x *MPLSPingPWEDestination) String() string
type MPLSPingRSVPTEDestination ¶
type MPLSPingRSVPTEDestination struct {
Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
Dst string `protobuf:"bytes,2,opt,name=dst,proto3" json:"dst,omitempty"`
ExtendedTunnelId uint32 `protobuf:"varint,3,opt,name=extended_tunnel_id,json=extendedTunnelId,proto3" json:"extended_tunnel_id,omitempty"`
// contains filtered or unexported fields
}
func (*MPLSPingRSVPTEDestination) Descriptor
deprecated
func (*MPLSPingRSVPTEDestination) Descriptor() ([]byte, []int)
Deprecated: Use MPLSPingRSVPTEDestination.ProtoReflect.Descriptor instead.
func (*MPLSPingRSVPTEDestination) GetDst ¶
func (x *MPLSPingRSVPTEDestination) GetDst() string
func (*MPLSPingRSVPTEDestination) GetExtendedTunnelId ¶
func (x *MPLSPingRSVPTEDestination) GetExtendedTunnelId() uint32
func (*MPLSPingRSVPTEDestination) GetSrc ¶
func (x *MPLSPingRSVPTEDestination) GetSrc() string
func (*MPLSPingRSVPTEDestination) ProtoMessage ¶
func (*MPLSPingRSVPTEDestination) ProtoMessage()
func (*MPLSPingRSVPTEDestination) ProtoReflect ¶
func (x *MPLSPingRSVPTEDestination) ProtoReflect() protoreflect.Message
func (*MPLSPingRSVPTEDestination) Reset ¶
func (x *MPLSPingRSVPTEDestination) Reset()
func (*MPLSPingRSVPTEDestination) String ¶
func (x *MPLSPingRSVPTEDestination) String() string
type MPLSPingRequest ¶
type MPLSPingRequest struct {
// Types that are valid to be assigned to Destination:
//
// *MPLSPingRequest_LdpFec
// *MPLSPingRequest_Fec129Pwe
// *MPLSPingRequest_RsvpteLspName
// *MPLSPingRequest_RsvpteLsp
Destination isMPLSPingRequest_Destination `protobuf_oneof:"destination"`
ReplyMode MPLSPingRequest_ReplyMode `` /* 130-byte string literal not displayed */
Count uint32 `protobuf:"varint,7,opt,name=count,proto3" json:"count,omitempty"`
Size uint32 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"`
SourceAddress string `protobuf:"bytes,9,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"`
MplsTtl uint32 `protobuf:"varint,10,opt,name=mpls_ttl,json=mplsTtl,proto3" json:"mpls_ttl,omitempty"`
TrafficClass uint32 `protobuf:"varint,11,opt,name=traffic_class,json=trafficClass,proto3" json:"traffic_class,omitempty"`
// contains filtered or unexported fields
}
func (*MPLSPingRequest) Descriptor
deprecated
func (*MPLSPingRequest) Descriptor() ([]byte, []int)
Deprecated: Use MPLSPingRequest.ProtoReflect.Descriptor instead.
func (*MPLSPingRequest) GetCount ¶
func (x *MPLSPingRequest) GetCount() uint32
func (*MPLSPingRequest) GetDestination ¶
func (x *MPLSPingRequest) GetDestination() isMPLSPingRequest_Destination
func (*MPLSPingRequest) GetFec129Pwe ¶
func (x *MPLSPingRequest) GetFec129Pwe() *MPLSPingPWEDestination
func (*MPLSPingRequest) GetLdpFec ¶
func (x *MPLSPingRequest) GetLdpFec() string
func (*MPLSPingRequest) GetMplsTtl ¶
func (x *MPLSPingRequest) GetMplsTtl() uint32
func (*MPLSPingRequest) GetReplyMode ¶
func (x *MPLSPingRequest) GetReplyMode() MPLSPingRequest_ReplyMode
func (*MPLSPingRequest) GetRsvpteLsp ¶
func (x *MPLSPingRequest) GetRsvpteLsp() *MPLSPingRSVPTEDestination
func (*MPLSPingRequest) GetRsvpteLspName ¶
func (x *MPLSPingRequest) GetRsvpteLspName() string
func (*MPLSPingRequest) GetSize ¶
func (x *MPLSPingRequest) GetSize() uint32
func (*MPLSPingRequest) GetSourceAddress ¶
func (x *MPLSPingRequest) GetSourceAddress() string
func (*MPLSPingRequest) GetTrafficClass ¶
func (x *MPLSPingRequest) GetTrafficClass() uint32
func (*MPLSPingRequest) ProtoMessage ¶
func (*MPLSPingRequest) ProtoMessage()
func (*MPLSPingRequest) ProtoReflect ¶
func (x *MPLSPingRequest) ProtoReflect() protoreflect.Message
func (*MPLSPingRequest) Reset ¶
func (x *MPLSPingRequest) Reset()
func (*MPLSPingRequest) String ¶
func (x *MPLSPingRequest) String() string
type MPLSPingRequest_Fec129Pwe ¶
type MPLSPingRequest_Fec129Pwe struct {
Fec129Pwe *MPLSPingPWEDestination `protobuf:"bytes,2,opt,name=fec129_pwe,json=fec129Pwe,proto3,oneof"`
}
type MPLSPingRequest_LdpFec ¶
type MPLSPingRequest_LdpFec struct {
LdpFec string `protobuf:"bytes,1,opt,name=ldp_fec,json=ldpFec,proto3,oneof"`
}
type MPLSPingRequest_ReplyMode ¶
type MPLSPingRequest_ReplyMode int32
const ( MPLSPingRequest_IPV4 MPLSPingRequest_ReplyMode = 0 MPLSPingRequest_ROUTER_ALERT MPLSPingRequest_ReplyMode = 1 )
func (MPLSPingRequest_ReplyMode) Descriptor ¶
func (MPLSPingRequest_ReplyMode) Descriptor() protoreflect.EnumDescriptor
func (MPLSPingRequest_ReplyMode) Enum ¶
func (x MPLSPingRequest_ReplyMode) Enum() *MPLSPingRequest_ReplyMode
func (MPLSPingRequest_ReplyMode) EnumDescriptor
deprecated
func (MPLSPingRequest_ReplyMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use MPLSPingRequest_ReplyMode.Descriptor instead.
func (MPLSPingRequest_ReplyMode) Number ¶
func (x MPLSPingRequest_ReplyMode) Number() protoreflect.EnumNumber
func (MPLSPingRequest_ReplyMode) String ¶
func (x MPLSPingRequest_ReplyMode) String() string
func (MPLSPingRequest_ReplyMode) Type ¶
func (MPLSPingRequest_ReplyMode) Type() protoreflect.EnumType
type MPLSPingRequest_RsvpteLsp ¶
type MPLSPingRequest_RsvpteLsp struct {
RsvpteLsp *MPLSPingRSVPTEDestination `protobuf:"bytes,5,opt,name=rsvpte_lsp,json=rsvpteLsp,proto3,oneof"`
}
type MPLSPingRequest_RsvpteLspName ¶
type MPLSPingRequest_RsvpteLspName struct {
RsvpteLspName string `protobuf:"bytes,4,opt,name=rsvpte_lsp_name,json=rsvpteLspName,proto3,oneof"`
}
type MPLSPingResponse ¶
type MPLSPingResponse struct {
Seq uint32 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
Response MPLSPingResponse_EchoResponseCode `protobuf:"varint,2,opt,name=response,proto3,enum=gnoi.mpls.MPLSPingResponse_EchoResponseCode" json:"response,omitempty"`
ResponseTime uint64 `protobuf:"varint,3,opt,name=response_time,json=responseTime,proto3" json:"response_time,omitempty"`
// contains filtered or unexported fields
}
func (*MPLSPingResponse) Descriptor
deprecated
func (*MPLSPingResponse) Descriptor() ([]byte, []int)
Deprecated: Use MPLSPingResponse.ProtoReflect.Descriptor instead.
func (*MPLSPingResponse) GetResponse ¶
func (x *MPLSPingResponse) GetResponse() MPLSPingResponse_EchoResponseCode
func (*MPLSPingResponse) GetResponseTime ¶
func (x *MPLSPingResponse) GetResponseTime() uint64
func (*MPLSPingResponse) GetSeq ¶
func (x *MPLSPingResponse) GetSeq() uint32
func (*MPLSPingResponse) ProtoMessage ¶
func (*MPLSPingResponse) ProtoMessage()
func (*MPLSPingResponse) ProtoReflect ¶
func (x *MPLSPingResponse) ProtoReflect() protoreflect.Message
func (*MPLSPingResponse) Reset ¶
func (x *MPLSPingResponse) Reset()
func (*MPLSPingResponse) String ¶
func (x *MPLSPingResponse) String() string
type MPLSPingResponse_EchoResponseCode ¶
type MPLSPingResponse_EchoResponseCode int32
const ( MPLSPingResponse_SUCCESS MPLSPingResponse_EchoResponseCode = 0 MPLSPingResponse_NOT_SENT MPLSPingResponse_EchoResponseCode = 1 MPLSPingResponse_TIMEOUT MPLSPingResponse_EchoResponseCode = 2 )
func (MPLSPingResponse_EchoResponseCode) Descriptor ¶
func (MPLSPingResponse_EchoResponseCode) Descriptor() protoreflect.EnumDescriptor
func (MPLSPingResponse_EchoResponseCode) Enum ¶
func (x MPLSPingResponse_EchoResponseCode) Enum() *MPLSPingResponse_EchoResponseCode
func (MPLSPingResponse_EchoResponseCode) EnumDescriptor
deprecated
func (MPLSPingResponse_EchoResponseCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use MPLSPingResponse_EchoResponseCode.Descriptor instead.
func (MPLSPingResponse_EchoResponseCode) Number ¶
func (x MPLSPingResponse_EchoResponseCode) Number() protoreflect.EnumNumber
func (MPLSPingResponse_EchoResponseCode) String ¶
func (x MPLSPingResponse_EchoResponseCode) String() string
func (MPLSPingResponse_EchoResponseCode) Type ¶
func (MPLSPingResponse_EchoResponseCode) Type() protoreflect.EnumType
type MPLSServer ¶
type MPLSServer interface {
ClearLSP(context.Context, *ClearLSPRequest) (*ClearLSPResponse, error)
ClearLSPCounters(context.Context, *ClearLSPCountersRequest) (*ClearLSPCountersResponse, error)
MPLSPing(*MPLSPingRequest, grpc.ServerStreamingServer[MPLSPingResponse]) error
}
MPLSServer is the server API for MPLS service. All implementations should embed UnimplementedMPLSServer for forward compatibility.
type MPLS_MPLSPingClient ¶
type MPLS_MPLSPingClient = grpc.ServerStreamingClient[MPLSPingResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type MPLS_MPLSPingServer ¶
type MPLS_MPLSPingServer = grpc.ServerStreamingServer[MPLSPingResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type UnimplementedMPLSServer ¶
type UnimplementedMPLSServer struct{}
UnimplementedMPLSServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedMPLSServer) ClearLSP ¶
func (UnimplementedMPLSServer) ClearLSP(context.Context, *ClearLSPRequest) (*ClearLSPResponse, error)
func (UnimplementedMPLSServer) ClearLSPCounters ¶
func (UnimplementedMPLSServer) ClearLSPCounters(context.Context, *ClearLSPCountersRequest) (*ClearLSPCountersResponse, error)
func (UnimplementedMPLSServer) MPLSPing ¶
func (UnimplementedMPLSServer) MPLSPing(*MPLSPingRequest, grpc.ServerStreamingServer[MPLSPingResponse]) error
type UnsafeMPLSServer ¶
type UnsafeMPLSServer interface {
// contains filtered or unexported methods
}
UnsafeMPLSServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MPLSServer will result in compilation errors.