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

pgmock

package
v5.7.5 Latest Latest
Warning

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

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

Documentation

Overview

Package pgmock provides the ability to mock a PostgreSQL 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 *pgproto3.Backend) error

func (*Script) Step

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

type Step

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

func AcceptUnauthenticatedConnRequestSteps

func AcceptUnauthenticatedConnRequestSteps() []Step

func ExpectAnyMessage

func ExpectAnyMessage(want pgproto3.FrontendMessage) Step

func ExpectMessage

func ExpectMessage(want pgproto3.FrontendMessage) Step

func SendMessage

func SendMessage(msg pgproto3.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