mocksql

package
v0.0.0-...-96ea43b Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceName

type InstanceName struct {
	Project      *projects.ProjectData
	InstanceName string
}

func (*InstanceName) String

func (n *InstanceName) String() string

type MockService

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

MockService represents a mocked sql service.

func New

func New(env *common.MockEnvironment, storage storage.Storage) *MockService

New creates a MockService.

func (*MockService) ExpectedHost

func (s *MockService) ExpectedHost() string

func (*MockService) NewHTTPMux

func (s *MockService) NewHTTPMux(ctx context.Context, conn *grpc.ClientConn) (http.Handler, error)

func (*MockService) Register

func (s *MockService) Register(grpcServer *grpc.Server)

type OperationName

type OperationName struct {
	Project       *projects.ProjectData
	OperationName string
}

func (*OperationName) String

func (n *OperationName) String() string

type UserName

type UserName struct {
	Project  *projects.ProjectData
	Instance string
	UserName string
}

func (*UserName) String

func (n *UserName) String() string

Jump to

Keyboard shortcuts

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