syncpool

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocBuffer

type DocBuffer struct {
	SmallBuf     []byte
	DocBuf       []byte
	Arena        *fastjson.Arena
	Parser       *fastjson.Parser
	IdDataValues []driver.NamedValue
}

func (*DocBuffer) DriverValues

func (d *DocBuffer) DriverValues(id, value []byte) []driver.NamedValue

func (*DocBuffer) DriverValuesId

func (d *DocBuffer) DriverValuesId(id []byte) []driver.NamedValue

type SyncPool

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

func NewSyncPool

func NewSyncPool() *SyncPool

func (*SyncPool) GetDocBuf

func (sp *SyncPool) GetDocBuf() *DocBuffer

func (*SyncPool) ReleaseDocBuf

func (sp *SyncPool) ReleaseDocBuf(b *DocBuffer)

Jump to

Keyboard shortcuts

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