server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	*postgresql.Server
	Store
}

Server represents a test server.

func NewServer

func NewServer() *Server

NewServer returns a test server instance.

func NewServerWithStore

func NewServerWithStore(store Store) *Server

NewServerWithStore returns a test server instance with the specified store.

func (*Server) Authenticate

func (server *Server) Authenticate(*postgresql.Conn, *message.Startup) (message.Response, error)

Authenticate authenticates the connection with the startup message.

func (*Server) ParserError added in v1.1.0

func (*Server) ParserError(conn *postgresql.Conn, q string, err error) (message.Responses, error)

ParserError handles a parser error.

type Store

type Store interface {
	postgresql.QueryExecutor
}

Store should support only DMOExecutor methods.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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