Documentation
¶
Index ¶
- func BuildJDBC(user, password, connStr string, options map[string]string) string
- func BuildUrl(server string, port int, service, user, password string, ...) string
- func CalculateKeysHash(verifierType int, key1 []byte, key2 []byte) ([]byte, error)
- func EncryptPassword(password string, key []byte) (string, error)
- func EncryptSessionKey(padding bool, encKey []byte, sessionKey []byte) (string, error)
- func NewWallet(filePath string) (*wallet, error)
- func PKCS5Padding(cipherText []byte, blockSize int) []byte
- func SetNTSAuth(newNTSManager advanced_nego.NTSAuthInterface)
- func TZBytes() []byte
- type AuthObject
- type AuthType
- type Connection
- func (conn *Connection) Begin() (driver.Tx, error)
- func (conn *Connection) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error)
- func (conn *Connection) Close() (err error)
- func (conn *Connection) GetNLS() (*NLSData, error)
- func (conn *Connection) Open() error
- func (conn *Connection) OpenWithContext(ctx context.Context) error
- func (conn *Connection) Ping(ctx context.Context) error
- func (conn *Connection) Prepare(query string) (driver.Stmt, error)
- func (conn *Connection) SetStringConverter(converter converters.IStringConverter)
- type ConnectionState
- type ConnectionString
- type DBAPrivilege
- type DBVersion
- type DataSet
- func (dataSet *DataSet) Close() error
- func (dataSet DataSet) ColumnTypeDatabaseTypeName(index int) string
- func (dataSet DataSet) ColumnTypeLength(index int) (length int64, ok bool)
- func (dataSet DataSet) ColumnTypeNullable(index int) (nullable, ok bool)
- func (dataSet *DataSet) Columns() []string
- func (dataSet *DataSet) Next(dest []driver.Value) error
- func (dataSet DataSet) Trace(t trace.Tracer)
- type DataTypeNego
- type Lob
- type LogonMode
- type NLSData
- type OracleConnector
- type OracleDriver
- type OracleType
- type ParameterDirection
- type ParameterInfo
- type ParameterType
- type PromotableTransaction
- type QueryResult
- type RefCursor
- type Row
- type Stmt
- func (stmt *Stmt) AddParam(name string, val driver.Value, size int, direction ParameterDirection)
- func (stmt *Stmt) AddRefCursorParam(_ string)
- func (stmt *Stmt) Close() error
- func (stmt *Stmt) Exec(args []driver.Value) (driver.Result, error)
- func (stmt *Stmt) NewParam(name string, val driver.Value, size int, direction ParameterDirection) *ParameterInfo
- func (stmt *Stmt) NumInput() int
- func (stmt *Stmt) Query(args []driver.Value) (driver.Rows, error)
- type StmtInterface
- type StmtType
- type TCPNego
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildJDBC ¶ added in v1.3.0
BuildJDBC create url from user, password and JDBC description string
func BuildUrl ¶ added in v1.3.0
func BuildUrl(server string, port int, service, user, password string, options map[string]string) string
BuildUrl create databaseURL from server, port, service, user, password, urlOptions this function help build a will formed databaseURL and accept any character as it convert special charters to corresponding values in URL
func CalculateKeysHash ¶
func EncryptSessionKey ¶
func PKCS5Padding ¶
func SetNTSAuth ¶ added in v1.3.0
func SetNTSAuth(newNTSManager advanced_nego.NTSAuthInterface)
Types ¶
type AuthObject ¶
type AuthObject struct { EServerSessKey string EClientSessKey string EPassword string ServerSessKey []byte ClientSessKey []byte KeyHash []byte Salt string VerifierType int // contains filtered or unexported fields }
E infront of the variable means encrypted
func NewAuthObject ¶
func (*AuthObject) VerifyResponse ¶
func (obj *AuthObject) VerifyResponse(response string) bool
func (*AuthObject) Write ¶
func (obj *AuthObject) Write(connOption *network.ConnectionOption, mode LogonMode, session *network.Session) error
type Connection ¶
type Connection struct { State ConnectionState LogonMode LogonMode SessionProperties map[string]string NLSData NLSData // contains filtered or unexported fields }
func NewConnection ¶
func NewConnection(databaseUrl string) (*Connection, error)
func (*Connection) Close ¶
func (conn *Connection) Close() (err error)
func (*Connection) GetNLS ¶
func (conn *Connection) GetNLS() (*NLSData, error)
func (*Connection) Open ¶
func (conn *Connection) Open() error
func (*Connection) OpenWithContext ¶ added in v1.3.0
func (conn *Connection) OpenWithContext(ctx context.Context) error
func (*Connection) SetStringConverter ¶ added in v1.3.0
func (conn *Connection) SetStringConverter(converter converters.IStringConverter)
type ConnectionState ¶
type ConnectionState int
const ( Closed ConnectionState = 0 Opened ConnectionState = 1 )
type ConnectionString ¶
type DBAPrivilege ¶
type DBAPrivilege int
const ( NONE DBAPrivilege = 0 SYSDBA DBAPrivilege = 0x20 SYSOPER DBAPrivilege = 0x40 )
func DBAPrivilegeFromString ¶
func DBAPrivilegeFromString(s string) DBAPrivilege
type DBVersion ¶
type DataSet ¶
type DataSet struct { ColumnCount int RowCount int UACBufferLength int MaxRowSize int Cols []ParameterInfo Rows []Row // contains filtered or unexported fields }
func (DataSet) ColumnTypeDatabaseTypeName ¶
func (DataSet) ColumnTypeLength ¶
func (DataSet) ColumnTypeNullable ¶
type DataTypeNego ¶
type OracleConnector ¶ added in v1.3.0
type OracleConnector struct {
// contains filtered or unexported fields
}
func (*OracleConnector) Driver ¶ added in v1.3.0
func (connector *OracleConnector) Driver() driver.Driver
type OracleDriver ¶ added in v1.3.0
type OracleDriver struct { }
func (*OracleDriver) Open ¶ added in v1.3.0
func (drv *OracleDriver) Open(name string) (driver.Conn, error)
func (*OracleDriver) OpenConnector ¶ added in v1.3.0
func (drv *OracleDriver) OpenConnector(name string) (driver.Connector, error)
type OracleType ¶
type OracleType int
const ( NCHAR OracleType = 1 NUMBER OracleType = 2 SB1 OracleType = 3 SB2 OracleType = 3 SB4 OracleType = 3 FLOAT OracleType = 4 NullStr OracleType = 5 VarNum OracleType = 6 LONG OracleType = 8 VARCHAR OracleType = 9 ROWID OracleType = 11 DATE OracleType = 12 VarRaw OracleType = 15 BFloat OracleType = 21 BDouble OracleType = 22 RAW OracleType = 23 LongRaw OracleType = 24 UINT OracleType = 68 LongVarChar OracleType = 94 LongVarRaw OracleType = 95 CHAR OracleType = 96 CHARZ OracleType = 97 IBFloat OracleType = 100 IBDouble OracleType = 101 REFCURSOR OracleType = 102 NOT OracleType = 108 XMLType OracleType = 108 OCIRef OracleType = 110 OCIClobLocator OracleType = 112 OCIBlobLocator OracleType = 113 OCIFileLocator OracleType = 114 ResultSet OracleType = 116 OCIString OracleType = 155 OCIDate OracleType = 156 TimeStampDTY OracleType = 180 TimeStampTZ_DTY OracleType = 181 IntervalYM_DTY OracleType = 182 IntervalDS_DTY OracleType = 183 TimeTZ OracleType = 186 TimeStamp OracleType = 187 TimeStampTZ OracleType = 188 IntervalYM OracleType = 189 IntervalDS OracleType = 190 UROWID OracleType = 208 TimeStampLTZ_DTY OracleType = 231 TimeStampeLTZ OracleType = 232 )
func (OracleType) String ¶
func (i OracleType) String() string
type ParameterDirection ¶
type ParameterDirection int
const ( Input ParameterDirection = 1 Output ParameterDirection = 2 InOut ParameterDirection = 3 RetVal ParameterDirection = 9 )
type ParameterInfo ¶
type ParameterInfo struct { Name string Direction ParameterDirection IsNull bool AllowNull bool ColAlias string DataType OracleType IsXmlType bool Flag uint8 Precision uint8 Scale uint8 MaxLen int MaxCharLen int MaxNoOfArrayElements int ContFlag int ToID []byte Version int CharsetID int CharsetForm int BValue []byte Value driver.Value // contains filtered or unexported fields }
type ParameterType ¶
type ParameterType int
const ( Number ParameterType = 1 String ParameterType = 2 )
type PromotableTransaction ¶
type PromotableTransaction int
type QueryResult ¶
type QueryResult struct {
// contains filtered or unexported fields
}
func (*QueryResult) LastInsertId ¶
func (rs *QueryResult) LastInsertId() (int64, error)
func (*QueryResult) RowsAffected ¶
func (rs *QueryResult) RowsAffected() (int64, error)
type Stmt ¶
type Stmt struct {
// contains filtered or unexported fields
}
func NewStmt ¶
func NewStmt(text string, conn *Connection) *Stmt
func (*Stmt) AddRefCursorParam ¶
func (*Stmt) NewParam ¶
func (stmt *Stmt) NewParam(name string, val driver.Value, size int, direction ParameterDirection) *ParameterInfo
type StmtInterface ¶
type StmtInterface interface {
// contains filtered or unexported methods
}
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func (*Transaction) Commit ¶
func (tx *Transaction) Commit() error
func (*Transaction) Rollback ¶
func (tx *Transaction) Rollback() error
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
ntlmssp
Package ntlmssp provides NTLM/Negotiate authentication over HTTP
|
Package ntlmssp provides NTLM/Negotiate authentication over HTTP |
generatefloat
command
|
|
examples
|
|
UDT
command
|
|
arrays
command
|
|
bfile
command
|
|
bulk_insert
command
|
|
clob
command
|
|
context
command
|
|
crud
command
|
|
exec
command
|
|
hello_ora
command
|
|
hello_ora_wallet
command
|
|
hello_sql
command
|
|
insert_return
command
|
|
oracle_9_auth
command
|
|
output_pars
command
|
|
query
command
|
|
query_to_struct
command
|
|
refcursor
command
|
|
stored_proc
command
|
|
udt_pars
command
|
|
urloptions
command
|
|
using_with
command
|
|
windows_os_auth
command
|
|
security/md4
Package md4 implements the MD4 hash algorithm as defined in RFC 1320.
|
Package md4 implements the MD4 hash algorithm as defined in RFC 1320. |
Click to show internal directories.
Click to hide internal directories.