protofiles

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

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BootstrapService_JoinInfo_FullMethodName     = "/can.BootstrapService/JoinInfo"
	BootstrapService_Leave_FullMethodName        = "/can.BootstrapService/Leave"
	BootstrapService_GetRootCApem_FullMethodName = "/can.BootstrapService/GetRootCApem"
	BootstrapService_SignCSR_FullMethodName      = "/can.BootstrapService/SignCSR"
)
View Source
const (
	CANNode_Join_FullMethodName                     = "/can.CANNode/Join"
	CANNode_Get_FullMethodName                      = "/can.CANNode/Get"
	CANNode_Put_FullMethodName                      = "/can.CANNode/Put"
	CANNode_Delete_FullMethodName                   = "/can.CANNode/Delete"
	CANNode_AddNeighbor_FullMethodName              = "/can.CANNode/AddNeighbor"
	CANNode_Heartbeat_FullMethodName                = "/can.CANNode/Heartbeat"
	CANNode_SendNeighbourInfo_FullMethodName        = "/can.CANNode/SendNeighbourInfo"
	CANNode_InitiateLeave_FullMethodName            = "/can.CANNode/InitiateLeave"
	CANNode_PerformDFS_FullMethodName               = "/can.CANNode/PerformDFS"
	CANNode_TakeoverZone_FullMethodName             = "/can.CANNode/TakeoverZone"
	CANNode_TransferData_FullMethodName             = "/can.CANNode/TransferData"
	CANNode_GetNeighbors_FullMethodName             = "/can.CANNode/GetNeighbors"
	CANNode_NotifyZoneMerge_FullMethodName          = "/can.CANNode/NotifyZoneMerge"
	CANNode_ElectTakeoverCoordinator_FullMethodName = "/can.CANNode/ElectTakeoverCoordinator"
)

Variables

View Source
var BootstrapService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "can.BootstrapService",
	HandlerType: (*BootstrapServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "JoinInfo",
			Handler:    _BootstrapService_JoinInfo_Handler,
		},
		{
			MethodName: "Leave",
			Handler:    _BootstrapService_Leave_Handler,
		},
		{
			MethodName: "GetRootCApem",
			Handler:    _BootstrapService_GetRootCApem_Handler,
		},
		{
			MethodName: "SignCSR",
			Handler:    _BootstrapService_SignCSR_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "bootstrap.proto",
}

BootstrapService_ServiceDesc is the grpc.ServiceDesc for BootstrapService 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 CANNode_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "can.CANNode",
	HandlerType: (*CANNodeServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Join",
			Handler:    _CANNode_Join_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _CANNode_Get_Handler,
		},
		{
			MethodName: "Put",
			Handler:    _CANNode_Put_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _CANNode_Delete_Handler,
		},
		{
			MethodName: "AddNeighbor",
			Handler:    _CANNode_AddNeighbor_Handler,
		},
		{
			MethodName: "Heartbeat",
			Handler:    _CANNode_Heartbeat_Handler,
		},
		{
			MethodName: "SendNeighbourInfo",
			Handler:    _CANNode_SendNeighbourInfo_Handler,
		},
		{
			MethodName: "InitiateLeave",
			Handler:    _CANNode_InitiateLeave_Handler,
		},
		{
			MethodName: "PerformDFS",
			Handler:    _CANNode_PerformDFS_Handler,
		},
		{
			MethodName: "TakeoverZone",
			Handler:    _CANNode_TakeoverZone_Handler,
		},
		{
			MethodName: "TransferData",
			Handler:    _CANNode_TransferData_Handler,
		},
		{
			MethodName: "GetNeighbors",
			Handler:    _CANNode_GetNeighbors_Handler,
		},
		{
			MethodName: "NotifyZoneMerge",
			Handler:    _CANNode_NotifyZoneMerge_Handler,
		},
		{
			MethodName: "ElectTakeoverCoordinator",
			Handler:    _CANNode_ElectTakeoverCoordinator_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "can.proto",
}

CANNode_ServiceDesc is the grpc.ServiceDesc for CANNode 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_bootstrap_proto protoreflect.FileDescriptor

Functions

func RegisterBootstrapServiceServer

func RegisterBootstrapServiceServer(s grpc.ServiceRegistrar, srv BootstrapServiceServer)

func RegisterCANNodeServer

func RegisterCANNodeServer(s grpc.ServiceRegistrar, srv CANNodeServer)

Types

type AddNeighborRequest

type AddNeighborRequest struct {
	Neighbor *Node `protobuf:"bytes,1,opt,name=neighbor,proto3" json:"neighbor,omitempty"` // The node to add as a neighbor
	// contains filtered or unexported fields
}

Request for adding a neighbor

func (*AddNeighborRequest) Descriptor deprecated

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

Deprecated: Use AddNeighborRequest.ProtoReflect.Descriptor instead.

func (*AddNeighborRequest) GetNeighbor

func (x *AddNeighborRequest) GetNeighbor() *Node

func (*AddNeighborRequest) ProtoMessage

func (*AddNeighborRequest) ProtoMessage()

func (*AddNeighborRequest) ProtoReflect

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

func (*AddNeighborRequest) Reset

func (x *AddNeighborRequest) Reset()

func (*AddNeighborRequest) String

func (x *AddNeighborRequest) String() string

type AddNeighborResponse

type AddNeighborResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Whether the neighbor was added successfully
	// contains filtered or unexported fields
}

func (*AddNeighborResponse) Descriptor deprecated

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

Deprecated: Use AddNeighborResponse.ProtoReflect.Descriptor instead.

func (*AddNeighborResponse) GetSuccess

func (x *AddNeighborResponse) GetSuccess() bool

func (*AddNeighborResponse) ProtoMessage

func (*AddNeighborResponse) ProtoMessage()

func (*AddNeighborResponse) ProtoReflect

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

func (*AddNeighborResponse) Reset

func (x *AddNeighborResponse) Reset()

func (*AddNeighborResponse) String

func (x *AddNeighborResponse) String() string

type BootstrapLeaveInfo

type BootstrapLeaveInfo struct {
	NodeAddress string `protobuf:"bytes,1,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"`
	// contains filtered or unexported fields
}

func (*BootstrapLeaveInfo) Descriptor deprecated

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

Deprecated: Use BootstrapLeaveInfo.ProtoReflect.Descriptor instead.

func (*BootstrapLeaveInfo) GetNodeAddress

func (x *BootstrapLeaveInfo) GetNodeAddress() string

func (*BootstrapLeaveInfo) ProtoMessage

func (*BootstrapLeaveInfo) ProtoMessage()

func (*BootstrapLeaveInfo) ProtoReflect

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

func (*BootstrapLeaveInfo) Reset

func (x *BootstrapLeaveInfo) Reset()

func (*BootstrapLeaveInfo) String

func (x *BootstrapLeaveInfo) String() string

type BootstrapLeaveResponse

type BootstrapLeaveResponse struct {
	// contains filtered or unexported fields
}

func (*BootstrapLeaveResponse) Descriptor deprecated

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

Deprecated: Use BootstrapLeaveResponse.ProtoReflect.Descriptor instead.

func (*BootstrapLeaveResponse) ProtoMessage

func (*BootstrapLeaveResponse) ProtoMessage()

func (*BootstrapLeaveResponse) ProtoReflect

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

func (*BootstrapLeaveResponse) Reset

func (x *BootstrapLeaveResponse) Reset()

func (*BootstrapLeaveResponse) String

func (x *BootstrapLeaveResponse) String() string

type BootstrapServiceClient

type BootstrapServiceClient interface {
	// JoinInfo returns a list of active nodes in the network
	JoinInfo(ctx context.Context, in *JoinInfoRequest, opts ...grpc.CallOption) (*JoinInfoResponse, error)
	// Leave informs rpc of the leaving node
	Leave(ctx context.Context, in *BootstrapLeaveInfo, opts ...grpc.CallOption) (*BootstrapLeaveResponse, error)
	// GetRootCApem returns the root CA certificate
	GetRootCApem(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*RootCApemResponse, error)
	// SignCSR signs a Certificate Signing Request (CSR) and returns the signed certificate
	SignCSR(ctx context.Context, in *SignCSRRequest, opts ...grpc.CallOption) (*SignCSRResponse, error)
}

BootstrapServiceClient is the client API for BootstrapService 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.

BootstrapService provides the ability to discover nodes in the network

type BootstrapServiceServer

type BootstrapServiceServer interface {
	// JoinInfo returns a list of active nodes in the network
	JoinInfo(context.Context, *JoinInfoRequest) (*JoinInfoResponse, error)
	// Leave informs rpc of the leaving node
	Leave(context.Context, *BootstrapLeaveInfo) (*BootstrapLeaveResponse, error)
	// GetRootCApem returns the root CA certificate
	GetRootCApem(context.Context, *emptypb.Empty) (*RootCApemResponse, error)
	// SignCSR signs a Certificate Signing Request (CSR) and returns the signed certificate
	SignCSR(context.Context, *SignCSRRequest) (*SignCSRResponse, error)
	// contains filtered or unexported methods
}

BootstrapServiceServer is the server API for BootstrapService service. All implementations must embed UnimplementedBootstrapServiceServer for forward compatibility.

BootstrapService provides the ability to discover nodes in the network

type CANNodeClient

type CANNodeClient interface {
	// Join the CAN network
	Join(ctx context.Context, in *JoinRequest, opts ...grpc.CallOption) (*JoinResponse, error)
	// Get a key in the CAN network
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	// Put a key-value pair in the CAN network
	Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error)
	// Delete a key-value pair in the CAN network
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
	// Add a neighbor to the routing table
	AddNeighbor(ctx context.Context, in *AddNeighborRequest, opts ...grpc.CallOption) (*AddNeighborResponse, error)
	// Send Heartbeat
	Heartbeat(ctx context.Context, in *HeartbeatRequest, opts ...grpc.CallOption) (*HeartbeatResponse, error)
	// Send neighbour and zone information
	SendNeighbourInfo(ctx context.Context, in *NeighbourInfoRequest, opts ...grpc.CallOption) (*NeighbourInfoResponse, error)
	// Start the leave process
	InitiateLeave(ctx context.Context, in *LeaveRequest, opts ...grpc.CallOption) (*LeaveResponse, error)
	// Handle the DFS process
	PerformDFS(ctx context.Context, in *DFSRequest, opts ...grpc.CallOption) (*DFSResponse, error)
	// Handle the takeover process
	TakeoverZone(ctx context.Context, in *TakeoverRequest, opts ...grpc.CallOption) (*TakeoverResponse, error)
	TransferData(ctx context.Context, in *TransferDataRequest, opts ...grpc.CallOption) (*TransferDataResponse, error)
	GetNeighbors(ctx context.Context, in *GetNeighborsRequest, opts ...grpc.CallOption) (*GetNeighborsResponse, error)
	NotifyZoneMerge(ctx context.Context, in *ZoneMergeNotification, opts ...grpc.CallOption) (*ZoneMergeResponse, error)
	ElectTakeoverCoordinator(ctx context.Context, in *CoordinatorElectionRequest, opts ...grpc.CallOption) (*CoordinatorElectionResponse, error)
}

CANNodeClient is the client API for CANNode 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.

Define the CAN Node Service

func NewCANNodeClient

func NewCANNodeClient(cc grpc.ClientConnInterface) CANNodeClient

type CANNodeServer

type CANNodeServer interface {
	// Join the CAN network
	Join(context.Context, *JoinRequest) (*JoinResponse, error)
	// Get a key in the CAN network
	Get(context.Context, *GetRequest) (*GetResponse, error)
	// Put a key-value pair in the CAN network
	Put(context.Context, *PutRequest) (*PutResponse, error)
	// Delete a key-value pair in the CAN network
	Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
	// Add a neighbor to the routing table
	AddNeighbor(context.Context, *AddNeighborRequest) (*AddNeighborResponse, error)
	// Send Heartbeat
	Heartbeat(context.Context, *HeartbeatRequest) (*HeartbeatResponse, error)
	// Send neighbour and zone information
	SendNeighbourInfo(context.Context, *NeighbourInfoRequest) (*NeighbourInfoResponse, error)
	// Start the leave process
	InitiateLeave(context.Context, *LeaveRequest) (*LeaveResponse, error)
	// Handle the DFS process
	PerformDFS(context.Context, *DFSRequest) (*DFSResponse, error)
	// Handle the takeover process
	TakeoverZone(context.Context, *TakeoverRequest) (*TakeoverResponse, error)
	TransferData(context.Context, *TransferDataRequest) (*TransferDataResponse, error)
	GetNeighbors(context.Context, *GetNeighborsRequest) (*GetNeighborsResponse, error)
	NotifyZoneMerge(context.Context, *ZoneMergeNotification) (*ZoneMergeResponse, error)
	ElectTakeoverCoordinator(context.Context, *CoordinatorElectionRequest) (*CoordinatorElectionResponse, error)
	// contains filtered or unexported methods
}

CANNodeServer is the server API for CANNode service. All implementations must embed UnimplementedCANNodeServer for forward compatibility.

Define the CAN Node Service

type CoordinatorElectionRequest

type CoordinatorElectionRequest struct {
	CandidateNodeId string  `protobuf:"bytes,1,opt,name=candidate_node_id,json=candidateNodeId,proto3" json:"candidate_node_id,omitempty"`
	CandidateVolume float32 `protobuf:"fixed32,2,opt,name=candidate_volume,json=candidateVolume,proto3" json:"candidate_volume,omitempty"`
	CrashedNodeId   string  `protobuf:"bytes,3,opt,name=crashed_node_id,json=crashedNodeId,proto3" json:"crashed_node_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CoordinatorElectionRequest) Descriptor deprecated

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

Deprecated: Use CoordinatorElectionRequest.ProtoReflect.Descriptor instead.

func (*CoordinatorElectionRequest) GetCandidateNodeId

func (x *CoordinatorElectionRequest) GetCandidateNodeId() string

func (*CoordinatorElectionRequest) GetCandidateVolume

func (x *CoordinatorElectionRequest) GetCandidateVolume() float32

func (*CoordinatorElectionRequest) GetCrashedNodeId

func (x *CoordinatorElectionRequest) GetCrashedNodeId() string

func (*CoordinatorElectionRequest) ProtoMessage

func (*CoordinatorElectionRequest) ProtoMessage()

func (*CoordinatorElectionRequest) ProtoReflect

func (*CoordinatorElectionRequest) Reset

func (x *CoordinatorElectionRequest) Reset()

func (*CoordinatorElectionRequest) String

func (x *CoordinatorElectionRequest) String() string

type CoordinatorElectionResponse

type CoordinatorElectionResponse struct {
	ShouldBeCoordinator bool `protobuf:"varint,1,opt,name=should_be_coordinator,json=shouldBeCoordinator,proto3" json:"should_be_coordinator,omitempty"`
	// contains filtered or unexported fields
}

func (*CoordinatorElectionResponse) Descriptor deprecated

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

Deprecated: Use CoordinatorElectionResponse.ProtoReflect.Descriptor instead.

func (*CoordinatorElectionResponse) GetShouldBeCoordinator

func (x *CoordinatorElectionResponse) GetShouldBeCoordinator() bool

func (*CoordinatorElectionResponse) ProtoMessage

func (*CoordinatorElectionResponse) ProtoMessage()

func (*CoordinatorElectionResponse) ProtoReflect

func (*CoordinatorElectionResponse) Reset

func (x *CoordinatorElectionResponse) Reset()

func (*CoordinatorElectionResponse) String

func (x *CoordinatorElectionResponse) String() string

type DFSRequest

type DFSRequest struct {
	LeavingNodeId string `protobuf:"bytes,1,opt,name=leaving_node_id,json=leavingNodeId,proto3" json:"leaving_node_id,omitempty"`
	ParentZone    *Zone  `protobuf:"bytes,2,opt,name=parent_zone,json=parentZone,proto3" json:"parent_zone,omitempty"`
	ParentNodeId  string `protobuf:"bytes,3,opt,name=parent_node_id,json=parentNodeId,proto3" json:"parent_node_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DFSRequest) Descriptor deprecated

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

Deprecated: Use DFSRequest.ProtoReflect.Descriptor instead.

func (*DFSRequest) GetLeavingNodeId

func (x *DFSRequest) GetLeavingNodeId() string

func (*DFSRequest) GetParentNodeId

func (x *DFSRequest) GetParentNodeId() string

func (*DFSRequest) GetParentZone

func (x *DFSRequest) GetParentZone() *Zone

func (*DFSRequest) ProtoMessage

func (*DFSRequest) ProtoMessage()

func (*DFSRequest) ProtoReflect

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

func (*DFSRequest) Reset

func (x *DFSRequest) Reset()

func (*DFSRequest) String

func (x *DFSRequest) String() string

type DFSResponse

type DFSResponse struct {
	FoundSibling    bool   `protobuf:"varint,1,opt,name=found_sibling,json=foundSibling,proto3" json:"found_sibling,omitempty"`
	TakeoverNodeId  string `protobuf:"bytes,2,opt,name=takeover_node_id,json=takeoverNodeId,proto3" json:"takeover_node_id,omitempty"`
	TakeoverAddress string `protobuf:"bytes,3,opt,name=takeover_address,json=takeoverAddress,proto3" json:"takeover_address,omitempty"`
	TakeoverZone    *Zone  `protobuf:"bytes,4,opt,name=takeover_zone,json=takeoverZone,proto3" json:"takeover_zone,omitempty"`
	// contains filtered or unexported fields
}

func (*DFSResponse) Descriptor deprecated

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

Deprecated: Use DFSResponse.ProtoReflect.Descriptor instead.

func (*DFSResponse) GetFoundSibling

func (x *DFSResponse) GetFoundSibling() bool

func (*DFSResponse) GetTakeoverAddress

func (x *DFSResponse) GetTakeoverAddress() string

func (*DFSResponse) GetTakeoverNodeId

func (x *DFSResponse) GetTakeoverNodeId() string

func (*DFSResponse) GetTakeoverZone

func (x *DFSResponse) GetTakeoverZone() *Zone

func (*DFSResponse) ProtoMessage

func (*DFSResponse) ProtoMessage()

func (*DFSResponse) ProtoReflect

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

func (*DFSResponse) Reset

func (x *DFSResponse) Reset()

func (*DFSResponse) String

func (x *DFSResponse) String() string

type DeleteRequest

type DeleteRequest struct {
	Key       string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	HashToUse int32  `protobuf:"varint,2,opt,name=hash_to_use,json=hashToUse,proto3" json:"hash_to_use,omitempty"` // Hash function to use for the key
	// contains filtered or unexported fields
}

Request for deleting a key-value pair

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetHashToUse

func (x *DeleteRequest) GetHashToUse() int32

func (*DeleteRequest) GetKey

func (x *DeleteRequest) GetKey() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type DeleteResponse

type DeleteResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Whether the key-value pair was deleted successfully
	// contains filtered or unexported fields
}

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) GetSuccess

func (x *DeleteResponse) GetSuccess() bool

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

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

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

type GetNeighborsRequest

type GetNeighborsRequest struct {
	// contains filtered or unexported fields
}

func (*GetNeighborsRequest) Descriptor deprecated

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

Deprecated: Use GetNeighborsRequest.ProtoReflect.Descriptor instead.

func (*GetNeighborsRequest) ProtoMessage

func (*GetNeighborsRequest) ProtoMessage()

func (*GetNeighborsRequest) ProtoReflect

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

func (*GetNeighborsRequest) Reset

func (x *GetNeighborsRequest) Reset()

func (*GetNeighborsRequest) String

func (x *GetNeighborsRequest) String() string

type GetNeighborsResponse

type GetNeighborsResponse struct {
	Neighbors []*Node `protobuf:"bytes,1,rep,name=neighbors,proto3" json:"neighbors,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNeighborsResponse) Descriptor deprecated

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

Deprecated: Use GetNeighborsResponse.ProtoReflect.Descriptor instead.

func (*GetNeighborsResponse) GetNeighbors

func (x *GetNeighborsResponse) GetNeighbors() []*Node

func (*GetNeighborsResponse) ProtoMessage

func (*GetNeighborsResponse) ProtoMessage()

func (*GetNeighborsResponse) ProtoReflect

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

func (*GetNeighborsResponse) Reset

func (x *GetNeighborsResponse) Reset()

func (*GetNeighborsResponse) String

func (x *GetNeighborsResponse) String() string

type GetRequest

type GetRequest struct {
	Key       string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	HashToUse int32  `protobuf:"varint,2,opt,name=hash_to_use,json=hashToUse,proto3" json:"hash_to_use,omitempty"`
	// contains filtered or unexported fields
}

Request for looking up a key

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetHashToUse

func (x *GetRequest) GetHashToUse() int32

func (*GetRequest) GetKey

func (x *GetRequest) GetKey() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type GetResponse

type GetResponse struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResponse) Descriptor deprecated

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

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetValue

func (x *GetResponse) GetValue() []byte

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect

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

func (*GetResponse) Reset

func (x *GetResponse) Reset()

func (*GetResponse) String

func (x *GetResponse) String() string

type HeartbeatRequest

type HeartbeatRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // IP:Port of the node
	// contains filtered or unexported fields
}

Request for sending a heartbeat

func (*HeartbeatRequest) Descriptor deprecated

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

Deprecated: Use HeartbeatRequest.ProtoReflect.Descriptor instead.

func (*HeartbeatRequest) GetAddress

func (x *HeartbeatRequest) GetAddress() string

func (*HeartbeatRequest) ProtoMessage

func (*HeartbeatRequest) ProtoMessage()

func (*HeartbeatRequest) ProtoReflect

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

func (*HeartbeatRequest) Reset

func (x *HeartbeatRequest) Reset()

func (*HeartbeatRequest) String

func (x *HeartbeatRequest) String() string

type HeartbeatResponse

type HeartbeatResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Whether the heartbeat was acknowledged
	// contains filtered or unexported fields
}

func (*HeartbeatResponse) Descriptor deprecated

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

Deprecated: Use HeartbeatResponse.ProtoReflect.Descriptor instead.

func (*HeartbeatResponse) GetSuccess

func (x *HeartbeatResponse) GetSuccess() bool

func (*HeartbeatResponse) ProtoMessage

func (*HeartbeatResponse) ProtoMessage()

func (*HeartbeatResponse) ProtoReflect

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

func (*HeartbeatResponse) Reset

func (x *HeartbeatResponse) Reset()

func (*HeartbeatResponse) String

func (x *HeartbeatResponse) String() string

type JoinInfoRequest

type JoinInfoRequest struct {

	// Address where the node can be reached
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

JoinInfoRequest contains information about a node in the network

func (*JoinInfoRequest) Descriptor deprecated

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

Deprecated: Use JoinInfoRequest.ProtoReflect.Descriptor instead.

func (*JoinInfoRequest) GetAddress

func (x *JoinInfoRequest) GetAddress() string

func (*JoinInfoRequest) ProtoMessage

func (*JoinInfoRequest) ProtoMessage()

func (*JoinInfoRequest) ProtoReflect

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

func (*JoinInfoRequest) Reset

func (x *JoinInfoRequest) Reset()

func (*JoinInfoRequest) String

func (x *JoinInfoRequest) String() string

type JoinInfoResponse

type JoinInfoResponse struct {
	Dimensions  uint32   `protobuf:"varint,1,opt,name=dimensions,proto3" json:"dimensions,omitempty"`
	NumHashes   uint32   `protobuf:"varint,2,opt,name=num_hashes,json=numHashes,proto3" json:"num_hashes,omitempty"`
	NodeId      string   `protobuf:"bytes,3,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	ActiveNodes []string `protobuf:"bytes,4,rep,name=active_nodes,json=activeNodes,proto3" json:"active_nodes,omitempty"` // IP Addresses of active nodes
	// contains filtered or unexported fields
}

JoinInfoResponse contains a list of active nodes in the network

func (*JoinInfoResponse) Descriptor deprecated

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

Deprecated: Use JoinInfoResponse.ProtoReflect.Descriptor instead.

func (*JoinInfoResponse) GetActiveNodes

func (x *JoinInfoResponse) GetActiveNodes() []string

func (*JoinInfoResponse) GetDimensions

func (x *JoinInfoResponse) GetDimensions() uint32

func (*JoinInfoResponse) GetNodeId

func (x *JoinInfoResponse) GetNodeId() string

func (*JoinInfoResponse) GetNumHashes

func (x *JoinInfoResponse) GetNumHashes() uint32

func (*JoinInfoResponse) ProtoMessage

func (*JoinInfoResponse) ProtoMessage()

func (*JoinInfoResponse) ProtoReflect

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

func (*JoinInfoResponse) Reset

func (x *JoinInfoResponse) Reset()

func (*JoinInfoResponse) String

func (x *JoinInfoResponse) String() string

type JoinRequest

type JoinRequest struct {

	// coordinates of the zone to be split - should be exactly d floats
	Coordinates []float32 `protobuf:"fixed32,1,rep,packed,name=coordinates,proto3" json:"coordinates,omitempty"`
	NodeId      string    `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // Unique identifier for the node
	Address     string    `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`             // IP:Port of the node
	// contains filtered or unexported fields
}

Request for joining the CAN network

func (*JoinRequest) Descriptor deprecated

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

Deprecated: Use JoinRequest.ProtoReflect.Descriptor instead.

func (*JoinRequest) GetAddress

func (x *JoinRequest) GetAddress() string

func (*JoinRequest) GetCoordinates

func (x *JoinRequest) GetCoordinates() []float32

func (*JoinRequest) GetNodeId

func (x *JoinRequest) GetNodeId() string

func (*JoinRequest) ProtoMessage

func (*JoinRequest) ProtoMessage()

func (*JoinRequest) ProtoReflect

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

func (*JoinRequest) Reset

func (x *JoinRequest) Reset()

func (*JoinRequest) String

func (x *JoinRequest) String() string

type JoinResponse

type JoinResponse struct {
	AssignedZone    *Zone           `protobuf:"bytes,1,opt,name=assigned_zone,json=assignedZone,proto3" json:"assigned_zone,omitempty"`          // The zone assigned to the node
	Neighbors       []*Node         `protobuf:"bytes,2,rep,name=neighbors,proto3" json:"neighbors,omitempty"`                                    // List of neighboring nodes
	TransferredData []*KeyValuePair `protobuf:"bytes,3,rep,name=transferred_data,json=transferredData,proto3" json:"transferred_data,omitempty"` // Key-value pairs for the assigned zone
	// contains filtered or unexported fields
}

func (*JoinResponse) Descriptor deprecated

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

Deprecated: Use JoinResponse.ProtoReflect.Descriptor instead.

func (*JoinResponse) GetAssignedZone

func (x *JoinResponse) GetAssignedZone() *Zone

func (*JoinResponse) GetNeighbors

func (x *JoinResponse) GetNeighbors() []*Node

func (*JoinResponse) GetTransferredData

func (x *JoinResponse) GetTransferredData() []*KeyValuePair

func (*JoinResponse) ProtoMessage

func (*JoinResponse) ProtoMessage()

func (*JoinResponse) ProtoReflect

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

func (*JoinResponse) Reset

func (x *JoinResponse) Reset()

func (*JoinResponse) String

func (x *JoinResponse) String() string

type KeyValuePair

type KeyValuePair struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyValuePair) Descriptor deprecated

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

Deprecated: Use KeyValuePair.ProtoReflect.Descriptor instead.

func (*KeyValuePair) GetKey

func (x *KeyValuePair) GetKey() string

func (*KeyValuePair) GetValue

func (x *KeyValuePair) GetValue() []byte

func (*KeyValuePair) ProtoMessage

func (*KeyValuePair) ProtoMessage()

func (*KeyValuePair) ProtoReflect

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

func (*KeyValuePair) Reset

func (x *KeyValuePair) Reset()

func (*KeyValuePair) String

func (x *KeyValuePair) String() string

type LeaveRequest

type LeaveRequest struct {
	LeavingNodeId string `protobuf:"bytes,1,opt,name=leaving_node_id,json=leavingNodeId,proto3" json:"leaving_node_id,omitempty"`
	LeavingZone   *Zone  `protobuf:"bytes,2,opt,name=leaving_zone,json=leavingZone,proto3" json:"leaving_zone,omitempty"`
	// contains filtered or unexported fields
}

New message types

func (*LeaveRequest) Descriptor deprecated

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

Deprecated: Use LeaveRequest.ProtoReflect.Descriptor instead.

func (*LeaveRequest) GetLeavingNodeId

func (x *LeaveRequest) GetLeavingNodeId() string

func (*LeaveRequest) GetLeavingZone

func (x *LeaveRequest) GetLeavingZone() *Zone

func (*LeaveRequest) ProtoMessage

func (*LeaveRequest) ProtoMessage()

func (*LeaveRequest) ProtoReflect

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

func (*LeaveRequest) Reset

func (x *LeaveRequest) Reset()

func (*LeaveRequest) String

func (x *LeaveRequest) String() string

type LeaveResponse

type LeaveResponse struct {
	Success      bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

func (*LeaveResponse) Descriptor deprecated

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

Deprecated: Use LeaveResponse.ProtoReflect.Descriptor instead.

func (*LeaveResponse) GetErrorMessage

func (x *LeaveResponse) GetErrorMessage() string

func (*LeaveResponse) GetSuccess

func (x *LeaveResponse) GetSuccess() bool

func (*LeaveResponse) ProtoMessage

func (*LeaveResponse) ProtoMessage()

func (*LeaveResponse) ProtoReflect

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

func (*LeaveResponse) Reset

func (x *LeaveResponse) Reset()

func (*LeaveResponse) String

func (x *LeaveResponse) String() string

type NeighbourInfoRequest

type NeighbourInfoRequest struct {
	NodeId     string  `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // Unique identifier for the node
	Zone       *Zone   `protobuf:"bytes,2,opt,name=zone,proto3" json:"zone,omitempty"`                   // The zone assigned to the node
	Neighbours []*Node `protobuf:"bytes,3,rep,name=neighbours,proto3" json:"neighbours,omitempty"`       // List of neighboring nodes
	Zones      []*Zone `protobuf:"bytes,4,rep,name=zones,proto3" json:"zones,omitempty"`                 // List of neighbor zones
	// contains filtered or unexported fields
}

Request for sending neighbor and zone information

func (*NeighbourInfoRequest) Descriptor deprecated

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

Deprecated: Use NeighbourInfoRequest.ProtoReflect.Descriptor instead.

func (*NeighbourInfoRequest) GetNeighbours

func (x *NeighbourInfoRequest) GetNeighbours() []*Node

func (*NeighbourInfoRequest) GetNodeId

func (x *NeighbourInfoRequest) GetNodeId() string

func (*NeighbourInfoRequest) GetZone

func (x *NeighbourInfoRequest) GetZone() *Zone

func (*NeighbourInfoRequest) GetZones

func (x *NeighbourInfoRequest) GetZones() []*Zone

func (*NeighbourInfoRequest) ProtoMessage

func (*NeighbourInfoRequest) ProtoMessage()

func (*NeighbourInfoRequest) ProtoReflect

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

func (*NeighbourInfoRequest) Reset

func (x *NeighbourInfoRequest) Reset()

func (*NeighbourInfoRequest) String

func (x *NeighbourInfoRequest) String() string

type NeighbourInfoResponse

type NeighbourInfoResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Whether the neighbor information was sent successfully
	// contains filtered or unexported fields
}

func (*NeighbourInfoResponse) Descriptor deprecated

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

Deprecated: Use NeighbourInfoResponse.ProtoReflect.Descriptor instead.

func (*NeighbourInfoResponse) GetSuccess

func (x *NeighbourInfoResponse) GetSuccess() bool

func (*NeighbourInfoResponse) ProtoMessage

func (*NeighbourInfoResponse) ProtoMessage()

func (*NeighbourInfoResponse) ProtoReflect

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

func (*NeighbourInfoResponse) Reset

func (x *NeighbourInfoResponse) Reset()

func (*NeighbourInfoResponse) String

func (x *NeighbourInfoResponse) String() string

type Node

type Node struct {
	NodeId  string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // Unique identifier for the node
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`             // IP:Port of the node
	Zone    *Zone  `protobuf:"bytes,3,opt,name=zone,proto3" json:"zone,omitempty"`                   // The zone assigned to the node
	// contains filtered or unexported fields
}

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetAddress

func (x *Node) GetAddress() string

func (*Node) GetNodeId

func (x *Node) GetNodeId() string

func (*Node) GetZone

func (x *Node) GetZone() *Zone

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type PutRequest

type PutRequest struct {
	Key       string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value     []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	HashToUse int32  `protobuf:"varint,3,opt,name=hash_to_use,json=hashToUse,proto3" json:"hash_to_use,omitempty"` // Hash function to use for the key
	// contains filtered or unexported fields
}

Request for storing a key-value pair

func (*PutRequest) Descriptor deprecated

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

Deprecated: Use PutRequest.ProtoReflect.Descriptor instead.

func (*PutRequest) GetHashToUse

func (x *PutRequest) GetHashToUse() int32

func (*PutRequest) GetKey

func (x *PutRequest) GetKey() string

func (*PutRequest) GetValue

func (x *PutRequest) GetValue() []byte

func (*PutRequest) ProtoMessage

func (*PutRequest) ProtoMessage()

func (*PutRequest) ProtoReflect

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

func (*PutRequest) Reset

func (x *PutRequest) Reset()

func (*PutRequest) String

func (x *PutRequest) String() string

type PutResponse

type PutResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Whether the key-value pair was stored successfully
	// contains filtered or unexported fields
}

func (*PutResponse) Descriptor deprecated

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

Deprecated: Use PutResponse.ProtoReflect.Descriptor instead.

func (*PutResponse) GetSuccess

func (x *PutResponse) GetSuccess() bool

func (*PutResponse) ProtoMessage

func (*PutResponse) ProtoMessage()

func (*PutResponse) ProtoReflect

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

func (*PutResponse) Reset

func (x *PutResponse) Reset()

func (*PutResponse) String

func (x *PutResponse) String() string

type RootCApemResponse

type RootCApemResponse struct {
	RootCaPem []byte `protobuf:"bytes,1,opt,name=root_ca_pem,json=rootCaPem,proto3" json:"root_ca_pem,omitempty"` // PEM encoded root CA certificate
	// contains filtered or unexported fields
}

RootCApemResponse contains the root CA certificate

func (*RootCApemResponse) Descriptor deprecated

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

Deprecated: Use RootCApemResponse.ProtoReflect.Descriptor instead.

func (*RootCApemResponse) GetRootCaPem

func (x *RootCApemResponse) GetRootCaPem() []byte

func (*RootCApemResponse) ProtoMessage

func (*RootCApemResponse) ProtoMessage()

func (*RootCApemResponse) ProtoReflect

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

func (*RootCApemResponse) Reset

func (x *RootCApemResponse) Reset()

func (*RootCApemResponse) String

func (x *RootCApemResponse) String() string

type SignCSRRequest

type SignCSRRequest struct {
	CsrPem []byte `protobuf:"bytes,1,opt,name=csr_pem,json=csrPem,proto3" json:"csr_pem,omitempty"` // PEM-encoded CSR generated by node
	IpSan  string `protobuf:"bytes,2,opt,name=ip_san,json=ipSan,proto3" json:"ip_san,omitempty"`    // IP SAN for the certificate
	// contains filtered or unexported fields
}

func (*SignCSRRequest) Descriptor deprecated

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

Deprecated: Use SignCSRRequest.ProtoReflect.Descriptor instead.

func (*SignCSRRequest) GetCsrPem

func (x *SignCSRRequest) GetCsrPem() []byte

func (*SignCSRRequest) GetIpSan

func (x *SignCSRRequest) GetIpSan() string

func (*SignCSRRequest) ProtoMessage

func (*SignCSRRequest) ProtoMessage()

func (*SignCSRRequest) ProtoReflect

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

func (*SignCSRRequest) Reset

func (x *SignCSRRequest) Reset()

func (*SignCSRRequest) String

func (x *SignCSRRequest) String() string

type SignCSRResponse

type SignCSRResponse struct {
	SignedCertPem []byte `protobuf:"bytes,1,opt,name=signed_cert_pem,json=signedCertPem,proto3" json:"signed_cert_pem,omitempty"` // Signed certificate (PEM)
	// contains filtered or unexported fields
}

func (*SignCSRResponse) Descriptor deprecated

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

Deprecated: Use SignCSRResponse.ProtoReflect.Descriptor instead.

func (*SignCSRResponse) GetSignedCertPem

func (x *SignCSRResponse) GetSignedCertPem() []byte

func (*SignCSRResponse) ProtoMessage

func (*SignCSRResponse) ProtoMessage()

func (*SignCSRResponse) ProtoReflect

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

func (*SignCSRResponse) Reset

func (x *SignCSRResponse) Reset()

func (*SignCSRResponse) String

func (x *SignCSRResponse) String() string

type TakeoverRequest

type TakeoverRequest struct {
	LeavingNodeId      string `protobuf:"bytes,1,opt,name=leaving_node_id,json=leavingNodeId,proto3" json:"leaving_node_id,omitempty"`
	LeavingNodeAddress string `protobuf:"bytes,2,opt,name=leaving_node_address,json=leavingNodeAddress,proto3" json:"leaving_node_address,omitempty"`
	LeavingZone        *Zone  `protobuf:"bytes,3,opt,name=leaving_zone,json=leavingZone,proto3" json:"leaving_zone,omitempty"`
	IsGraceful         bool   `protobuf:"varint,4,opt,name=is_graceful,json=isGraceful,proto3" json:"is_graceful,omitempty"` // Whether this is a graceful leave or a crash
	// contains filtered or unexported fields
}

func (*TakeoverRequest) Descriptor deprecated

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

Deprecated: Use TakeoverRequest.ProtoReflect.Descriptor instead.

func (*TakeoverRequest) GetIsGraceful

func (x *TakeoverRequest) GetIsGraceful() bool

func (*TakeoverRequest) GetLeavingNodeAddress

func (x *TakeoverRequest) GetLeavingNodeAddress() string

func (*TakeoverRequest) GetLeavingNodeId

func (x *TakeoverRequest) GetLeavingNodeId() string

func (*TakeoverRequest) GetLeavingZone

func (x *TakeoverRequest) GetLeavingZone() *Zone

func (*TakeoverRequest) ProtoMessage

func (*TakeoverRequest) ProtoMessage()

func (*TakeoverRequest) ProtoReflect

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

func (*TakeoverRequest) Reset

func (x *TakeoverRequest) Reset()

func (*TakeoverRequest) String

func (x *TakeoverRequest) String() string

type TakeoverResponse

type TakeoverResponse struct {
	Success      bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

func (*TakeoverResponse) Descriptor deprecated

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

Deprecated: Use TakeoverResponse.ProtoReflect.Descriptor instead.

func (*TakeoverResponse) GetErrorMessage

func (x *TakeoverResponse) GetErrorMessage() string

func (*TakeoverResponse) GetSuccess

func (x *TakeoverResponse) GetSuccess() bool

func (*TakeoverResponse) ProtoMessage

func (*TakeoverResponse) ProtoMessage()

func (*TakeoverResponse) ProtoReflect

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

func (*TakeoverResponse) Reset

func (x *TakeoverResponse) Reset()

func (*TakeoverResponse) String

func (x *TakeoverResponse) String() string

type TransferDataRequest

type TransferDataRequest struct {
	RequestingNodeId string `protobuf:"bytes,1,opt,name=requesting_node_id,json=requestingNodeId,proto3" json:"requesting_node_id,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferDataRequest) Descriptor deprecated

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

Deprecated: Use TransferDataRequest.ProtoReflect.Descriptor instead.

func (*TransferDataRequest) GetRequestingNodeId

func (x *TransferDataRequest) GetRequestingNodeId() string

func (*TransferDataRequest) ProtoMessage

func (*TransferDataRequest) ProtoMessage()

func (*TransferDataRequest) ProtoReflect

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

func (*TransferDataRequest) Reset

func (x *TransferDataRequest) Reset()

func (*TransferDataRequest) String

func (x *TransferDataRequest) String() string

type TransferDataResponse

type TransferDataResponse struct {
	Data []*KeyValuePair `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferDataResponse) Descriptor deprecated

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

Deprecated: Use TransferDataResponse.ProtoReflect.Descriptor instead.

func (*TransferDataResponse) GetData

func (x *TransferDataResponse) GetData() []*KeyValuePair

func (*TransferDataResponse) ProtoMessage

func (*TransferDataResponse) ProtoMessage()

func (*TransferDataResponse) ProtoReflect

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

func (*TransferDataResponse) Reset

func (x *TransferDataResponse) Reset()

func (*TransferDataResponse) String

func (x *TransferDataResponse) String() string

type UnimplementedBootstrapServiceServer

type UnimplementedBootstrapServiceServer struct{}

UnimplementedBootstrapServiceServer must 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 (UnimplementedBootstrapServiceServer) GetRootCApem

func (UnimplementedBootstrapServiceServer) JoinInfo

func (UnimplementedBootstrapServiceServer) Leave

func (UnimplementedBootstrapServiceServer) SignCSR

type UnimplementedCANNodeServer

type UnimplementedCANNodeServer struct{}

UnimplementedCANNodeServer must 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 (UnimplementedCANNodeServer) AddNeighbor

func (UnimplementedCANNodeServer) Delete

func (UnimplementedCANNodeServer) Get

func (UnimplementedCANNodeServer) GetNeighbors

func (UnimplementedCANNodeServer) Heartbeat

func (UnimplementedCANNodeServer) InitiateLeave

func (UnimplementedCANNodeServer) Join

func (UnimplementedCANNodeServer) NotifyZoneMerge

func (UnimplementedCANNodeServer) PerformDFS

func (UnimplementedCANNodeServer) Put

func (UnimplementedCANNodeServer) SendNeighbourInfo

func (UnimplementedCANNodeServer) TakeoverZone

func (UnimplementedCANNodeServer) TransferData

type UnsafeBootstrapServiceServer

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

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

type UnsafeCANNodeServer

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

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

type Zone

type Zone struct {
	MinCoordinates []float32 `protobuf:"fixed32,1,rep,packed,name=minCoordinates,proto3" json:"minCoordinates,omitempty"` // coordinates of the zone (d)
	MaxCoordinates []float32 `protobuf:"fixed32,2,rep,packed,name=maxCoordinates,proto3" json:"maxCoordinates,omitempty"` // coordinates of the zone (d)
	// contains filtered or unexported fields
}

meta types Zone, Node and KeyValuePair

func (*Zone) Descriptor deprecated

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

Deprecated: Use Zone.ProtoReflect.Descriptor instead.

func (*Zone) GetMaxCoordinates

func (x *Zone) GetMaxCoordinates() []float32

func (*Zone) GetMinCoordinates

func (x *Zone) GetMinCoordinates() []float32

func (*Zone) ProtoMessage

func (*Zone) ProtoMessage()

func (*Zone) ProtoReflect

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

func (*Zone) Reset

func (x *Zone) Reset()

func (*Zone) String

func (x *Zone) String() string

type ZoneMergeNotification

type ZoneMergeNotification struct {
	TakeoverNodeId string `protobuf:"bytes,1,opt,name=takeover_node_id,json=takeoverNodeId,proto3" json:"takeover_node_id,omitempty"`
	OldZone        *Zone  `protobuf:"bytes,2,opt,name=old_zone,json=oldZone,proto3" json:"old_zone,omitempty"`
	NewZone        *Zone  `protobuf:"bytes,3,opt,name=new_zone,json=newZone,proto3" json:"new_zone,omitempty"`
	LeavingNodeId  string `protobuf:"bytes,4,opt,name=leaving_node_id,json=leavingNodeId,proto3" json:"leaving_node_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ZoneMergeNotification) Descriptor deprecated

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

Deprecated: Use ZoneMergeNotification.ProtoReflect.Descriptor instead.

func (*ZoneMergeNotification) GetLeavingNodeId

func (x *ZoneMergeNotification) GetLeavingNodeId() string

func (*ZoneMergeNotification) GetNewZone

func (x *ZoneMergeNotification) GetNewZone() *Zone

func (*ZoneMergeNotification) GetOldZone

func (x *ZoneMergeNotification) GetOldZone() *Zone

func (*ZoneMergeNotification) GetTakeoverNodeId

func (x *ZoneMergeNotification) GetTakeoverNodeId() string

func (*ZoneMergeNotification) ProtoMessage

func (*ZoneMergeNotification) ProtoMessage()

func (*ZoneMergeNotification) ProtoReflect

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

func (*ZoneMergeNotification) Reset

func (x *ZoneMergeNotification) Reset()

func (*ZoneMergeNotification) String

func (x *ZoneMergeNotification) String() string

type ZoneMergeResponse

type ZoneMergeResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*ZoneMergeResponse) Descriptor deprecated

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

Deprecated: Use ZoneMergeResponse.ProtoReflect.Descriptor instead.

func (*ZoneMergeResponse) GetSuccess

func (x *ZoneMergeResponse) GetSuccess() bool

func (*ZoneMergeResponse) ProtoMessage

func (*ZoneMergeResponse) ProtoMessage()

func (*ZoneMergeResponse) ProtoReflect

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

func (*ZoneMergeResponse) Reset

func (x *ZoneMergeResponse) Reset()

func (*ZoneMergeResponse) String

func (x *ZoneMergeResponse) String() string

Jump to

Keyboard shortcuts

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