Documentation
¶
Index ¶
- type Server
- func (server *Server) Authenticate(*postgresql.Conn, *protocol.Startup) (protocol.Response, error)
- func (server *Server) Copy(conn postgresql.Conn, q query.Copy) (protocol.Responses, error)
- func (server *Server) CopyData(conn postgresql.Conn, q query.Copy, stream *postgresql.CopyStream) (protocol.Responses, error)
- func (server *Server) ParserError(conn postgresql.Conn, q string, err error) (protocol.Responses, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { postgresql.Server *store.Store }
Server represents a test server.
func (*Server) Authenticate ¶
Authenticate authenticates the connection with the startup protocol.
func (*Server) CopyData ¶ added in v1.6.0
func (server *Server) CopyData(conn postgresql.Conn, q query.Copy, stream *postgresql.CopyStream) (protocol.Responses, error)
Copy handles a COPY DATA protocol.
func (*Server) ParserError ¶ added in v1.1.0
func (server *Server) ParserError(conn postgresql.Conn, q string, err error) (protocol.Responses, error)
ParserError handles a parser error.
Click to show internal directories.
Click to hide internal directories.