Documentation ¶
Index ¶
- func RegisterRPCBalancerServer(s *grpc.Server, srv RPCBalancerServer)
- func RegisterRPCCapacityServer(s *grpc.Server, srv RPCCapacityServer)
- func RegisterRPCNodeServer(s *grpc.Server, srv RPCNodeServer)
- type Capacity
- func (*Capacity) Descriptor() ([]byte, []int)
- func (m *Capacity) GetCapacity() float64
- func (*Capacity) ProtoMessage()
- func (m *Capacity) Reset()
- func (m *Capacity) String() string
- func (m *Capacity) XXX_DiscardUnknown()
- func (m *Capacity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Capacity) XXX_Merge(src proto.Message)
- func (m *Capacity) XXX_Size() int
- func (m *Capacity) XXX_Unmarshal(b []byte) error
- type DataItem
- func (*DataItem) Descriptor() ([]byte, []int)
- func (m *DataItem) GetGeo() *GeoData
- func (m *DataItem) GetID() []byte
- func (m *DataItem) GetSize() uint64
- func (*DataItem) ProtoMessage()
- func (m *DataItem) Reset()
- func (m *DataItem) String() string
- func (m *DataItem) XXX_DiscardUnknown()
- func (m *DataItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataItem) XXX_Merge(src proto.Message)
- func (m *DataItem) XXX_Size() int
- func (m *DataItem) XXX_Unmarshal(b []byte) error
- type DataItems
- func (*DataItems) Descriptor() ([]byte, []int)
- func (m *DataItems) GetDIs() []*DataItem
- func (*DataItems) ProtoMessage()
- func (m *DataItems) Reset()
- func (m *DataItems) String() string
- func (m *DataItems) XXX_DiscardUnknown()
- func (m *DataItems) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataItems) XXX_Merge(src proto.Message)
- func (m *DataItems) XXX_Size() int
- func (m *DataItems) XXX_Unmarshal(b []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type GeoData
- func (*GeoData) Descriptor() ([]byte, []int)
- func (m *GeoData) GetLatitude() float64
- func (m *GeoData) GetLongitude() float64
- func (*GeoData) ProtoMessage()
- func (m *GeoData) Reset()
- func (m *GeoData) String() string
- func (m *GeoData) XXX_DiscardUnknown()
- func (m *GeoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GeoData) XXX_Merge(src proto.Message)
- func (m *GeoData) XXX_Size() int
- func (m *GeoData) XXX_Unmarshal(b []byte) error
- type HealthCheck
- func (*HealthCheck) Descriptor() ([]byte, []int)
- func (m *HealthCheck) GetDeregisterCriticalServiceAfter() string
- func (m *HealthCheck) GetTimeout() string
- func (*HealthCheck) ProtoMessage()
- func (m *HealthCheck) Reset()
- func (m *HealthCheck) String() string
- func (m *HealthCheck) XXX_DiscardUnknown()
- func (m *HealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HealthCheck) XXX_Merge(src proto.Message)
- func (m *HealthCheck) XXX_Size() int
- func (m *HealthCheck) XXX_Unmarshal(b []byte) error
- type KeyList
- func (*KeyList) Descriptor() ([]byte, []int)
- func (m *KeyList) GetKeys() *DataItems
- func (m *KeyList) GetNode() *NodeMeta
- func (*KeyList) ProtoMessage()
- func (m *KeyList) Reset()
- func (m *KeyList) String() string
- func (m *KeyList) XXX_DiscardUnknown()
- func (m *KeyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyList) XXX_Merge(src proto.Message)
- func (m *KeyList) XXX_Size() int
- func (m *KeyList) XXX_Unmarshal(b []byte) error
- type KeyReq
- func (*KeyReq) Descriptor() ([]byte, []int)
- func (m *KeyReq) GetKeys() [][]byte
- func (*KeyReq) ProtoMessage()
- func (m *KeyReq) Reset()
- func (m *KeyReq) String() string
- func (m *KeyReq) XXX_DiscardUnknown()
- func (m *KeyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyReq) XXX_Merge(src proto.Message)
- func (m *KeyReq) XXX_Size() int
- func (m *KeyReq) XXX_Unmarshal(b []byte) error
- type KeyValue
- func (*KeyValue) Descriptor() ([]byte, []int)
- func (m *KeyValue) GetFound() bool
- func (m *KeyValue) GetKey() *DataItem
- func (m *KeyValue) GetValue() []byte
- func (*KeyValue) ProtoMessage()
- func (m *KeyValue) Reset()
- func (m *KeyValue) String() string
- func (m *KeyValue) XXX_DiscardUnknown()
- func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyValue) XXX_Merge(src proto.Message)
- func (m *KeyValue) XXX_Size() int
- func (m *KeyValue) XXX_Unmarshal(b []byte) error
- type KeyValues
- func (*KeyValues) Descriptor() ([]byte, []int)
- func (m *KeyValues) GetKVs() []*KeyValue
- func (*KeyValues) ProtoMessage()
- func (m *KeyValues) Reset()
- func (m *KeyValues) String() string
- func (m *KeyValues) XXX_DiscardUnknown()
- func (m *KeyValues) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyValues) XXX_Merge(src proto.Message)
- func (m *KeyValues) XXX_Size() int
- func (m *KeyValues) XXX_Unmarshal(b []byte) error
- type MoveReq
- func (*MoveReq) Descriptor() ([]byte, []int)
- func (m *MoveReq) GetKLs() []*KeyList
- func (*MoveReq) ProtoMessage()
- func (m *MoveReq) Reset()
- func (m *MoveReq) String() string
- func (m *MoveReq) XXX_DiscardUnknown()
- func (m *MoveReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MoveReq) XXX_Merge(src proto.Message)
- func (m *MoveReq) XXX_Size() int
- func (m *MoveReq) XXX_Unmarshal(b []byte) error
- type NodeMeta
- func (*NodeMeta) Descriptor() ([]byte, []int)
- func (m *NodeMeta) GetAddress() string
- func (m *NodeMeta) GetCapacity() float64
- func (m *NodeMeta) GetCheck() *HealthCheck
- func (m *NodeMeta) GetGeo() *GeoData
- func (m *NodeMeta) GetID() string
- func (m *NodeMeta) GetPower() float64
- func (m *NodeMeta) GetRPCAddress() string
- func (*NodeMeta) ProtoMessage()
- func (m *NodeMeta) Reset()
- func (m *NodeMeta) String() string
- func (m *NodeMeta) XXX_DiscardUnknown()
- func (m *NodeMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodeMeta) XXX_Merge(src proto.Message)
- func (m *NodeMeta) XXX_Size() int
- func (m *NodeMeta) XXX_Unmarshal(b []byte) error
- type NodeMetas
- func (*NodeMetas) Descriptor() ([]byte, []int)
- func (m *NodeMetas) GetMetas() []*NodeMeta
- func (*NodeMetas) ProtoMessage()
- func (m *NodeMetas) Reset()
- func (m *NodeMetas) String() string
- func (m *NodeMetas) XXX_DiscardUnknown()
- func (m *NodeMetas) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NodeMetas) XXX_Merge(src proto.Message)
- func (m *NodeMetas) XXX_Size() int
- func (m *NodeMetas) XXX_Unmarshal(b []byte) error
- type Ping
- func (*Ping) Descriptor() ([]byte, []int)
- func (m *Ping) GetNodeID() string
- func (*Ping) ProtoMessage()
- func (m *Ping) Reset()
- func (m *Ping) String() string
- func (m *Ping) XXX_DiscardUnknown()
- func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ping) XXX_Merge(src proto.Message)
- func (m *Ping) XXX_Size() int
- func (m *Ping) XXX_Unmarshal(b []byte) error
- type RPCBalancerClient
- type RPCBalancerServer
- type RPCCapacityClient
- type RPCCapacityServer
- type RPCNodeClient
- type RPCNodeServer
- type UnimplementedRPCBalancerServer
- type UnimplementedRPCCapacityServer
- type UnimplementedRPCNodeServer
- func (*UnimplementedRPCNodeServer) RPCExplore(ctx context.Context, req *Empty) (*DataItems, error)
- func (*UnimplementedRPCNodeServer) RPCMeta(ctx context.Context, req *Empty) (*NodeMeta, error)
- func (*UnimplementedRPCNodeServer) RPCMove(ctx context.Context, req *MoveReq) (*Empty, error)
- func (*UnimplementedRPCNodeServer) RPCReceive(ctx context.Context, req *DataItems) (*KeyValues, error)
- func (*UnimplementedRPCNodeServer) RPCRemove(ctx context.Context, req *DataItems) (*DataItems, error)
- func (*UnimplementedRPCNodeServer) RPCStore(ctx context.Context, req *KeyValue) (*DataItem, error)
- func (*UnimplementedRPCNodeServer) RPCStorePairs(ctx context.Context, req *KeyValues) (*DataItems, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRPCBalancerServer ¶
func RegisterRPCBalancerServer(s *grpc.Server, srv RPCBalancerServer)
func RegisterRPCCapacityServer ¶
func RegisterRPCCapacityServer(s *grpc.Server, srv RPCCapacityServer)
func RegisterRPCNodeServer ¶
func RegisterRPCNodeServer(s *grpc.Server, srv RPCNodeServer)
Types ¶
type Capacity ¶
type Capacity struct { Capacity float64 `protobuf:"fixed64,1,opt,name=Capacity,proto3" json:"Capacity,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Capacity) Descriptor ¶
func (*Capacity) GetCapacity ¶
func (*Capacity) ProtoMessage ¶
func (*Capacity) ProtoMessage()
func (*Capacity) XXX_DiscardUnknown ¶
func (m *Capacity) XXX_DiscardUnknown()
func (*Capacity) XXX_Marshal ¶
func (*Capacity) XXX_Unmarshal ¶
type DataItem ¶
type DataItem struct { ID []byte `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Size uint64 `protobuf:"varint,2,opt,name=Size,proto3" json:"Size,omitempty"` Geo *GeoData `protobuf:"bytes,3,opt,name=Geo,proto3" json:"Geo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DataItem) Descriptor ¶
func (*DataItem) ProtoMessage ¶
func (*DataItem) ProtoMessage()
func (*DataItem) XXX_DiscardUnknown ¶
func (m *DataItem) XXX_DiscardUnknown()
func (*DataItem) XXX_Marshal ¶
func (*DataItem) XXX_Unmarshal ¶
type DataItems ¶
type DataItems struct { DIs []*DataItem `protobuf:"bytes,1,rep,name=DIs,proto3" json:"DIs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DataItems) Descriptor ¶
func (*DataItems) ProtoMessage ¶
func (*DataItems) ProtoMessage()
func (*DataItems) XXX_DiscardUnknown ¶
func (m *DataItems) XXX_DiscardUnknown()
func (*DataItems) XXX_Marshal ¶
func (*DataItems) XXX_Unmarshal ¶
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type GeoData ¶
type GeoData struct { Longitude float64 `protobuf:"fixed64,1,opt,name=Longitude,proto3" json:"Longitude,omitempty"` Latitude float64 `protobuf:"fixed64,2,opt,name=Latitude,proto3" json:"Latitude,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GeoData) Descriptor ¶
func (*GeoData) GetLatitude ¶
func (*GeoData) GetLongitude ¶
func (*GeoData) ProtoMessage ¶
func (*GeoData) ProtoMessage()
func (*GeoData) XXX_DiscardUnknown ¶
func (m *GeoData) XXX_DiscardUnknown()
func (*GeoData) XXX_Marshal ¶
func (*GeoData) XXX_Unmarshal ¶
type HealthCheck ¶
type HealthCheck struct { Timeout string `protobuf:"bytes,1,opt,name=Timeout,proto3" json:"Timeout,omitempty"` DeregisterCriticalServiceAfter string `protobuf:"bytes,2,opt,name=DeregisterCriticalServiceAfter,proto3" json:"DeregisterCriticalServiceAfter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HealthCheck) Descriptor ¶
func (*HealthCheck) Descriptor() ([]byte, []int)
func (*HealthCheck) GetDeregisterCriticalServiceAfter ¶
func (m *HealthCheck) GetDeregisterCriticalServiceAfter() string
func (*HealthCheck) GetTimeout ¶
func (m *HealthCheck) GetTimeout() string
func (*HealthCheck) ProtoMessage ¶
func (*HealthCheck) ProtoMessage()
func (*HealthCheck) Reset ¶
func (m *HealthCheck) Reset()
func (*HealthCheck) String ¶
func (m *HealthCheck) String() string
func (*HealthCheck) XXX_DiscardUnknown ¶
func (m *HealthCheck) XXX_DiscardUnknown()
func (*HealthCheck) XXX_Marshal ¶
func (m *HealthCheck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HealthCheck) XXX_Merge ¶
func (m *HealthCheck) XXX_Merge(src proto.Message)
func (*HealthCheck) XXX_Size ¶
func (m *HealthCheck) XXX_Size() int
func (*HealthCheck) XXX_Unmarshal ¶
func (m *HealthCheck) XXX_Unmarshal(b []byte) error
type KeyList ¶
type KeyList struct { Node *NodeMeta `protobuf:"bytes,1,opt,name=Node,proto3" json:"Node,omitempty"` Keys *DataItems `protobuf:"bytes,2,opt,name=Keys,proto3" json:"Keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KeyList) Descriptor ¶
func (*KeyList) ProtoMessage ¶
func (*KeyList) ProtoMessage()
func (*KeyList) XXX_DiscardUnknown ¶
func (m *KeyList) XXX_DiscardUnknown()
func (*KeyList) XXX_Marshal ¶
func (*KeyList) XXX_Unmarshal ¶
type KeyReq ¶
type KeyReq struct { Keys [][]byte `protobuf:"bytes,1,rep,name=Keys,proto3" json:"Keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KeyReq) Descriptor ¶
func (*KeyReq) ProtoMessage ¶
func (*KeyReq) ProtoMessage()
func (*KeyReq) XXX_DiscardUnknown ¶
func (m *KeyReq) XXX_DiscardUnknown()
func (*KeyReq) XXX_Marshal ¶
func (*KeyReq) XXX_Unmarshal ¶
type KeyValue ¶
type KeyValue struct { Key *DataItem `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"` Found bool `protobuf:"varint,3,opt,name=Found,proto3" json:"Found,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KeyValue) Descriptor ¶
func (*KeyValue) ProtoMessage ¶
func (*KeyValue) ProtoMessage()
func (*KeyValue) XXX_DiscardUnknown ¶
func (m *KeyValue) XXX_DiscardUnknown()
func (*KeyValue) XXX_Marshal ¶
func (*KeyValue) XXX_Unmarshal ¶
type KeyValues ¶
type KeyValues struct { KVs []*KeyValue `protobuf:"bytes,1,rep,name=KVs,proto3" json:"KVs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KeyValues) Descriptor ¶
func (*KeyValues) ProtoMessage ¶
func (*KeyValues) ProtoMessage()
func (*KeyValues) XXX_DiscardUnknown ¶
func (m *KeyValues) XXX_DiscardUnknown()
func (*KeyValues) XXX_Marshal ¶
func (*KeyValues) XXX_Unmarshal ¶
type MoveReq ¶
type MoveReq struct { KLs []*KeyList `protobuf:"bytes,1,rep,name=KLs,proto3" json:"KLs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MoveReq) Descriptor ¶
func (*MoveReq) ProtoMessage ¶
func (*MoveReq) ProtoMessage()
func (*MoveReq) XXX_DiscardUnknown ¶
func (m *MoveReq) XXX_DiscardUnknown()
func (*MoveReq) XXX_Marshal ¶
func (*MoveReq) XXX_Unmarshal ¶
type NodeMeta ¶
type NodeMeta struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Address string `protobuf:"bytes,2,opt,name=Address,proto3" json:"Address,omitempty"` RPCAddress string `protobuf:"bytes,3,opt,name=RPCAddress,proto3" json:"RPCAddress,omitempty"` Power float64 `protobuf:"fixed64,4,opt,name=Power,proto3" json:"Power,omitempty"` Capacity float64 `protobuf:"fixed64,6,opt,name=Capacity,proto3" json:"Capacity,omitempty"` Check *HealthCheck `protobuf:"bytes,7,opt,name=Check,proto3" json:"Check,omitempty"` Geo *GeoData `protobuf:"bytes,8,opt,name=Geo,proto3" json:"Geo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NodeMeta) Descriptor ¶
func (*NodeMeta) GetAddress ¶
func (*NodeMeta) GetCapacity ¶
func (*NodeMeta) GetCheck ¶
func (m *NodeMeta) GetCheck() *HealthCheck
func (*NodeMeta) GetRPCAddress ¶
func (*NodeMeta) ProtoMessage ¶
func (*NodeMeta) ProtoMessage()
func (*NodeMeta) XXX_DiscardUnknown ¶
func (m *NodeMeta) XXX_DiscardUnknown()
func (*NodeMeta) XXX_Marshal ¶
func (*NodeMeta) XXX_Unmarshal ¶
type NodeMetas ¶
type NodeMetas struct { Metas []*NodeMeta `protobuf:"bytes,1,rep,name=Metas,proto3" json:"Metas,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NodeMetas) Descriptor ¶
func (*NodeMetas) ProtoMessage ¶
func (*NodeMetas) ProtoMessage()
func (*NodeMetas) XXX_DiscardUnknown ¶
func (m *NodeMetas) XXX_DiscardUnknown()
func (*NodeMetas) XXX_Marshal ¶
func (*NodeMetas) XXX_Unmarshal ¶
type Ping ¶
type Ping struct { NodeID string `protobuf:"bytes,1,opt,name=NodeID,proto3" json:"NodeID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Ping) Descriptor ¶
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) XXX_DiscardUnknown ¶
func (m *Ping) XXX_DiscardUnknown()
func (*Ping) XXX_Unmarshal ¶
type RPCBalancerClient ¶
type RPCBalancerClient interface { RPCRegister(ctx context.Context, in *NodeMeta, opts ...grpc.CallOption) (*Empty, error) RPCHeartbeat(ctx context.Context, in *Ping, opts ...grpc.CallOption) (*Empty, error) }
RPCBalancerClient is the client API for RPCBalancer service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRPCBalancerClient ¶
func NewRPCBalancerClient(cc grpc.ClientConnInterface) RPCBalancerClient
type RPCBalancerServer ¶
type RPCBalancerServer interface { RPCRegister(context.Context, *NodeMeta) (*Empty, error) RPCHeartbeat(context.Context, *Ping) (*Empty, error) }
RPCBalancerServer is the server API for RPCBalancer service.
type RPCCapacityClient ¶
type RPCCapacityClient interface {
RPCGet(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Capacity, error)
}
RPCCapacityClient is the client API for RPCCapacity service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRPCCapacityClient ¶
func NewRPCCapacityClient(cc grpc.ClientConnInterface) RPCCapacityClient
type RPCCapacityServer ¶
RPCCapacityServer is the server API for RPCCapacity service.
type RPCNodeClient ¶
type RPCNodeClient interface { RPCStore(ctx context.Context, in *KeyValue, opts ...grpc.CallOption) (*DataItem, error) RPCStorePairs(ctx context.Context, in *KeyValues, opts ...grpc.CallOption) (*DataItems, error) RPCReceive(ctx context.Context, in *DataItems, opts ...grpc.CallOption) (*KeyValues, error) RPCRemove(ctx context.Context, in *DataItems, opts ...grpc.CallOption) (*DataItems, error) RPCExplore(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*DataItems, error) RPCMeta(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*NodeMeta, error) RPCMove(ctx context.Context, in *MoveReq, opts ...grpc.CallOption) (*Empty, error) }
RPCNodeClient is the client API for RPCNode service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRPCNodeClient ¶
func NewRPCNodeClient(cc grpc.ClientConnInterface) RPCNodeClient
type RPCNodeServer ¶
type RPCNodeServer interface { RPCStore(context.Context, *KeyValue) (*DataItem, error) RPCStorePairs(context.Context, *KeyValues) (*DataItems, error) RPCReceive(context.Context, *DataItems) (*KeyValues, error) RPCRemove(context.Context, *DataItems) (*DataItems, error) RPCExplore(context.Context, *Empty) (*DataItems, error) RPCMeta(context.Context, *Empty) (*NodeMeta, error) RPCMove(context.Context, *MoveReq) (*Empty, error) }
RPCNodeServer is the server API for RPCNode service.
type UnimplementedRPCBalancerServer ¶
type UnimplementedRPCBalancerServer struct { }
UnimplementedRPCBalancerServer can be embedded to have forward compatible implementations.
func (*UnimplementedRPCBalancerServer) RPCHeartbeat ¶
func (*UnimplementedRPCBalancerServer) RPCRegister ¶
type UnimplementedRPCCapacityServer ¶
type UnimplementedRPCCapacityServer struct { }
UnimplementedRPCCapacityServer can be embedded to have forward compatible implementations.
type UnimplementedRPCNodeServer ¶
type UnimplementedRPCNodeServer struct { }
UnimplementedRPCNodeServer can be embedded to have forward compatible implementations.