Documentation
¶
Index ¶
- Constants
- type AuthRequest
- type AuthResponse
- type BackendKeyData
- type BindCompletion
- type CloseComplete
- type Column
- type CommandCompletion
- type Data
- func NewBind(stat string, args []driver.Value) *Data
- func NewCancelRequest(pid, key uint32) *Data
- func NewCloseStat(stat string) *Data
- func NewDescribe(stat string) *Data
- func NewExecute() *Data
- func NewFlush() *Data
- func NewParse(sid, query string) *Data
- func NewSSLRequest() *Data
- func NewSimpleQuery(stat string) *Data
- func NewSync() *Data
- func NewTermination() *Data
- type DataRow
- type Decoder
- type EmptyQueryResponse
- type Encoder
- type Error
- type Frame
- type NoData
- type NoticeResponse
- type Notification
- type ParameterDescription
- type ParameterStatus
- type ParseCompletion
- type ReadyForQuery
- type RowDescription
- type SSLRequest
- type Startup
- type TransactionStatus
Constants ¶
View Source
const ( AuthTypeOk uint32 = 0 AuthTypePwd uint32 = 3 AuthTypeMd5 uint32 = 5 )
View Source
const ( TransactionStatusNoReady = 'N' TransactionStatusIdle = 'I' TransactionStatusIdleInTransaction = 'T' TransactionStatusInFailedTransaction = 'E' )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRequest ¶
type AuthRequest struct {
*Data
}
func (*AuthRequest) GetMd5Salt ¶
func (ar *AuthRequest) GetMd5Salt() []byte
func (*AuthRequest) GetType ¶
func (ar *AuthRequest) GetType() uint32
type AuthResponse ¶
type AuthResponse struct {
*Data
}
func NewAuthResponse ¶
func NewAuthResponse() *AuthResponse
func (*AuthResponse) Md5Pwd ¶
func (ar *AuthResponse) Md5Pwd(user, pwd, salt string)
func (*AuthResponse) Password ¶
func (ar *AuthResponse) Password(str string)
type BackendKeyData ¶
func (*BackendKeyData) Decode ¶
func (bkd *BackendKeyData) Decode()
type BindCompletion ¶
type BindCompletion struct {
*Data
}
type CloseComplete ¶
type CloseComplete struct {
*Data
}
type CommandCompletion ¶
type CommandCompletion struct {
*Data
}
func (*CommandCompletion) Affected ¶
func (cc *CommandCompletion) Affected() (n int)
type Data ¶
type Data struct { Name byte // contains filtered or unexported fields }
func NewCancelRequest ¶
func NewCloseStat ¶
func NewDescribe ¶
func NewExecute ¶
func NewExecute() *Data
func NewSSLRequest ¶
func NewSSLRequest() *Data
func NewSimpleQuery ¶
func NewTermination ¶
func NewTermination() *Data
func (*Data) WriteUint8 ¶
type EmptyQueryResponse ¶
type EmptyQueryResponse struct {
*Data
}
type NoticeResponse ¶
type NoticeResponse struct {
Error
}
type Notification ¶
func (*Notification) Decode ¶
func (n *Notification) Decode()
type ParameterDescription ¶
func (*ParameterDescription) Decode ¶
func (pd *ParameterDescription) Decode()
type ParameterStatus ¶
func (*ParameterStatus) Decode ¶
func (ps *ParameterStatus) Decode()
type ParseCompletion ¶
type ParseCompletion struct {
*Data
}
type ReadyForQuery ¶
type ReadyForQuery struct {
*Data
}
type RowDescription ¶
func (*RowDescription) Decode ¶
func (rd *RowDescription) Decode()
type SSLRequest ¶
type SSLRequest Data
type TransactionStatus ¶
type TransactionStatus byte
Source Files
¶
- decoder.go
- encoder.go
- frame.go
- frame_auth_request.go
- frame_auth_response.go
- frame_bakend_key_data.go
- frame_bind.go
- frame_command_completion.go
- frame_date_row.go
- frame_error.go
- frame_notice_response.go
- frame_notification.go
- frame_parameter_description.go
- frame_parameter_status.go
- frame_row_description.go
- frame_startup.go
- frames.go
- ids.go
Click to show internal directories.
Click to hide internal directories.