pool

package
v0.180.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 16 Imported by: 4

Documentation

Index

Constants

View Source
const (
	ClientRequestKey = "__wg_clientRequest"
)

Variables

This section is empty.

Functions

func GetBytesBuffer

func GetBytesBuffer() *bytes.Buffer

func GetCtx

func GetCtx(r, clientRequest *http.Request, cfg Config) *resolve.Context

func PutBytesBuffer

func PutBytesBuffer(buf *bytes.Buffer)

func PutCtx

func PutCtx(ctx *resolve.Context)

Types

type Config

type Config struct {
	RenameTypeNames []resolve.RenameTypeName
}

type Pool

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

func New

func New() *Pool

func (*Pool) GetShared

func (p *Pool) GetShared(ctx context.Context, planConfig plan.Configuration, cfg Config) *Shared

func (*Pool) GetSharedFromRequest

func (p *Pool) GetSharedFromRequest(ctx context.Context, clientRequest *http.Request, planConfig plan.Configuration, cfg Config) *Shared

func (*Pool) PutShared

func (p *Pool) PutShared(shared *Shared)

type Shared

type Shared struct {
	Doc         *ast.Document
	Planner     *plan.Planner
	Parser      *astparser.Parser
	Printer     *astprinter.Printer
	Hash        hash.Hash64
	Validation  *astvalidation.OperationValidator
	Normalizer  *astnormalization.OperationNormalizer
	Postprocess postprocess.PostProcessor
	Report      *operationreport.Report
	Ctx         *resolve.Context
}

func (*Shared) Reset

func (s *Shared) Reset()

Jump to

Keyboard shortcuts

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