grpc

package
v0.88.3 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUserAgent

func CreateUserAgent(applicationName, version string) string

CreateUserAgent creates a User agent string based on the provided information

func UserAgentFromContext

func UserAgentFromContext(ctx context.Context) string

UserAgentFromContext returns an user agent containing the name and version of the Tool used to call this func.

func WithUserAgent

func WithUserAgent(ctx context.Context, userAgent string) context.Context

WithUserAgent sets grpc outgoing context to have given user agent

func WithUserAgentForTest

func WithUserAgentForTest(ctx context.Context, userAgent string) context.Context

WithUserAgentForTest sets grpc incoming context to have given user agent This can be used to mimic incoming traffic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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