rpc

package
v0.0.0-...-269d6e4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientOpts

func GetClientOpts(target string) (opts []grpc.DialOption)

GetClientOpts dial options for target.

func StopServer

func StopServer(s *grpc.Server)

StopServer attempts to gracefully stop the server without permanently blocking.

Types

type Credentials

type Credentials struct {
	Secure bool
}

Credentials implements PerRPCCredentials, allowing context values to be included in request metadata.

func (Credentials) GetRequestMetadata

func (c Credentials) GetRequestMetadata(_ context.Context, _ ...string) (map[string]string, error)

GetRequestMetadata gets the current request metadata.

func (Credentials) RequireTransportSecurity

func (c Credentials) RequireTransportSecurity() bool

RequireTransportSecurity indicates whether the credentials requires transport security.

Jump to

Keyboard shortcuts

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