dbms

package
v0.0.0-...-c888d9e Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2017 License: MIT Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MSSQLGetUsernameDB

func MSSQLGetUsernameDB(data []byte) (username, db []byte)

MSSQLGetUsernameDB parse packet and gets username and db name

func MSSQLReadPacket

func MSSQLReadPacket(src io.Reader) ([]byte, error)

MSSQLReadPacket handles reading mysql packets

func MySQLGetUsernameDB

func MySQLGetUsernameDB(data []byte) (username, db []byte)

MySQLGetUsernameDB parse packet and gets username and db name

func MySQLReadPacket

func MySQLReadPacket(src io.Reader) ([]byte, error)

MySQLReadPacket handles reading mysql packets

func ReadPacket

func ReadPacket(conn io.Reader) ([]byte, error)

ReadPacket all available data from socket

Types

type DB2

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

DB2 DBMS

func (*DB2) Close

func (d *DB2) Close()

Close sockets

func (*DB2) DefaultPort

func (d *DB2) DefaultPort() uint

DefaultPort of the DBMS

func (*DB2) Handler

func (d *DB2) Handler() (err error)

Handler gets incoming requests

func (*DB2) SetCertificate

func (d *DB2) SetCertificate(crt, key string) (err error)

SetCertificate to use if client asks for SSL

func (*DB2) SetReader

func (d *DB2) SetReader(f func(io.Reader) ([]byte, error))

SetReader function for sockets IO

func (*DB2) SetSockets

func (d *DB2) SetSockets(c, s net.Conn)

SetSockets for dbms (client and server sockets)

type MSSQL

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

MSSQL DBMS

func (*MSSQL) Close

func (m *MSSQL) Close()

Close sockets

func (*MSSQL) DefaultPort

func (m *MSSQL) DefaultPort() uint

DefaultPort of the DBMS

func (*MSSQL) Handler

func (m *MSSQL) Handler() error

Handler gets incoming requests

func (*MSSQL) SetCertificate

func (m *MSSQL) SetCertificate(crt, key string) (err error)

SetCertificate to use if client asks for SSL

func (*MSSQL) SetReader

func (m *MSSQL) SetReader(f func(io.Reader) ([]byte, error))

SetReader function for sockets IO

func (*MSSQL) SetSockets

func (m *MSSQL) SetSockets(c, s net.Conn)

SetSockets for dbms (client and server sockets)

type MySQL

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

MySQL DBMS

func (*MySQL) Close

func (m *MySQL) Close()

Close sockets

func (*MySQL) DefaultPort

func (m *MySQL) DefaultPort() uint

DefaultPort of the DBMS

func (*MySQL) Handler

func (m *MySQL) Handler() error

Handler gets incoming requests

func (*MySQL) SetCertificate

func (m *MySQL) SetCertificate(crt, key string) (err error)

SetCertificate to use if client asks for SSL

func (*MySQL) SetReader

func (m *MySQL) SetReader(f func(io.Reader) ([]byte, error))

SetReader function for sockets IO

func (*MySQL) SetSockets

func (m *MySQL) SetSockets(c, s net.Conn)

SetSockets for dbms (client and server sockets)

type Oracle

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

Oracle DBMS

func (*Oracle) Close

func (o *Oracle) Close()

Close sockets

func (*Oracle) DefaultPort

func (o *Oracle) DefaultPort() uint

DefaultPort of the DBMS

func (*Oracle) Handler

func (o *Oracle) Handler() error

Handler gets incoming requests

func (*Oracle) SetCertificate

func (o *Oracle) SetCertificate(crt, key string) (err error)

SetCertificate to use if client asks for SSL

func (*Oracle) SetReader

func (o *Oracle) SetReader(f func(io.Reader) ([]byte, error))

SetReader function for sockets IO

func (*Oracle) SetSockets

func (o *Oracle) SetSockets(c, s net.Conn)

SetSockets for dbms (client and server sockets)

type Postgres

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

Postgres DBMS

func (*Postgres) Close

func (p *Postgres) Close()

Close sockets

func (*Postgres) DefaultPort

func (p *Postgres) DefaultPort() uint

DefaultPort of the DBMS

func (*Postgres) Handler

func (p *Postgres) Handler() (err error)

Handler gets incoming requests

func (*Postgres) SetCertificate

func (p *Postgres) SetCertificate(crt, key string) (err error)

SetCertificate to use if client asks for SSL

func (*Postgres) SetReader

func (p *Postgres) SetReader(f func(io.Reader) ([]byte, error))

SetReader function for sockets IO

func (*Postgres) SetSockets

func (p *Postgres) SetSockets(c, s net.Conn)

SetSockets for dbms (client and server sockets)

Jump to

Keyboard shortcuts

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