Documentation
¶
Index ¶
- Variables
- func RegisterPeeringServer(s grpc.ServiceRegistrar, srv PeeringServer)
- type Empty
- type Machine
- func (*Machine) Descriptor() ([]byte, []int)deprecated
- func (x *Machine) GetId() uint64
- func (x *Machine) GetName() string
- func (x *Machine) GetShell() int64
- func (*Machine) ProtoMessage()
- func (x *Machine) ProtoReflect() protoreflect.Message
- func (x *Machine) Reset()
- func (x *Machine) String() string
- type PeeringClient
- type PeeringServer
- type RouteRequest
- func (*RouteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RouteRequest) GetBandwidth() uint64
- func (x *RouteRequest) GetIndex() uint64
- func (x *RouteRequest) GetMachine() *Machine
- func (*RouteRequest) ProtoMessage()
- func (x *RouteRequest) ProtoReflect() protoreflect.Message
- func (x *RouteRequest) Reset()
- func (x *RouteRequest) String() string
- type StartPeerRequest
- func (*StartPeerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StartPeerRequest) GetIndex() uint64
- func (x *StartPeerRequest) GetPublickey() string
- func (*StartPeerRequest) ProtoMessage()
- func (x *StartPeerRequest) ProtoReflect() protoreflect.Message
- func (x *StartPeerRequest) Reset()
- func (x *StartPeerRequest) String() string
- type UnimplementedPeeringServer
- type UnsafePeeringServer
Constants ¶
This section is empty.
Variables ¶
var File_peering_proto protoreflect.FileDescriptor
var Peering_ServiceDesc = grpc.ServiceDesc{ ServiceName: "openfogstack.celestial.peering.Peering", HandlerType: (*PeeringServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "StartPeer", Handler: _Peering_StartPeer_Handler, }, { MethodName: "Route", Handler: _Peering_Route_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "peering.proto", }
Peering_ServiceDesc is the grpc.ServiceDesc for Peering service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPeeringServer ¶
func RegisterPeeringServer(s grpc.ServiceRegistrar, srv PeeringServer)
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Machine ¶
type Machine struct {
// allow -1 for ground stations
Shell int64 `protobuf:"varint,1,opt,name=shell,proto3" json:"shell,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
// name is only used for ground stations
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*Machine) Descriptor
deprecated
func (*Machine) ProtoMessage ¶
func (*Machine) ProtoMessage()
func (*Machine) ProtoReflect ¶
func (x *Machine) ProtoReflect() protoreflect.Message
type PeeringClient ¶
type PeeringClient interface {
StartPeer(ctx context.Context, in *StartPeerRequest, opts ...grpc.CallOption) (*Empty, error)
Route(ctx context.Context, in *RouteRequest, opts ...grpc.CallOption) (*Empty, error)
}
PeeringClient is the client API for Peering 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 NewPeeringClient ¶
func NewPeeringClient(cc grpc.ClientConnInterface) PeeringClient
type PeeringServer ¶
type PeeringServer interface {
StartPeer(context.Context, *StartPeerRequest) (*Empty, error)
Route(context.Context, *RouteRequest) (*Empty, error)
}
PeeringServer is the server API for Peering service. All implementations should embed UnimplementedPeeringServer for forward compatibility
type RouteRequest ¶
type RouteRequest struct {
Machine *Machine `protobuf:"bytes,1,opt,name=machine,proto3" json:"machine,omitempty"`
Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
Bandwidth uint64 `protobuf:"varint,3,opt,name=bandwidth,proto3" json:"bandwidth,omitempty"`
// contains filtered or unexported fields
}
func (*RouteRequest) Descriptor
deprecated
func (*RouteRequest) Descriptor() ([]byte, []int)
Deprecated: Use RouteRequest.ProtoReflect.Descriptor instead.
func (*RouteRequest) GetBandwidth ¶
func (x *RouteRequest) GetBandwidth() uint64
func (*RouteRequest) GetIndex ¶
func (x *RouteRequest) GetIndex() uint64
func (*RouteRequest) GetMachine ¶
func (x *RouteRequest) GetMachine() *Machine
func (*RouteRequest) ProtoMessage ¶
func (*RouteRequest) ProtoMessage()
func (*RouteRequest) ProtoReflect ¶
func (x *RouteRequest) ProtoReflect() protoreflect.Message
func (*RouteRequest) Reset ¶
func (x *RouteRequest) Reset()
func (*RouteRequest) String ¶
func (x *RouteRequest) String() string
type StartPeerRequest ¶
type StartPeerRequest struct {
Publickey string `protobuf:"bytes,1,opt,name=publickey,proto3" json:"publickey,omitempty"`
Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
// contains filtered or unexported fields
}
func (*StartPeerRequest) Descriptor
deprecated
func (*StartPeerRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartPeerRequest.ProtoReflect.Descriptor instead.
func (*StartPeerRequest) GetIndex ¶
func (x *StartPeerRequest) GetIndex() uint64
func (*StartPeerRequest) GetPublickey ¶
func (x *StartPeerRequest) GetPublickey() string
func (*StartPeerRequest) ProtoMessage ¶
func (*StartPeerRequest) ProtoMessage()
func (*StartPeerRequest) ProtoReflect ¶
func (x *StartPeerRequest) ProtoReflect() protoreflect.Message
func (*StartPeerRequest) Reset ¶
func (x *StartPeerRequest) Reset()
func (*StartPeerRequest) String ¶
func (x *StartPeerRequest) String() string
type UnimplementedPeeringServer ¶
type UnimplementedPeeringServer struct {
}
UnimplementedPeeringServer should be embedded to have forward compatible implementations.
func (UnimplementedPeeringServer) Route ¶
func (UnimplementedPeeringServer) Route(context.Context, *RouteRequest) (*Empty, error)
func (UnimplementedPeeringServer) StartPeer ¶
func (UnimplementedPeeringServer) StartPeer(context.Context, *StartPeerRequest) (*Empty, error)
type UnsafePeeringServer ¶
type UnsafePeeringServer interface {
// contains filtered or unexported methods
}
UnsafePeeringServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PeeringServer will result in compilation errors.