gaussdbmock

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package gaussdbmock provides the ability to mock a GaussDB server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Script

type Script struct {
	Steps []Step
}

func (*Script) Run

func (s *Script) Run(backend *gaussdbproto.Backend) error

func (*Script) Step

func (s *Script) Step(backend *gaussdbproto.Backend) error

type Step

type Step interface {
	Step(*gaussdbproto.Backend) error
}

func AcceptUnauthenticatedConnRequestSteps

func AcceptUnauthenticatedConnRequestSteps() []Step

func ExpectAnyMessage

func ExpectAnyMessage(want gaussdbproto.FrontendMessage) Step

func ExpectMessage

func ExpectMessage(want gaussdbproto.FrontendMessage) Step

func SendMessage

func SendMessage(msg gaussdbproto.BackendMessage) Step

func WaitForClose

func WaitForClose() Step

Jump to

Keyboard shortcuts

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