Documentation ¶
Overview ¶
protocols is the metapackage for the RPC protocols for how Torus' storage layer communicates with other storage servers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRPCDialer ¶
func RegisterRPCDialer(scheme string, newFunc RPCDialerFunc)
func RegisterRPCListener ¶
func RegisterRPCListener(scheme string, newFunc RPCListenerFunc)
Types ¶
type RPC ¶
type RPC interface { PutBlock(ctx context.Context, ref torus.BlockRef, data []byte) error Block(ctx context.Context, ref torus.BlockRef) ([]byte, error) RebalanceCheck(ctx context.Context, refs []torus.BlockRef) ([]bool, error) Close() error // This is a little bit of a hack to avoid more allocations. WriteBuf(ctx context.Context, ref torus.BlockRef) ([]byte, error) }
type RPCDialerFunc ¶
type RPCListenerFunc ¶
Click to show internal directories.
Click to hide internal directories.