Documentation ¶
Index ¶
Constants ¶
const (
// Flag for BatchQuery. Values will have its names.
WithNamesForValues = 0x40
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthResponse ¶
AuthResponse currently only supports login and password authentication, so it stores them instead of token for convenience. Spec: https://github.com/apache/cassandra/blob/adcff3f630c0d07d1ba33bf23fcb11a6db1b9af1/doc/native_protocol_v4.spec#L311
func (*AuthResponse) OpCode ¶
func (*AuthResponse) OpCode() frame.OpCode
func (*AuthResponse) WriteTo ¶
func (a *AuthResponse) WriteTo(b *frame.Buffer)
type Batch ¶
type Batch struct { Type frame.BatchTypeFlag Flags frame.QueryFlags Queries []BatchQuery Consistency frame.Consistency SerialConsistency frame.Consistency Timestamp frame.Long }
type BatchQuery ¶
type BatchQuery struct { Kind frame.BatchQueryKind Query string Prepared frame.Bytes Names frame.StringList Values []frame.Value }
BatchQuery spec: https://github.com/apache/cassandra/blob/adcff3f630c0d07d1ba33bf23fcb11a6db1b9af1/doc/native_protocol_v4.spec#L452
type Execute ¶
type Execute struct { ID frame.Bytes Consistency frame.Consistency Options frame.QueryOptions }
Execute spec: https://github.com/apache/cassandra/blob/adcff3f630c0d07d1ba33bf23fcb11a6db1b9af1/doc/native_protocol_v4.spec#L403
type Options ¶
type Options struct{}
Options spec: https://github.com/apache/cassandra/blob/adcff3f630c0d07d1ba33bf23fcb11a6db1b9af1/doc/native_protocol_v4.spec#L330
type Prepare ¶
type Prepare struct {
Query string
}
Prepare spec: https://github.com/apache/cassandra/blob/adcff3f630c0d07d1ba33bf23fcb11a6db1b9af1/doc/native_protocol_v4.spec#L394
type Query ¶
type Query struct { Query string Consistency frame.Consistency Options frame.QueryOptions }
type Register ¶
Register spec: https://github.com/apache/cassandra/blob/adcff3f630c0d07d1ba33bf23fcb11a6db1b9af1/doc/native_protocol_v4.spec#L477
type Startup ¶
type Startup struct {
Options frame.StartupOptions
}
Startup spec: https://github.com/apache/cassandra/blob/adcff3f630c0d07d1ba33bf23fcb11a6db1b9af1/doc/native_protocol_v4.spec#L285