pgwire

package
v0.0.0-...-ac77e4e Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2015 License: Apache-2.0 Imports: 20 Imported by: 0

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