fake

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(lis net.Listener) (*Server, error)

New returns Server for fake spanner.

func Run

func Run() (*Server, *grpc.ClientConn, error)

func (*Server) Addr

func (s *Server) Addr() string

func (*Server) ApplyDDL

func (s *Server) ApplyDDL(ctx context.Context, databaseName string, ddl []ast.DDL) error

func (*Server) ParseAndApplyDDL

func (s *Server) ParseAndApplyDDL(ctx context.Context, databaseName string, r io.Reader) error

func (*Server) Start

func (s *Server) Start() error

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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