oramnode

package
v0.0.0-...-3a65784 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(oramNodeServerID int, bindIP string, advIP string, rpcPort int, replicaID int, raftPort int, joinAddr string, shardNodeRPCClients map[int]ReplicaRPCClientMap, redisEndpoints []config.RedisEndpoint, parameters config.Parameters)

func StartShardNodeRPCClients

func StartShardNodeRPCClients(endpoints []config.ShardNodeEndpoint) (map[int]ReplicaRPCClientMap, error)

Types

type Command

type Command struct {
	Type    CommandType
	Payload []byte
}

type CommandType

type CommandType int
const (
	ReplicateBeginEviction CommandType = iota
	ReplicateEndEviction
	ReplicateBeginReadPath
	ReplicateEndReadPath
)

type ReplicaRPCClientMap

type ReplicaRPCClientMap map[int]ShardNodeRPCClient

type ReplicateBeginEvictionPayload

type ReplicateBeginEvictionPayload struct {
	CurrentEvictionCount int
	StorageID            int
}

type ReplicateBeginReadPathPayload

type ReplicateBeginReadPathPayload struct {
	Paths     []int
	StorageID int
}

type ReplicateEndEvictionPayload

type ReplicateEndEvictionPayload struct {
	UpdatedEvictionCount int
	StorageID            int
}

type ShardNodeRPCClient

type ShardNodeRPCClient struct {
	ClientAPI shardnodepb.ShardNodeClient
	Conn      *grpc.ClientConn
}

type ShardNodeRPCClients

type ShardNodeRPCClients map[int]ReplicaRPCClientMap

Jump to

Keyboard shortcuts

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