Documentation ¶
Index ¶
- type Client
- func (c *Client) Apply(requests map[ids.ID]*atomic.Requests, batch ...database.Batch) error
- func (c *Client) Get(peerChainID ids.ID, keys [][]byte) ([][]byte, error)
- func (c *Client) Indexed(peerChainID ids.ID, traits [][]byte, startTrait, startKey []byte, limit int) ([][]byte, []byte, []byte, error)
- type Server
- func (s *Server) Apply(_ context.Context, req *gsharedmemoryproto.ApplyRequest) (*gsharedmemoryproto.ApplyResponse, error)
- func (s *Server) Get(_ context.Context, req *gsharedmemoryproto.GetRequest) (*gsharedmemoryproto.GetResponse, error)
- func (s *Server) Indexed(_ context.Context, req *gsharedmemoryproto.IndexedRequest) (*gsharedmemoryproto.IndexedResponse, error)
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
type Server ¶
type Server struct { // 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
func (*Server) Apply ¶
func (s *Server) Apply( _ context.Context, req *gsharedmemoryproto.ApplyRequest, ) (*gsharedmemoryproto.ApplyResponse, error)
func (*Server) Get ¶
func (s *Server) Get( _ context.Context, req *gsharedmemoryproto.GetRequest, ) (*gsharedmemoryproto.GetResponse, error)
func (*Server) Indexed ¶
func (s *Server) Indexed( _ context.Context, req *gsharedmemoryproto.IndexedRequest, ) (*gsharedmemoryproto.IndexedResponse, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.