_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c11100
train
// Unlisten removes a channel from the Listener's channel list. Returns // ErrChannelNotOpen if the Listener is not listening on the specified channel. // Returns immediately with no error if there is no connection. Note that you // might still get notifications for this channel even after Unlisten has // returned. /...
{ "resource": "" }
c11101
train
// UnlistenAll removes all channels from the Listener's channel list. Returns // immediately with no error if there is no connection. Note that you might // still get notifications for any of the deleted channels even after // UnlistenAll has returned.
{ "resource": "" }
c11102
train
// Ping the remote server to make sure it's alive. Non-nil return value means // that there is no active connection.
{ "resource": "" }
c11103
train
// Synchronize the list of channels we want to be listening on with the server // after the connection has been established.
{ "resource": "" }
c11104
train
// caller should NOT be holding l.lock
{ "resource": "" }
c11105
train
// Close disconnects the Listener from the database and shuts it down. // Subsequent calls to its methods will return an error. Close returns an // error if the connection has already been closed.
{ "resource": "" }
c11106
train
// appendEncodedText encodes item in text format as required by COPY // and appends to buf
{ "resource": "" }
c11107
train
// Returns the cached timezone for the specified offset, creating and caching // it if necessary.
{ "resource": "" }
c11108
train
// formatTs formats t into a format postgres understands.
{ "resource": "" }
c11109
train
// FormatTimestamp formats t into Postgres' text format for timestamps.
{ "resource": "" }
c11110
train
// Parse a bytea value received from the server. Both "hex" and the legacy // "escape" format are supported.
{ "resource": "" }
c11111
train
// NewSimpleBindRequest returns a bind request
{ "resource": "" }
c11112
train
// SimpleBind performs the simple bind operation defined in the given request
{ "resource": "" }
c11113
train
// Bind performs a bind with the given username and password
{ "resource": "" }
c11114
train
// NewError creates an LDAP error with the given code and underlying error
{ "resource": "" }
c11115
train
// IsErrorWithCode returns true if the given error is an LDAP error with the given result code
{ "resource": "" }
c11116
train
// CompileFilter converts a string representation of a filter into a BER-encoded packet
{ "resource": "" }
c11117
train
// Convert from "ABC\xx\xx\xx" form to literal bytes for transport
{ "resource": "" }
c11118
train
// NewDelRequest creates a delete request for the given DN and controls
{ "resource": "" }
c11119
train
// Del executes the given delete request
{ "resource": "" }
c11120
train
// sslCertificatePermissions checks the permissions on user-supplied certificate // files. The key file should have very little access. // // libpq does not check key file permissions on Windows.
{ "resource": "" }
c11121
train
// hexify returns a colon separated, hexadecimal representation // of a given byte array.
{ "resource": "" }
c11122
train
// decodeKey returns the algorithm and key size for a public key.
{ "resource": "" }
c11123
train
// certWarnings prints a list of warnings to show common mistakes in certs.
{ "resource": "" }
c11124
train
// algWarnings checks key sizes, signature algorithms.
{ "resource": "" }
c11125
train
// ssl generates a function to upgrade a net.Conn based on the "sslmode" and // related settings. The function is nil when no upgrade should take place.
{ "resource": "" }
c11126
train
// sslClientCertificates adds the certificate specified in the "sslcert" and // "sslkey" settings, or if they aren't set, from the .postgresql directory // in the user's home directory. The configured files must exist and have // the correct permissions.
{ "resource": "" }
c11127
train
// sslCertificateAuthority adds the RootCA specified in the "sslrootcert" setting.
{ "resource": "" }
c11128
train
// sslHomeCertificates returns the path and stats of certificates in the current // user's home directory.
{ "resource": "" }
c11129
train
// sslVerifyCertificateAuthority carries out a TLS handshake to the server and // verifies the presented certificate against the CA, i.e. the one specified in // sslrootcert or the system CA if sslrootcert was not specified.
{ "resource": "" }
c11130
train
// Adds descriptions to an LDAP Response packet for debugging
{ "resource": "" }
c11131
train
// DebugBinaryFile reads and prints packets from the given filename
{ "resource": "" }
c11132
train
// readBytes reads a byte array from the reader. The encoding provides // a 4-byte prefix indicating the number of bytes which follow.
{ "resource": "" }
c11133
train
// Returns a SHA1 hash which has been pre-keyed with the specified // password according to the JCEKS algorithm.
{ "resource": "" }
c11134
train
// Parse parses the key store from the specified reader.
{ "resource": "" }
c11135
train
// GetPrivateKeyAndCerts retrieves the specified private key. Returns // nil if the private key does not exist or alias points to a non // private key entry.
{ "resource": "" }
c11136
train
// GetCert retrieves the specified certificate. Returns nil if the // certificate does not exist or alias points to a non certificate // entry.
{ "resource": "" }
c11137
train
// ListPrivateKeys lists the names of the private keys stored in the key store.
{ "resource": "" }
c11138
train
// ListCerts lists the names of the certs stored in the key store.
{ "resource": "" }
c11139
train
// LoadFromFile loads the key store from the specified file.
{ "resource": "" }
c11140
train
// LoadFromReader loads the key store from the specified file.
{ "resource": "" }
c11141
train
// Implement the "QueryerContext" interface
{ "resource": "" }
c11142
train
// Implement the "ExecerContext" interface
{ "resource": "" }
c11143
train
// Implement the "ConnBeginTx" interface
{ "resource": "" }
c11144
train
// Printf writes debug output
{ "resource": "" }
c11145
train
// EncodeTLSInfoToText returns a human readable string, suitable for certigo console output.
{ "resource": "" }
c11146
train
// EncodeTLSToObject returns a JSON-marshallable description of a TLS connection
{ "resource": "" }
c11147
train
// EncodeCRIToObject returns a JSON-marshallable representation of a CertificateRequestInfo object.
{ "resource": "" }
c11148
train
// Just a map lookup with a default
{ "resource": "" }
c11149
train
// Fill in a human readable name, extracted from the slug
{ "resource": "" }
c11150
train
// FindControl returns the first control of the given type in the list, or nil
{ "resource": "" }
c11151
train
// NewControlString returns a generic control
{ "resource": "" }
c11152
train
// readCertsFromStream takes some input and converts it to PEM blocks.
{ "resource": "" }
c11153
train
// EncodeX509ToPEM converts an X.509 certificate into a PEM block for output.
{ "resource": "" }
c11154
train
// Convert a PKCS7 envelope into a PEM block for output.
{ "resource": "" }
c11155
train
// Convert a key into one or more PEM blocks for output.
{ "resource": "" }
c11156
train
// pemScanner will return a bufio.Scanner that splits the input // from the given reader into PEM blocks.
{ "resource": "" }
c11157
train
// TransformVec2 multiplies v with mat and saves the result in v.
{ "resource": "" }
c11158
train
// Transpose transposes the matrix.
{ "resource": "" }
c11159
train
// Scale multiplies the first 3 element of the vector by f and returns vec.
{ "resource": "" }
c11160
train
// Invert inverts the vector.
{ "resource": "" }
c11161
train
// Vec3 returns a vec3.T with the first three components of the vector. // See also Vec3DividedByW
{ "resource": "" }
c11162
train
// AssignVec3 assigns v to the first three components and sets the fourth to 1.
{ "resource": "" }
c11163
train
// Dot4 returns the 4 element dot product of two vectors.
{ "resource": "" }
c11164
train
// Angle returns the angle between two vectors.
{ "resource": "" }
c11165
train
// Clamp clamps the vector's components to be in the range of min to max.
{ "resource": "" }
c11166
train
// Clamped returns a copy of the vector with the components clamped to be in the range of min to max.
{ "resource": "" }
c11167
train
// ContainsPoint returns if a point is contained within the rectangle.
{ "resource": "" }
c11168
train
// Scaled returns a copy of vec with the first 3 elements multiplies by f.
{ "resource": "" }
c11169
train
// Dot4 returns the 4 element vdot product of two vectors.
{ "resource": "" }
c11170
train
// RotateAroundPoint rotates the vector counter-clockwise around a point.
{ "resource": "" }
c11171
train
// IsLeftWinding returns if the angle from a to b is left winding.
{ "resource": "" }
c11172
train
// IsRightWinding returns if the angle from a to b is right winding.
{ "resource": "" }
c11173
train
// Normalize normalizes to a unit quaternation.
{ "resource": "" }
c11174
train
// Normalized returns a copy normalized to a unit quaternation.
{ "resource": "" }
c11175
train
// Negate negates the quaternion.
{ "resource": "" }
c11176
train
// Invert inverts the quaterion.
{ "resource": "" }
c11177
train
// RotateVec3 rotates v by the rotation represented by the quaternion.
{ "resource": "" }
c11178
train
// Dot returns the dot product of two quaternions.
{ "resource": "" }
c11179
train
// Mul multiplies two quaternions.
{ "resource": "" }
c11180
train
// Mul3 multiplies three quaternions.
{ "resource": "" }
c11181
train
// Mul4 multiplies four quaternions.
{ "resource": "" }
c11182
train
// Vec3Diff returns the rotation quaternion between two vectors.
{ "resource": "" }
c11183
train
// NewRect creates a Rect from two points.
{ "resource": "" }
c11184
train
// Area calculates the area of the rectangle.
{ "resource": "" }
c11185
train
// Joined returns the minimal rectangle containing both a and b.
{ "resource": "" }
c11186
train
// FromAxisAngle returns a quaternion representing a rotation around and axis.
{ "resource": "" }
c11187
train
// FromEulerAngles returns a quaternion representing Euler angle rotations.
{ "resource": "" }
c11188
train
// AxisAngle extracts the rotation in form of an axis and a rotation angle.
{ "resource": "" }
c11189
train
// ScaleVec2 multiplies the 2D scaling diagonal of the matrix by s.
{ "resource": "" }
c11190
train
// SetTranslation sets the 2D translation elements of the matrix.
{ "resource": "" }
c11191
train
// Translate adds v to the 2D translation part of the matrix.
{ "resource": "" }
c11192
train
// TransformVec3 multiplies v with mat and saves the result in v.
{ "resource": "" }
c11193
train
// Quaternion extracts a quaternion from the rotation part of the matrix.
{ "resource": "" }
c11194
train
// AssignQuaternion assigns a quaternion to the rotations part of the matrix and sets the other elements to their ident value.
{ "resource": "" }
c11195
train
// AssignCoordinateSystem assigns the rotation of a orthogonal coordinates system to the rotation part of the matrix and sets the remaining elements to their ident value.
{ "resource": "" }
c11196
train
// Scale multiplies all element of the vector by f and returns vec.
{ "resource": "" }
c11197
train
// Rotated returns a counter-clockwise rotated copy of the vector.
{ "resource": "" }
c11198
train
// AssignEulerRotation assigns Euler angle rotations to the rotation part of the matrix and sets the remaining elements to their ident value.
{ "resource": "" }
c11199
train
// ExtractEulerAngles extracts the rotation part of the matrix as Euler angle rotation values.
{ "resource": "" }