proto

package
v0.0.0-...-9a5932e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2014 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBindVariablesBson

func DecodeBindVariablesBson(buf *bytes.Buffer, kind byte) (bindVars map[string]interface{})

func DecodeResultsBson

func DecodeResultsBson(buf *bytes.Buffer, kind byte) (results []mproto.QueryResult)

func EncodeBindVariablesBson

func EncodeBindVariablesBson(buf *bytes2.ChunkedWriter, key string, bindVars map[string]interface{})

func EncodeQueriesBson

func EncodeQueriesBson(queries []BoundQuery, key string, buf *bytes2.ChunkedWriter)

func EncodeResultsBson

func EncodeResultsBson(results []mproto.QueryResult, key string, buf *bytes2.ChunkedWriter)

Types

type BoundQuery

type BoundQuery struct {
	Sql           string
	BindVariables map[string]interface{}
}

func DecodeQueriesBson

func DecodeQueriesBson(buf *bytes.Buffer, kind byte) (queries []BoundQuery)

func (*BoundQuery) MarshalBson

func (bdq *BoundQuery) MarshalBson(buf *bytes2.ChunkedWriter, key string)

func (*BoundQuery) UnmarshalBson

func (bdq *BoundQuery) UnmarshalBson(buf *bytes.Buffer, kind byte)

type DDLInvalidate

type DDLInvalidate struct {
	DDL string
}

type DmlType

type DmlType struct {
	Table string
	Keys  []string
}

type Query

type Query struct {
	Sql           string
	BindVariables map[string]interface{}
	SessionId     int64
	TransactionId int64
}

func (*Query) MarshalBson

func (query *Query) MarshalBson(buf *bytes2.ChunkedWriter, key string)

func (*Query) String

func (query *Query) String() string

String prints a readable version of Query, and also truncates data if it's too long

func (*Query) UnmarshalBson

func (query *Query) UnmarshalBson(buf *bytes.Buffer, kind byte)

type QueryList

type QueryList struct {
	Queries       []BoundQuery
	SessionId     int64
	TransactionId int64
}

func (*QueryList) MarshalBson

func (ql *QueryList) MarshalBson(buf *bytes2.ChunkedWriter, key string)

func (*QueryList) UnmarshalBson

func (ql *QueryList) UnmarshalBson(buf *bytes.Buffer, kind byte)

type QueryResultList

type QueryResultList struct {
	List []mproto.QueryResult
}

func (*QueryResultList) MarshalBson

func (qrl *QueryResultList) MarshalBson(buf *bytes2.ChunkedWriter, key string)

func (*QueryResultList) UnmarshalBson

func (qrl *QueryResultList) UnmarshalBson(buf *bytes.Buffer, kind byte)

type Session

type Session struct {
	SessionId     int64
	TransactionId int64
}

func (*Session) MarshalBson

func (session *Session) MarshalBson(buf *bytes2.ChunkedWriter, key string)

func (*Session) UnmarshalBson

func (session *Session) UnmarshalBson(buf *bytes.Buffer, kind byte)

type SessionInfo

type SessionInfo struct {
	SessionId int64
}

type SessionParams

type SessionParams struct {
	Keyspace string
	Shard    string
}

type TransactionInfo

type TransactionInfo struct {
	TransactionId int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL