pgmock

package
v5.0.0-...-e466dda Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 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