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

encoder

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PathCache

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

PathCache builds a mutual path aliasing scheme with a client.

func NewPathCache

func NewPathCache(size int) *PathCache

NewPathCache builds a path cache.

func (*PathCache) Put

func (p *PathCache) Put(ctx *resolver.Context) (added bool, id uint32)

Put adds or renews a resolver context alias ID.

type ResultEncoder

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

ResultEncoder manages the stream of RGLValue messages for a result tree.

func NewResultEncoder

func NewResultEncoder(cacheSize int) *ResultEncoder

NewResultEncoder builds a result encoder.

func (*ResultEncoder) Run

func (r *ResultEncoder) Run(ctx context.Context, outputChan chan<- []byte)

Run starts the ResultEncoder.

func (*ResultEncoder) WriteValue

func (r *ResultEncoder) WriteValue(ctx context.Context, value *resolver.Value)

WriteValue writes a resolver value to the encoder.

Jump to

Keyboard shortcuts

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