Documentation ¶
Index ¶
- type Store
- func (s *Store) Databases(ctx context.Context, req *pb.DatabasesRequest, rsp *pb.DatabasesResponse) error
- func (s *Store) Delete(ctx context.Context, req *pb.DeleteRequest, rsp *pb.DeleteResponse) error
- func (s *Store) List(ctx context.Context, req *pb.ListRequest, stream pb.Store_ListStream) error
- func (s *Store) Read(ctx context.Context, req *pb.ReadRequest, rsp *pb.ReadResponse) error
- func (s *Store) Tables(ctx context.Context, req *pb.TablesRequest, rsp *pb.TablesResponse) error
- func (s *Store) Write(ctx context.Context, req *pb.WriteRequest, rsp *pb.WriteResponse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct { // The default store Default store.Store // The internal store where databases and table information is kept Internal store.Store // Store initialiser New func(string, string) (store.Store, error) // Store map sync.RWMutex Stores map[string]store.Store }
func (*Store) Databases ¶
func (s *Store) Databases(ctx context.Context, req *pb.DatabasesRequest, rsp *pb.DatabasesResponse) error
func (*Store) Delete ¶
func (s *Store) Delete(ctx context.Context, req *pb.DeleteRequest, rsp *pb.DeleteResponse) error
func (*Store) List ¶
func (s *Store) List(ctx context.Context, req *pb.ListRequest, stream pb.Store_ListStream) error
func (*Store) Read ¶
func (s *Store) Read(ctx context.Context, req *pb.ReadRequest, rsp *pb.ReadResponse) error
func (*Store) Tables ¶
func (s *Store) Tables(ctx context.Context, req *pb.TablesRequest, rsp *pb.TablesResponse) error
func (*Store) Write ¶
func (s *Store) Write(ctx context.Context, req *pb.WriteRequest, rsp *pb.WriteResponse) error
Click to show internal directories.
Click to hide internal directories.