executor

package
v0.0.0-...-d4c7a2f Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientTunnel

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

ClientTunnel is an implementation of Tunnel that will return results from the cluster to the end client.

func NewClientTunnel

func NewClientTunnel(clientConn *pgproto.Backend, extendedQueryMode bool) *ClientTunnel

NewClientTunnel creates a new client to return results to a client.

func (*ClientTunnel) SendMessage

func (t *ClientTunnel) SendMessage(msg pgproto.BackendMessage) error

SendMessage will take the provided message and pass it to the client. It will only send row descriptions once, and only if the tunnel is not in extended query mode.

type Executor

type Executor interface {
	SetExtendedQueryMode(extended bool)
	Execute(plan plan.ExecutionPlan) error
}

func NewExecutor

func NewExecutor(colony core.Colony, logger timber.Logger, tunnel Tunnel) Executor

type Result

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

type Tunnel

type Tunnel interface {
	SendMessage(msg pgproto.BackendMessage) error
}

Tunnel is an interface used to receive and handle result data from the data node shard. When a query is executed, the response messages are piped into the provided tunnel.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳