grpc

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SignalFxTokenAuth

type SignalFxTokenAuth struct {
	Token                    string
	DisableTransportSecurity bool
}

SignalFxTokenAuth is a credentials.PerRPCCredentials object that sets an auth token on each gRPC request as expected by our ingest service.

func (*SignalFxTokenAuth) GetRequestMetadata

func (a *SignalFxTokenAuth) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

GetRequestMetadata returns the metadata with the auth token

func (*SignalFxTokenAuth) RequireTransportSecurity

func (a *SignalFxTokenAuth) RequireTransportSecurity() bool

RequireTransportSecurity determines whether TLS is required or not. This will return `true` unless DisableTokenSecurity has been overridden to `true`.

Jump to

Keyboard shortcuts

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