Documentation ¶
Index ¶
- func ReadAuthentication(raw []byte) interface{}
- type AuthenticationCleartextPassword
- type AuthenticationGSS
- type AuthenticationGSSContinue
- type AuthenticationKerberosV5
- type AuthenticationMD5Password
- type AuthenticationOk
- type AuthenticationSASL
- type AuthenticationSASLContinue
- type AuthenticationSASLFinal
- type AuthenticationSCMCredential
- type AuthenticationSSPI
- type BackendKeyData
- type Bind
- type BindComplete
- type CancelRequest
- type Close
- type CloseComplete
- type CommandComplete
- type CopyBothResponse
- type CopyData
- type CopyDone
- type CopyFail
- type CopyInResponse
- type CopyOutResponse
- type DataRow
- type Describe
- type EmptyQueryResponse
- type ErrorField
- type ErrorResponse
- type Execute
- type Field
- type Flush
- type FunctionCall
- type FunctionCallResponse
- type GSSResponse
- type Message
- func (b *Message) Length() int
- func (b *Message) ReadByte() (r byte)
- func (b *Message) ReadByteN(n uint32) (r []byte)
- func (b *Message) ReadString() (r string)
- func (b *Message) ReadUint16() (r uint16)
- func (b *Message) ReadUint32() (r uint32)
- func (b *Message) ReadUint8() (r uint8)
- func (b *Message) Reader() io.Reader
- func (b *Message) SetType(t byte) *Message
- func (b *Message) WriteByte(i byte)
- func (b *Message) WriteByteN(i []byte)
- func (b *Message) WriteString(i string)
- func (b *Message) WriteUint16(i uint16)
- func (b *Message) WriteUint32(i uint32)
- func (b *Message) WriteUint8(i uint8)
- func (b *Message) WriteValue(i Value)
- type NegotiateProtocolVersion
- type NoData
- type NoticeField
- type NoticeResponse
- type NotificationResponse
- type ParameterDescription
- type ParameterStatus
- type Parse
- type ParseComplete
- type PasswordMessage
- type PortalSuspended
- type Query
- type Reader
- type ReadyForQuery
- type RowDescription
- type SASLInitialResponse
- type SASLResponse
- type SSLRequest
- type StartupMessage
- type Sync
- type Terminate
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadAuthentication ¶
func ReadAuthentication(raw []byte) interface{}
Types ¶
type AuthenticationCleartextPassword ¶
type AuthenticationCleartextPassword struct {
ID uint32
}
func (*AuthenticationCleartextPassword) Reader ¶
func (m *AuthenticationCleartextPassword) Reader() io.Reader
type AuthenticationGSS ¶
type AuthenticationGSS struct {
ID uint32
}
func (*AuthenticationGSS) Reader ¶
func (m *AuthenticationGSS) Reader() io.Reader
type AuthenticationGSSContinue ¶
func (*AuthenticationGSSContinue) Reader ¶
func (m *AuthenticationGSSContinue) Reader() io.Reader
type AuthenticationKerberosV5 ¶
type AuthenticationKerberosV5 struct {
ID uint32
}
func (*AuthenticationKerberosV5) Reader ¶
func (m *AuthenticationKerberosV5) Reader() io.Reader
type AuthenticationMD5Password ¶
func (*AuthenticationMD5Password) Reader ¶
func (m *AuthenticationMD5Password) Reader() io.Reader
type AuthenticationOk ¶
type AuthenticationOk struct {
ID uint32
}
func (*AuthenticationOk) Reader ¶
func (m *AuthenticationOk) Reader() io.Reader
type AuthenticationSASL ¶
func (*AuthenticationSASL) Reader ¶
func (m *AuthenticationSASL) Reader() io.Reader
type AuthenticationSASLContinue ¶
func (*AuthenticationSASLContinue) Reader ¶
func (m *AuthenticationSASLContinue) Reader() io.Reader
type AuthenticationSASLFinal ¶
func (*AuthenticationSASLFinal) Reader ¶
func (m *AuthenticationSASLFinal) Reader() io.Reader
type AuthenticationSCMCredential ¶
type AuthenticationSCMCredential struct {
ID uint32
}
func (*AuthenticationSCMCredential) Reader ¶
func (m *AuthenticationSCMCredential) Reader() io.Reader
type AuthenticationSSPI ¶
type AuthenticationSSPI struct {
ID uint32
}
func (*AuthenticationSSPI) Reader ¶
func (m *AuthenticationSSPI) Reader() io.Reader
type BackendKeyData ¶
func ReadBackendKeyData ¶
func ReadBackendKeyData(raw []byte) *BackendKeyData
func (*BackendKeyData) Reader ¶
func (m *BackendKeyData) Reader() io.Reader
type Bind ¶
type BindComplete ¶
type BindComplete struct{}
func ReadBindComplete ¶
func ReadBindComplete(raw []byte) *BindComplete
func (*BindComplete) Reader ¶
func (m *BindComplete) Reader() io.Reader
type CancelRequest ¶
func (*CancelRequest) Reader ¶
func (m *CancelRequest) Reader() io.Reader
type CloseComplete ¶
type CloseComplete struct{}
func ReadCloseComplete ¶
func ReadCloseComplete(raw []byte) *CloseComplete
func (*CloseComplete) Reader ¶
func (m *CloseComplete) Reader() io.Reader
type CommandComplete ¶
type CommandComplete struct {
CommandTag string
}
func ReadCommandComplete ¶
func ReadCommandComplete(raw []byte) *CommandComplete
func (*CommandComplete) Reader ¶
func (m *CommandComplete) Reader() io.Reader
type CopyBothResponse ¶
func ReadCopyBothResponse ¶
func ReadCopyBothResponse(raw []byte) *CopyBothResponse
func (*CopyBothResponse) Reader ¶
func (m *CopyBothResponse) Reader() io.Reader
type CopyInResponse ¶
func ReadCopyInResponse ¶
func ReadCopyInResponse(raw []byte) *CopyInResponse
func (*CopyInResponse) Reader ¶
func (m *CopyInResponse) Reader() io.Reader
type CopyOutResponse ¶
func ReadCopyOutResponse ¶
func ReadCopyOutResponse(raw []byte) *CopyOutResponse
func (*CopyOutResponse) Reader ¶
func (m *CopyOutResponse) Reader() io.Reader
type Describe ¶
func ReadDescribe ¶
type EmptyQueryResponse ¶
type EmptyQueryResponse struct{}
func ReadEmptyQueryResponse ¶
func ReadEmptyQueryResponse(raw []byte) *EmptyQueryResponse
func (*EmptyQueryResponse) Reader ¶
func (m *EmptyQueryResponse) Reader() io.Reader
type ErrorField ¶
type ErrorResponse ¶
type ErrorResponse struct {
Fields []ErrorField
}
func ReadErrorResponse ¶
func ReadErrorResponse(raw []byte) *ErrorResponse
func (*ErrorResponse) Reader ¶
func (m *ErrorResponse) Reader() io.Reader
type Execute ¶
func ReadExecute ¶
type FunctionCall ¶
type FunctionCall struct { ID uint32 ArgumentFormatCodes []uint16 Arguments []Value ResultFormatCode uint16 }
func ReadFunctionCall ¶
func ReadFunctionCall(raw []byte) *FunctionCall
func (*FunctionCall) Reader ¶
func (m *FunctionCall) Reader() io.Reader
type FunctionCallResponse ¶
type FunctionCallResponse struct {
Value Value
}
func ReadFunctionCallResponse ¶
func ReadFunctionCallResponse(raw []byte) *FunctionCallResponse
func (*FunctionCallResponse) Reader ¶
func (m *FunctionCallResponse) Reader() io.Reader
type GSSResponse ¶
type GSSResponse struct {
Data []byte
}
func ReadGSSResponse ¶
func ReadGSSResponse(raw []byte) *GSSResponse
func (*GSSResponse) Reader ¶
func (m *GSSResponse) Reader() io.Reader
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func NewBaseFromBytes ¶
func (*Message) ReadString ¶
func (*Message) ReadUint16 ¶
func (*Message) ReadUint32 ¶
func (*Message) WriteByteN ¶
func (*Message) WriteString ¶
func (*Message) WriteUint16 ¶
func (*Message) WriteUint32 ¶
func (*Message) WriteUint8 ¶
func (*Message) WriteValue ¶
type NegotiateProtocolVersion ¶
func ReadNegotiateProtocolVersion ¶
func ReadNegotiateProtocolVersion(raw []byte) *NegotiateProtocolVersion
func (*NegotiateProtocolVersion) Reader ¶
func (m *NegotiateProtocolVersion) Reader() io.Reader
type NoticeField ¶
type NoticeResponse ¶
type NoticeResponse struct {
Fields []NoticeField
}
func ReadNoticeResponse ¶
func ReadNoticeResponse(raw []byte) *NoticeResponse
func (*NoticeResponse) Reader ¶
func (m *NoticeResponse) Reader() io.Reader
type NotificationResponse ¶
func ReadNotificationResponse ¶
func ReadNotificationResponse(raw []byte) *NotificationResponse
func (*NotificationResponse) Reader ¶
func (m *NotificationResponse) Reader() io.Reader
type ParameterDescription ¶
type ParameterDescription struct {
ParameterIDs []uint32
}
func ReadParameterDescription ¶
func ReadParameterDescription(raw []byte) *ParameterDescription
func (*ParameterDescription) Reader ¶
func (m *ParameterDescription) Reader() io.Reader
type ParameterStatus ¶
func ReadParameterStatus ¶
func ReadParameterStatus(raw []byte) *ParameterStatus
func (*ParameterStatus) Reader ¶
func (m *ParameterStatus) Reader() io.Reader
type ParseComplete ¶
type ParseComplete struct{}
func ReadParseComplete ¶
func ReadParseComplete(raw []byte) *ParseComplete
func (*ParseComplete) Reader ¶
func (m *ParseComplete) Reader() io.Reader
type PasswordMessage ¶
type PasswordMessage struct {
Password string
}
func ReadPasswordMessage ¶
func ReadPasswordMessage(raw []byte) *PasswordMessage
func (*PasswordMessage) Reader ¶
func (m *PasswordMessage) Reader() io.Reader
type PortalSuspended ¶
type PortalSuspended struct{}
func ReadPortalSuspended ¶
func ReadPortalSuspended(raw []byte) *PortalSuspended
func (*PortalSuspended) Reader ¶
func (m *PortalSuspended) Reader() io.Reader
type Reader ¶
func ReadStartupMessage ¶
type ReadyForQuery ¶
type ReadyForQuery struct {
Status byte
}
func ReadReadyForQuery ¶
func ReadReadyForQuery(raw []byte) *ReadyForQuery
func (*ReadyForQuery) Reader ¶
func (m *ReadyForQuery) Reader() io.Reader
type RowDescription ¶
type RowDescription struct {
Fields []Field
}
func ReadRowDescription ¶
func ReadRowDescription(raw []byte) *RowDescription
func (*RowDescription) Reader ¶
func (m *RowDescription) Reader() io.Reader
type SASLInitialResponse ¶
func ReadSASLInitialResponse ¶
func ReadSASLInitialResponse(raw []byte) *SASLInitialResponse
func (*SASLInitialResponse) Reader ¶
func (m *SASLInitialResponse) Reader() io.Reader
type SASLResponse ¶
type SASLResponse struct {
Data []byte
}
func ReadSASLResponse ¶
func ReadSASLResponse(raw []byte) *SASLResponse
func (*SASLResponse) Reader ¶
func (m *SASLResponse) Reader() io.Reader
type SSLRequest ¶
type SSLRequest struct {
RequestCode uint32
}
func (*SSLRequest) Reader ¶
func (m *SSLRequest) Reader() io.Reader
type StartupMessage ¶
func (*StartupMessage) Reader ¶
func (m *StartupMessage) Reader() io.Reader
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
func NewNullValue ¶
func NewNullValue() Value
func (*Value) DataLength ¶
Source Files ¶
- authentication.go
- backend_key_data.go
- bind.go
- bind_complete.go
- close.go
- close_complete.go
- command_complete.go
- copy_both_response.go
- copy_data.go
- copy_done.go
- copy_fail.go
- copy_in_response.go
- copy_out_response.go
- data_row.go
- describe.go
- empty_query_response.go
- error_response.go
- execute.go
- flush.go
- function_call.go
- function_call_response.go
- gss_response.go
- negotiate_protocol_version.go
- no_data.go
- notice_response.go
- notification_response.go
- parameter_description.go
- parameter_status.go
- parse.go
- parse_complete.go
- password_message.go
- portal_suspended.go
- query.go
- ready_for_query.go
- row_description.go
- sasl_initial_response.go
- sasl_response.go
- startup_message.go
- sync.go
- terminate.go
- util.go
Click to show internal directories.
Click to hide internal directories.