pgwire

package
v0.0.0-...-d9a8df2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2016 License: Apache-2.0 Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ErrSSLRequired = "cleartext connections are not permitted"

ErrSSLRequired is returned when a client attempts to connect to a secure server in cleartext.

Variables

This section is empty.

Functions

func Match

func Match(rd io.Reader) bool

Match returns true if rd appears to be a Postgres connection.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements the server side of the PostgreSQL wire protocol.

func MakeServer

func MakeServer(context *base.Context, executor *sql.Executor, reg *metric.Registry) Server

MakeServer creates a Server, adding network stats to the given Registry.

func (*Server) Registry

func (s *Server) Registry() *metric.Registry

Registry returns a registry with the metrics tracked by this server, which can be used to access its stats or be added to another registry.

func (*Server) ServeConn

func (s *Server) ServeConn(conn net.Conn) error

ServeConn serves a single connection, driving the handshake process and delegating to the appropriate connection type.

Jump to

Keyboard shortcuts

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