Documentation ¶
Index ¶
- Variables
- func MapPgError(err error) (er bm.ErrorResp)
- func New(setters ...Option) *srv
- func NewMessageReader(conn net.Conn) *messageReader
- func NewSession(c net.Conn, log logger.Logger, sysDb database.DB, tlsConfig *tls.Config) *session
- func NewSessionFactory() sessionFactory
- type MessageReader
- type Option
- type Server
- type Session
- type SessionFactory
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCreateDBStatementNotSupported = errors.New("SQL statement not supported. Please use `CreateDatabase` operation instead")
View Source
var ErrDBNotExists = errors.New("selected db doesn't exists")
View Source
var ErrDBNotprovided = errors.New("database name not provided")
View Source
var ErrExpectedQueryMessage = errors.New("expected query message")
View Source
var ErrPwNotprovided = errors.New("password not provided")
View Source
var ErrSSLNotSupported = errors.New("SSL not supported")
View Source
var ErrUnknowMessageType = errors.New("found an unknown message type on the wire")
View Source
var ErrUseDBStatementNotSupported = errors.New("SQL statement not supported. Please use `UseDatabase` operation instead")
View Source
var ErrUsernameNotFound = errors.New("user not found")
View Source
var ErrUsernameNotprovided = errors.New("user name not provided")
Functions ¶
func MapPgError ¶
func NewMessageReader ¶
func NewSession ¶
func NewSessionFactory ¶
func NewSessionFactory() sessionFactory
Types ¶
type MessageReader ¶
type Option ¶
type Option func(s *srv)
func DatabaseList ¶
func DatabaseList(dbList database.DatabaseList) Option
func SessFactory ¶
func SessFactory(sf SessionFactory) Option
Source Files ¶
Click to show internal directories.
Click to hide internal directories.