options

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

func (Client) GRPCOptions

func (Client) GRPCOptions(options ...grpc.DialOption) func(*config.Client)

GRPCOptions adds gRPC dial options to the client.

func (Client) MaxActiveServers

func (Client) MaxActiveServers(count int) func(*config.Client)

MaxActiveServers sets the maximum number of active servers the client will connect to. Servers exceeding this limit will not receive requests.

type Platform

type Platform struct{}

func (Platform) ClientOptions

func (Platform) ClientOptions(options ...func(*config.Client)) func(*config.Platform)

ClientOptions sets default options for all new clients. Local client options can override these global settings.

func (Platform) OpenTelemetry

func (Platform) OpenTelemetry(serviceName string, sampleRate float64, exporters ...trace.SpanExporter) func(*config.Platform)

OpenTelemetry configures OpenTelemetry tracing for clients and servers.

func (Platform) ServerOptions

func (Platform) ServerOptions(options ...func(*config.Server)) func(*config.Platform)

ServerOptions sets default options for all new servers. Local server options can override these global settings.

type Server

type Server struct{}

func (Server) Attributes

func (Server) Attributes(attributes *attributes.Attributes) func(*config.Server)

Attributes sets server attributes that are applied by the server and accessible via the Lookup method.

func (Server) GRPCOptions

func (Server) GRPCOptions(options ...grpc.ServerOption) func(*config.Server)

GRPCOptions adds gRPC server options to the server.

func (Server) PublicAddr

func (Server) PublicAddr(publicAddr string) func(*config.Server)

PublicAddr sets the public address for the server when it is not accessible to clients at its listening address.

Jump to

Keyboard shortcuts

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