package bttest
import "github.com/docker/distribution/Godeps/_workspace/src/google.golang.org/cloud/bigtable/bttest"
Package bttest contains test helpers for working with the bigtable package.
To use a Server, create it, and then connect to it with no security: (The project/zone/cluster values are ignored.)
srv, err := bttest.NewServer() ... conn, err := grpc.Dial(srv.Addr, grpc.WithInsecure()) ... client, err := bigtable.NewClient(ctx, proj, zone, cluster, bigtable.WithBaseGRPC(conn)) ...
Index ¶
Types ¶
type Server ¶
type Server struct { Addr string // contains filtered or unexported fields }
Server is an in-memory Cloud Bigtable fake. It is unauthenticated, and only a rough approximation.
func NewServer ¶
NewServer creates a new Server. The Server will be listening for gRPC connections at the address named by the Addr field, without TLS.
func (*Server) Close ¶
func (s *Server) Close()
Close shuts down the server.
Source Files ¶
- Version
- v2.3.0-rc.1+incompatible
- Published
- Jan 21, 2016
- Platform
- linux/amd64
- Imports
- 17 packages
- Last checked
- 21 minutes ago –
Tools for package owners.