grpcconfig

package
v0.2.106 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package grpcconfig defines the bounded transport contract shared by Codefly-owned gRPC clients and servers.

Index

Constants

View Source
const MaxTypedMessageBytes = 64 << 20

MaxTypedMessageBytes is the largest encoded typed request or response that Codefly transports through one unary gRPC call. Complete semantic indexes from real frameworks exceed gRPC's 4 MiB default; 64 MiB keeps that current contract usable while retaining a finite memory and abuse boundary.

Variables

This section is empty.

Functions

func TypedMessageClientDialOption

func TypedMessageClientDialOption() grpc.DialOption

TypedMessageClientDialOption applies the same envelope to every call made on a client connection.

func TypedMessageServerOptions

func TypedMessageServerOptions() []grpc.ServerOption

TypedMessageServerOptions applies the shared bounded envelope to a gRPC server. Callers append these options to their service-specific interceptors, credentials, and telemetry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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