Documentation ¶
Index ¶
- Constants
- type AuthRequest
- type AuthResponse
- type AuthSASLInitialResponse
- type AuthSASLResponse
- type BackendKeyData
- type BindCompletion
- type CloseComplete
- type Column
- type CommandCompletion
- type CopyCompletion
- type CopyData
- type CopyFail
- type CopyFormat
- type CopyInResponse
- type CopyOutResponse
- 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 AuthTypeSASL uint32 = 10 AuthTypeSASLContinue uint32 = 11 AuthSASLSCRAMSHA256 string = "SCRAM-SHA-256" AuthSASLSCRAMSHA256PLUS string = "SCRAM-SHA-256-PLUS" )
View Source
const ( CopyFormatText uint8 = 0 CopyFormatBinary uint8 = 1 )
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) GetSASLAuthData ¶ added in v1.1.1
func (ar *AuthRequest) GetSASLAuthData() []byte
func (*AuthRequest) GetSASLAuthMechanism ¶ added in v1.1.1
func (ar *AuthRequest) GetSASLAuthMechanism() string
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 AuthSASLInitialResponse ¶ added in v1.1.1
type AuthSASLInitialResponse struct {
*Data
}
func NewAuthSASLInitialResponse ¶ added in v1.1.1
func NewAuthSASLInitialResponse() *AuthSASLInitialResponse
func (*AuthSASLInitialResponse) AuthResponse ¶ added in v1.1.1
func (ar *AuthSASLInitialResponse) AuthResponse(str string)
func (*AuthSASLInitialResponse) Mechanism ¶ added in v1.1.1
func (ar *AuthSASLInitialResponse) Mechanism(str string)
type AuthSASLResponse ¶ added in v1.1.1
type AuthSASLResponse struct {
*Data
}
func NewAuthSASLResponse ¶ added in v1.1.1
func NewAuthSASLResponse() *AuthSASLResponse
func (*AuthSASLResponse) AuthResponse ¶ added in v1.1.1
func (ar *AuthSASLResponse) AuthResponse(raw []byte)
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 CopyCompletion ¶ added in v1.1.1
type CopyCompletion struct {
*Data
}
type CopyFormat ¶ added in v1.1.1
type CopyFormat uint8
type CopyInResponse ¶ added in v1.1.1
type CopyInResponse struct { *Data Format CopyFormat ColumnLength uint16 }
func (*CopyInResponse) Decode ¶ added in v1.1.1
func (cir *CopyInResponse) Decode()
type CopyOutResponse ¶ added in v1.1.1
type CopyOutResponse struct { *Data Format CopyFormat ColumnLength uint16 ColumnFormats []CopyFormat }
func (*CopyOutResponse) Decode ¶ added in v1.1.1
func (cor *CopyOutResponse) Decode()
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_auth_sasl_initial_response.go
- frame_auth_sasl_response.go
- frame_bakend_key_data.go
- frame_bind.go
- frame_command_completion.go
- frame_copy_in_response.go
- frame_copy_out_response.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.