pgserver

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TxStatusIdle = 'I'

Variables

View Source
var ErrTerminate = fmt.Errorf("terminate")

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Data StartupData
	// contains filtered or unexported fields
}

func NewBackend

func NewBackend(ctx context.Context, clientConn io.ReadWriteCloser) (*Backend, error)

func (*Backend) Close

func (be *Backend) Close() error

func (*Backend) Fatal

func (be *Backend) Fatal(ctx context.Context, msg string)

func (*Backend) Fatalf

func (be *Backend) Fatalf(ctx context.Context, msg string, args ...any)

func (*Backend) Passthrough

func (be *Backend) Passthrough(ctx context.Context, frontend *pgproto3.Frontend) error

func (*Backend) SendReady

func (be *Backend) SendReady() error

type StartupData

type StartupData struct {
	User            string
	Database        string
	ProtocolVersion uint32
}

Jump to

Keyboard shortcuts

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