Documentation ¶
Overview ¶
Package inmemory provides a in-memory implementation of graphstore.Service.
Index ¶
- type GraphStore
- func (*GraphStore) Close(ctx context.Context) error
- func (s *GraphStore) Read(ctx context.Context, req *spb.ReadRequest, f graphstore.EntryFunc) error
- func (s *GraphStore) Scan(ctx context.Context, req *spb.ScanRequest, f graphstore.EntryFunc) error
- func (s *GraphStore) Write(ctx context.Context, req *spb.WriteRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphStore ¶ added in v0.0.25
type GraphStore struct {
// contains filtered or unexported fields
}
GraphStore implements the graphstore.Service interface. A zero of this type is ready for use, and is safe for access by concurrent goroutines.
func (*GraphStore) Close ¶ added in v0.0.25
func (*GraphStore) Close(ctx context.Context) error
Close implements io.Closer. It never returns an error.
func (*GraphStore) Read ¶ added in v0.0.25
func (s *GraphStore) Read(ctx context.Context, req *spb.ReadRequest, f graphstore.EntryFunc) error
Read implements part of the graphstore.Service interface.
func (*GraphStore) Scan ¶ added in v0.0.25
func (s *GraphStore) Scan(ctx context.Context, req *spb.ScanRequest, f graphstore.EntryFunc) error
Scan implements part of the graphstore.Service interface.
func (*GraphStore) Write ¶ added in v0.0.25
func (s *GraphStore) Write(ctx context.Context, req *spb.WriteRequest) error
Write implements part of the graphstore.Service interface.
Click to show internal directories.
Click to hide internal directories.