Documentation
¶
Index ¶
- type Client
- type Platform
- type Server
- func (Server) Attributes(attributes *attributes.Attributes) func(*config.Server)
- func (Server) EtcdClientTimeout(timeout time.Duration) func(*config.Server)
- func (Server) EtcdLeaseTimeout(timeout time.Duration) func(*config.Server)
- func (Server) GRPCOptions(options ...grpc.ServerOption) func(*config.Server)
- func (Server) PublicAddr(publicAddr string) func(*config.Server)
- func (Server) StopTimeout(timeout time.Duration) func(*config.Server)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct{}
func (Client) EtcdClientTimeout ¶ added in v1.7.0
EtcdClientTimeout sets the timeout duration for server-side etcd client operations. The default value is 5 seconds.
func (Client) GRPCOptions ¶
func (Client) GRPCOptions(options ...grpc.DialOption) func(*config.Client)
GRPCOptions adds gRPC dial options to the client.
type Platform ¶
type Platform struct{}
func (Platform) ClientOptions ¶
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.
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) EtcdClientTimeout ¶ added in v1.7.0
EtcdClientTimeout sets the timeout duration for server-side etcd client operations. The default value is 5 seconds.
func (Server) EtcdLeaseTimeout ¶ added in v1.7.0
EtcdLeaseTimeout sets the Time-To-Live (TTL) duration for the etcd lease. The default value is 5 seconds.
func (Server) GRPCOptions ¶
func (Server) GRPCOptions(options ...grpc.ServerOption) func(*config.Server)
GRPCOptions adds gRPC server options to the server.
func (Server) PublicAddr ¶
PublicAddr sets the public address for the server when it is not accessible to clients at its listening address.
func (Server) StopTimeout ¶ added in v1.7.0
StopTimeout sets the maximum duration the server will wait for a graceful stop. If the timeout is greater than zero, a graceful stop is applied; otherwise, it stops immediately. The default value is 0.