Documentation
¶
Index ¶
- Variables
- func RegisterInterfaceServer(s grpc.ServiceRegistrar, srv InterfaceServer)
- type ClearInterfaceCountersRequest
- func (*ClearInterfaceCountersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClearInterfaceCountersRequest) GetInterface() []*types.Path
- func (*ClearInterfaceCountersRequest) ProtoMessage()
- func (x *ClearInterfaceCountersRequest) ProtoReflect() protoreflect.Message
- func (x *ClearInterfaceCountersRequest) Reset()
- func (x *ClearInterfaceCountersRequest) String() string
- type ClearInterfaceCountersResponse
- func (*ClearInterfaceCountersResponse) Descriptor() ([]byte, []int)deprecated
- func (*ClearInterfaceCountersResponse) ProtoMessage()
- func (x *ClearInterfaceCountersResponse) ProtoReflect() protoreflect.Message
- func (x *ClearInterfaceCountersResponse) Reset()
- func (x *ClearInterfaceCountersResponse) String() string
- type GetLoopbackModeRequest
- func (*GetLoopbackModeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLoopbackModeRequest) GetInterface() *types.Path
- func (*GetLoopbackModeRequest) ProtoMessage()
- func (x *GetLoopbackModeRequest) ProtoReflect() protoreflect.Message
- func (x *GetLoopbackModeRequest) Reset()
- func (x *GetLoopbackModeRequest) String() string
- type GetLoopbackModeResponse
- func (*GetLoopbackModeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLoopbackModeResponse) GetMode() string
- func (*GetLoopbackModeResponse) ProtoMessage()
- func (x *GetLoopbackModeResponse) ProtoReflect() protoreflect.Message
- func (x *GetLoopbackModeResponse) Reset()
- func (x *GetLoopbackModeResponse) String() string
- type InterfaceClient
- type InterfaceServer
- type SetLoopbackModeRequest
- func (*SetLoopbackModeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetLoopbackModeRequest) GetInterface() *types.Path
- func (x *SetLoopbackModeRequest) GetMode() string
- func (*SetLoopbackModeRequest) ProtoMessage()
- func (x *SetLoopbackModeRequest) ProtoReflect() protoreflect.Message
- func (x *SetLoopbackModeRequest) Reset()
- func (x *SetLoopbackModeRequest) String() string
- type SetLoopbackModeResponse
- type UnimplementedInterfaceServer
- func (UnimplementedInterfaceServer) ClearInterfaceCounters(context.Context, *ClearInterfaceCountersRequest) (*ClearInterfaceCountersResponse, error)
- func (UnimplementedInterfaceServer) GetLoopbackMode(context.Context, *GetLoopbackModeRequest) (*GetLoopbackModeResponse, error)
- func (UnimplementedInterfaceServer) SetLoopbackMode(context.Context, *SetLoopbackModeRequest) (*SetLoopbackModeResponse, error)
- type UnsafeInterfaceServer
Constants ¶
This section is empty.
Variables ¶
var File_interface_interface_proto protoreflect.FileDescriptor
var Interface_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gnoi.interface.Interface", HandlerType: (*InterfaceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SetLoopbackMode", Handler: _Interface_SetLoopbackMode_Handler, }, { MethodName: "GetLoopbackMode", Handler: _Interface_GetLoopbackMode_Handler, }, { MethodName: "ClearInterfaceCounters", Handler: _Interface_ClearInterfaceCounters_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "interface/interface.proto", }
Interface_ServiceDesc is the grpc.ServiceDesc for Interface service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInterfaceServer ¶
func RegisterInterfaceServer(s grpc.ServiceRegistrar, srv InterfaceServer)
Types ¶
type ClearInterfaceCountersRequest ¶
type ClearInterfaceCountersRequest struct {
Interface []*types.Path `protobuf:"bytes,1,rep,name=interface,proto3" json:"interface,omitempty"`
// contains filtered or unexported fields
}
func (*ClearInterfaceCountersRequest) Descriptor
deprecated
func (*ClearInterfaceCountersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClearInterfaceCountersRequest.ProtoReflect.Descriptor instead.
func (*ClearInterfaceCountersRequest) GetInterface ¶
func (x *ClearInterfaceCountersRequest) GetInterface() []*types.Path
func (*ClearInterfaceCountersRequest) ProtoMessage ¶
func (*ClearInterfaceCountersRequest) ProtoMessage()
func (*ClearInterfaceCountersRequest) ProtoReflect ¶
func (x *ClearInterfaceCountersRequest) ProtoReflect() protoreflect.Message
func (*ClearInterfaceCountersRequest) Reset ¶
func (x *ClearInterfaceCountersRequest) Reset()
func (*ClearInterfaceCountersRequest) String ¶
func (x *ClearInterfaceCountersRequest) String() string
type ClearInterfaceCountersResponse ¶
type ClearInterfaceCountersResponse struct {
// contains filtered or unexported fields
}
func (*ClearInterfaceCountersResponse) Descriptor
deprecated
func (*ClearInterfaceCountersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClearInterfaceCountersResponse.ProtoReflect.Descriptor instead.
func (*ClearInterfaceCountersResponse) ProtoMessage ¶
func (*ClearInterfaceCountersResponse) ProtoMessage()
func (*ClearInterfaceCountersResponse) ProtoReflect ¶
func (x *ClearInterfaceCountersResponse) ProtoReflect() protoreflect.Message
func (*ClearInterfaceCountersResponse) Reset ¶
func (x *ClearInterfaceCountersResponse) Reset()
func (*ClearInterfaceCountersResponse) String ¶
func (x *ClearInterfaceCountersResponse) String() string
type GetLoopbackModeRequest ¶
type GetLoopbackModeRequest struct {
Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"`
// contains filtered or unexported fields
}
func (*GetLoopbackModeRequest) Descriptor
deprecated
func (*GetLoopbackModeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLoopbackModeRequest.ProtoReflect.Descriptor instead.
func (*GetLoopbackModeRequest) GetInterface ¶
func (x *GetLoopbackModeRequest) GetInterface() *types.Path
func (*GetLoopbackModeRequest) ProtoMessage ¶
func (*GetLoopbackModeRequest) ProtoMessage()
func (*GetLoopbackModeRequest) ProtoReflect ¶
func (x *GetLoopbackModeRequest) ProtoReflect() protoreflect.Message
func (*GetLoopbackModeRequest) Reset ¶
func (x *GetLoopbackModeRequest) Reset()
func (*GetLoopbackModeRequest) String ¶
func (x *GetLoopbackModeRequest) String() string
type GetLoopbackModeResponse ¶
type GetLoopbackModeResponse struct {
Mode string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"`
// contains filtered or unexported fields
}
func (*GetLoopbackModeResponse) Descriptor
deprecated
func (*GetLoopbackModeResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLoopbackModeResponse.ProtoReflect.Descriptor instead.
func (*GetLoopbackModeResponse) GetMode ¶
func (x *GetLoopbackModeResponse) GetMode() string
func (*GetLoopbackModeResponse) ProtoMessage ¶
func (*GetLoopbackModeResponse) ProtoMessage()
func (*GetLoopbackModeResponse) ProtoReflect ¶
func (x *GetLoopbackModeResponse) ProtoReflect() protoreflect.Message
func (*GetLoopbackModeResponse) Reset ¶
func (x *GetLoopbackModeResponse) Reset()
func (*GetLoopbackModeResponse) String ¶
func (x *GetLoopbackModeResponse) String() string
type InterfaceClient ¶
type InterfaceClient interface {
// SetLoopbackMode is used to set the mode of loopback on a interface.
SetLoopbackMode(ctx context.Context, in *SetLoopbackModeRequest, opts ...grpc.CallOption) (*SetLoopbackModeResponse, error)
// GetLoopbackMode is used to get the mode of loopback on a interface.
GetLoopbackMode(ctx context.Context, in *GetLoopbackModeRequest, opts ...grpc.CallOption) (*GetLoopbackModeResponse, error)
// ClearInterfaceCounters will reset the counters for the provided interface.
ClearInterfaceCounters(ctx context.Context, in *ClearInterfaceCountersRequest, opts ...grpc.CallOption) (*ClearInterfaceCountersResponse, error)
}
InterfaceClient is the client API for Interface 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 NewInterfaceClient ¶
func NewInterfaceClient(cc grpc.ClientConnInterface) InterfaceClient
type InterfaceServer ¶
type InterfaceServer interface {
// SetLoopbackMode is used to set the mode of loopback on a interface.
SetLoopbackMode(context.Context, *SetLoopbackModeRequest) (*SetLoopbackModeResponse, error)
// GetLoopbackMode is used to get the mode of loopback on a interface.
GetLoopbackMode(context.Context, *GetLoopbackModeRequest) (*GetLoopbackModeResponse, error)
// ClearInterfaceCounters will reset the counters for the provided interface.
ClearInterfaceCounters(context.Context, *ClearInterfaceCountersRequest) (*ClearInterfaceCountersResponse, error)
// contains filtered or unexported methods
}
InterfaceServer is the server API for Interface service. All implementations must embed UnimplementedInterfaceServer for forward compatibility
type SetLoopbackModeRequest ¶
type SetLoopbackModeRequest struct {
Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"`
Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"`
// contains filtered or unexported fields
}
SetLoopbackModeRequest requests the provide interface be have its loopback mode set to the specified mode. The mode may be vendor specific. For example, on a transport device, available modes are "none", "mac", "phy", "phy_remote", "framer_facility", and "framer_terminal".
func (*SetLoopbackModeRequest) Descriptor
deprecated
func (*SetLoopbackModeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetLoopbackModeRequest.ProtoReflect.Descriptor instead.
func (*SetLoopbackModeRequest) GetInterface ¶
func (x *SetLoopbackModeRequest) GetInterface() *types.Path
func (*SetLoopbackModeRequest) GetMode ¶
func (x *SetLoopbackModeRequest) GetMode() string
func (*SetLoopbackModeRequest) ProtoMessage ¶
func (*SetLoopbackModeRequest) ProtoMessage()
func (*SetLoopbackModeRequest) ProtoReflect ¶
func (x *SetLoopbackModeRequest) ProtoReflect() protoreflect.Message
func (*SetLoopbackModeRequest) Reset ¶
func (x *SetLoopbackModeRequest) Reset()
func (*SetLoopbackModeRequest) String ¶
func (x *SetLoopbackModeRequest) String() string
type SetLoopbackModeResponse ¶
type SetLoopbackModeResponse struct {
// contains filtered or unexported fields
}
func (*SetLoopbackModeResponse) Descriptor
deprecated
func (*SetLoopbackModeResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetLoopbackModeResponse.ProtoReflect.Descriptor instead.
func (*SetLoopbackModeResponse) ProtoMessage ¶
func (*SetLoopbackModeResponse) ProtoMessage()
func (*SetLoopbackModeResponse) ProtoReflect ¶
func (x *SetLoopbackModeResponse) ProtoReflect() protoreflect.Message
func (*SetLoopbackModeResponse) Reset ¶
func (x *SetLoopbackModeResponse) Reset()
func (*SetLoopbackModeResponse) String ¶
func (x *SetLoopbackModeResponse) String() string
type UnimplementedInterfaceServer ¶
type UnimplementedInterfaceServer struct {
}
UnimplementedInterfaceServer must be embedded to have forward compatible implementations.
func (UnimplementedInterfaceServer) ClearInterfaceCounters ¶
func (UnimplementedInterfaceServer) ClearInterfaceCounters(context.Context, *ClearInterfaceCountersRequest) (*ClearInterfaceCountersResponse, error)
func (UnimplementedInterfaceServer) GetLoopbackMode ¶
func (UnimplementedInterfaceServer) GetLoopbackMode(context.Context, *GetLoopbackModeRequest) (*GetLoopbackModeResponse, error)
func (UnimplementedInterfaceServer) SetLoopbackMode ¶
func (UnimplementedInterfaceServer) SetLoopbackMode(context.Context, *SetLoopbackModeRequest) (*SetLoopbackModeResponse, error)
type UnsafeInterfaceServer ¶
type UnsafeInterfaceServer interface {
// contains filtered or unexported methods
}
UnsafeInterfaceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InterfaceServer will result in compilation errors.