gsharedmemory

package
v1.4.10 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: BSD-3-Clause Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is atomic.SharedMemory that talks over RPC.

func NewClient

func NewClient(client gsharedmemoryproto.SharedMemoryClient) *Client

NewClient returns shared memory connected to remote shared memory

func (*Client) Get

func (c *Client) Get(peerChainID ids.ID, keys [][]byte) ([][]byte, error)

func (*Client) Indexed

func (c *Client) Indexed(
	peerChainID ids.ID,
	traits [][]byte,
	startTrait,
	startKey []byte,
	limit int,
) (
	[][]byte,
	[]byte,
	[]byte,
	error,
)

func (*Client) Put

func (c *Client) Put(peerChainID ids.ID, elems []*atomic.Element, rawBatches ...database.Batch) error

func (*Client) Remove

func (c *Client) Remove(peerChainID ids.ID, keys [][]byte, rawBatches ...database.Batch) error

type Server

type Server struct {
	gsharedmemoryproto.UnimplementedSharedMemoryServer
	// contains filtered or unexported fields
}

Server is shared memory that is managed over RPC.

func NewServer

func NewServer(sm atomic.SharedMemory, db database.Database) *Server

NewServer returns shared memory connected to remote shared memory

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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