Versions in this module Expand all Collapse all v1 v1.4.9 Jul 5, 2021 v1.4.5 Jul 5, 2021 Changes in this version + type Client struct + func NewClient(client gsharedmemoryproto.SharedMemoryClient) *Client + 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) + func (c *Client) Put(peerChainID ids.ID, elems []*atomic.Element, rawBatches ...database.Batch) error + func (c *Client) Remove(peerChainID ids.ID, keys [][]byte, rawBatches ...database.Batch) error + type Server struct + func NewServer(sm atomic.SharedMemory, db database.Database) *Server + func (s *Server) Get(_ context.Context, req *gsharedmemoryproto.GetRequest) (*gsharedmemoryproto.GetResponse, error) + func (s *Server) Indexed(_ context.Context, req *gsharedmemoryproto.IndexedRequest) (*gsharedmemoryproto.IndexedResponse, error) + func (s *Server) Put(_ context.Context, req *gsharedmemoryproto.PutRequest) (*gsharedmemoryproto.PutResponse, error) + func (s *Server) Remove(_ context.Context, req *gsharedmemoryproto.RemoveRequest) (*gsharedmemoryproto.RemoveResponse, error)