gorpctabletconn

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialTablet

func DialTablet(context interface{}, endPoint topo.EndPoint, keyspace, shard string, timeout time.Duration) (tabletconn.TabletConn, error)

Types

type TabletBson

type TabletBson struct {
	// contains filtered or unexported fields
}

TabletBson implements a bson rpcplus implementation for TabletConn

func (*TabletBson) Begin

func (conn *TabletBson) Begin(context interface{}) (transactionId int64, err error)

func (*TabletBson) Close

func (conn *TabletBson) Close()

func (*TabletBson) Commit

func (conn *TabletBson) Commit(context interface{}, transactionId int64) error

func (*TabletBson) EndPoint

func (conn *TabletBson) EndPoint() topo.EndPoint

func (*TabletBson) Execute

func (conn *TabletBson) Execute(context interface{}, query string, bindVars map[string]interface{}, transactionId int64) (*mproto.QueryResult, error)

func (*TabletBson) ExecuteBatch

func (conn *TabletBson) ExecuteBatch(context interface{}, queries []tproto.BoundQuery, transactionId int64) (*tproto.QueryResultList, error)

func (*TabletBson) Rollback

func (conn *TabletBson) Rollback(context interface{}, transactionId int64) error

func (*TabletBson) StreamExecute

func (conn *TabletBson) StreamExecute(context interface{}, query string, bindVars map[string]interface{}, transactionId int64) (<-chan *mproto.QueryResult, tabletconn.ErrFunc)

Jump to

Keyboard shortcuts

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