Movatterモバイル変換


[0]ホーム

URL:


experimental

package
v1.77.0Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License:Apache-2.0Imports:3Imported by:5

Details

Repository

github.com/grpc/grpc-go

Links

Documentation

Overview

Package experimental is a collection of experimental features that mighthave some rough edges to them. Housing experimental features in this packageresults in a user accessing these APIs as `experimental.Foo`, thereby makingit explicit that the feature is experimental and using them in productioncode is at their own risk.

All APIs in this package are experimental.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcBufferPooladded inv1.66.0

func BufferPool(bufferPoolmem.BufferPool)grpc.ServerOption

BufferPool returns a grpc.ServerOption that configures the server to use theprovided buffer pool for parsing incoming messages and for temporary bufferswhen marshaling outgoing messages. By default, mem.DefaultBufferPool is used,and this option only exists to provide alternative buffer pool implementationsto the server, such as more optimized size allocations etc. However, thedefault buffer pool is already tuned to account for many different use-cases.

Note: The following options will interfere with the buffer pool because theyrequire a fully materialized buffer instead of a sequence of buffers:EnableTracing, and binary logging. In such cases, materializing the bufferwill generate a lot of garbage, reducing the overall benefit from using apool.

funcWithBufferPooladded inv1.66.0

func WithBufferPool(bufferPoolmem.BufferPool)grpc.DialOption

WithBufferPool returns a grpc.DialOption that configures the use of bufferPoolfor parsing incoming messages on a grpc.ClientConn, and for temporary bufferswhen marshaling outgoing messages. By default, mem.DefaultBufferPool is used,and this option only exists to provide alternative buffer pool implementationsto the client, such as more optimized size allocations etc. However, thedefault buffer pool is already tuned to account for many different use-cases.

Note: The following options will interfere with the buffer pool because theyrequire a fully materialized buffer instead of a sequence of buffers:EnableTracing, and binary logging. In such cases, materializing the bufferwill generate a lot of garbage, reducing the overall benefit from using apool.

Types

This section is empty.

Source Files

View all Source files

Directories

PathSynopsis
Package credentials provides experimental TLS credentials.
Package credentials provides experimental TLS credentials.
internal
Package internal defines APIs for parsing SPIFFE ID.
Package internal defines APIs for parsing SPIFFE ID.
Package opentelemetry is EXPERIMENTAL and will be moved to stats/opentelemetry package in a later release.
Package opentelemetry is EXPERIMENTAL and will be moved to stats/opentelemetry package in a later release.
Package stats contains experimental metrics/stats API's.
Package stats contains experimental metrics/stats API's.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp