Thanks to visit codestin.com
Credit goes to pkg.go.dev

result

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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