gsharedmemory

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

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 an implementation of a messenger channel that talks over RPC.

func NewClient

func NewClient(client gsharedmemoryproto.SharedMemoryClient) *Client

NewClient returns a shared memory instance connected to a shared memory instance

func (*Client) Get

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

Get ...

func (*Client) Indexed

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

Indexed ...

func (*Client) Put

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

Put ...

func (*Client) Remove

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

Remove ...

type Server

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

Server is a messenger that is managed over RPC.

func NewServer

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

NewServer returns a vm instance connected to a remote vm instance

func (*Server) Get

Get ...

func (*Server) Indexed

Indexed ...

func (*Server) Put

Put ...

func (*Server) Remove

Remove ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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