server

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCertificateAuthenticatorTest added in v1.5.3

func RunCertificateAuthenticatorTest(t *testing.T, server *Server, testDBName string)

RunCertificateAuthenticatorTest tests the TLS session. PostgreSQL: Documentation: 16: 34.19. SSL Support https://www.postgresql.org/docs/current/libpq-ssl.html PostgreSQL: Documentation: 16: 19.9. Secure TCP/IP Connections with SSL https://www.postgresql.org/docs/current/ssl-tcp.html#SSL-CERTIFICATE-CREATION

func RunPasswordAuthenticatorTest added in v1.5.3

func RunPasswordAuthenticatorTest(t *testing.T, server *Server, testDBName string)

RunPasswordAuthenticatorTest tests the authenticators.

func RunServerCopyTest added in v1.4.0

func RunServerCopyTest(t *testing.T, server *Server, testDBName string)

RunServerCopyTest tests the COPY command.

func RunServerTests added in v1.3.0

func RunServerTests(t *testing.T, server *Server)

Types

type Server

type Server struct {
	*server.Server
	// contains filtered or unexported fields
}

Server represents a test server.

func NewServer

func NewServer() *Server

NewServer returns a test server instance.

func (*Server) LookupCredential added in v1.6.2

func (server *Server) LookupCredential(q auth.Query) (auth.Credential, bool, error)

LookupCredential looks up a credential.

func (*Server) SetCredential added in v1.6.2

func (server *Server) SetCredential(cred auth.Credential)

SetCredential sets a credential.

type ServerTestFunc added in v1.3.0

type ServerTestFunc = func(*testing.T, *Server, string)

Jump to

Keyboard shortcuts

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