peering

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_peering_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Machine.ProtoReflect.Descriptor instead.

func (*Machine) GetId

func (x *Machine) GetId() uint64

func (*Machine) GetName

func (x *Machine) GetName() string

func (*Machine) GetShell

func (x *Machine) GetShell() int64

func (*Machine) ProtoMessage

func (*Machine) ProtoMessage()

func (*Machine) ProtoReflect

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

func (*Machine) Reset

func (x *Machine) Reset()

func (*Machine) String

func (x *Machine) String() string

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) StartPeer

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.

Jump to

Keyboard shortcuts

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