Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxBatchSize uint32 = 8110
MaxBatchSize is the maximum size of a batch, in bytes 8192 minus some margin for boxing
Functions ¶
This section is empty.
Types ¶
type QueryExecution ¶
type QueryExecution interface { // QueryId returns the ID of the query. QueryId() uint32 // Output returns the output channel. Output() <-chan []byte // CacheSize returns the cache size used. CacheSize() uint32 // CacheStrategy returns the cache type used. CacheStrategy() proto.RGQLValueInit_CacheStrategy }
QueryExecution represents a running result tree.
type ResultTreeMultiplexer ¶
type ResultTreeMultiplexer struct {
// contains filtered or unexported fields
}
ResultMultiplexer manages multiple result trees and merges them into one connection
func NewResultTreeMultiplexer ¶
func NewResultTreeMultiplexer(ctx context.Context, output chan<- *proto.RGQLServerMessage) *ResultTreeMultiplexer
NewResultTreeMultiplexer builds and starts a result tree multiplexer.
func (*ResultTreeMultiplexer) AddExecution ¶
func (r *ResultTreeMultiplexer) AddExecution(exec QueryExecution)
AddExecution assigns a query execution an ID and starts monitoring it until it is canceled.
Click to show internal directories.
Click to hide internal directories.