postgres

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: AGPL-3.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AuthReq byte = 0x52

all of the following messages start with R (0x52) AuthenticationOk AuthenticationKerberosV5 AuthenticationCleartextPassword AuthenticationMD5Password AuthenticationSCMCredential AuthenticationGSS AuthenticationSSPI AuthenticationGSSContinue AuthenticationSASL AuthenticationSASLContinue AuthenticationSASLFinal NegotiateProtocolVersion

View Source
const ErrorResponse byte = 0x45

https://www.postgresql.org/docs/current/protocol-flow.html the following three values are the only three valid responses from a server for the first byte

View Source
const NegotiateProtocolVersion = 0x76
View Source
const POSTGRES = "postgres"

Variables

This section is empty.

Functions

This section is empty.

Types

type POSTGRESPlugin

type POSTGRESPlugin struct{}

func (*POSTGRESPlugin) Name

func (p *POSTGRESPlugin) Name() string

func (*POSTGRESPlugin) PortPriority

func (p *POSTGRESPlugin) PortPriority(port uint16) bool

func (*POSTGRESPlugin) Priority

func (p *POSTGRESPlugin) Priority() int

func (*POSTGRESPlugin) Run

func (p *POSTGRESPlugin) Run(conn net.Conn, timeout time.Duration, target plugins.Target) (*plugins.Service, error)

func (*POSTGRESPlugin) Type

func (p *POSTGRESPlugin) Type() plugins.Protocol

Jump to

Keyboard shortcuts

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