pgwire

package
v0.0.0-...-6c88f67 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2016 License: Apache-2.0 Imports: 25 Imported by: ? 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

This section is empty.

Types

type Context

type Context struct {
	*base.Context
	Executor *sql.Executor
	Stopper  *stop.Stopper
}

Context holds parameters needed to setup a postgres-compatible server.

type Server

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

Server implements the server side of the PostgreSQL wire protocol.

func NewServer

func NewServer(context *Context) *Server

NewServer creates a Server.

func (*Server) Addr

func (s *Server) Addr() net.Addr

Addr returns this Server's address.

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) Start

func (s *Server) Start(addr net.Addr) error

Start a server on the given address.

Jump to

Keyboard shortcuts

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