grpcutil

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialContext

func DialContext(ctx context.Context, serverURL string, password string) (*grpc.ClientConn, error)

Types

type AuthCreds

type AuthCreds struct {
	// contains filtered or unexported fields
}

func NewAuthCreds

func NewAuthCreds(token string) *AuthCreds

func NewAuthCredsFromPassword

func NewAuthCredsFromPassword(password string) *AuthCreds

func (*AuthCreds) GetRequestMetadata

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

func (*AuthCreds) RequireTransportSecurity

func (c *AuthCreds) RequireTransportSecurity() bool

Jump to

Keyboard shortcuts

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