Help us shape the future of Go! Take the 2026 Go Developer Survey

handler

package
v3.10.13 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobStore

type BlobStore struct{}

func (*BlobStore) Delete

func (*BlobStore) List

func (*BlobStore) Read

func (*BlobStore) Write

func (b *BlobStore) Write(ctx context.Context, stream pb.BlobStore_WriteStream) error

type Store

type Store struct {
	// local Stores cache
	sync.RWMutex
	Stores map[string]bool
}

func (*Store) Databases

func (h *Store) Databases(ctx context.Context, req *pb.DatabasesRequest, rsp *pb.DatabasesResponse) error

Databases lists all the databases

func (*Store) Delete

func (h *Store) Delete(ctx context.Context, req *pb.DeleteRequest, rsp *pb.DeleteResponse) error

func (*Store) List

func (h *Store) List(ctx context.Context, req *pb.ListRequest, stream pb.Store_ListStream) error

List all the keys in a table

func (*Store) Read

func (h *Store) Read(ctx context.Context, req *pb.ReadRequest, rsp *pb.ReadResponse) error

Read records from the store

func (*Store) Tables

func (h *Store) Tables(ctx context.Context, req *pb.TablesRequest, rsp *pb.TablesResponse) error

Tables returns all the tables in a database

func (*Store) Write

func (h *Store) Write(ctx context.Context, req *pb.WriteRequest, rsp *pb.WriteResponse) error

Write to the store

Jump to

Keyboard shortcuts

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