api

package
v0.0.0-...-60b8695 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCA

func AddCA(pemBytes []byte) (err error)

AddCA adds the CA certificate file.

func CloseAll

func CloseAll()

CloseAll closes all remaining gRPC connections.

func Dial

func Dial(ctx context.Context, target string) (*grpc.ClientConn, error)

func GetCallOptions

func GetCallOptions() (opts []grpc.CallOption)

GetCallOptions returns the gRPC call options.

func GetDialOptions

func GetDialOptions() (opts []grpc.DialOption)

GetDialOptions gets the dial options for a gRPC connection.

func SetAuth

func SetAuth(authType, authValue string)

SetAuth sets the authentication information.

func SetDumpRequests

func SetDumpRequests(dump bool)

SetDumpRequests configures the API options to dump gRPC requests.

func SetInsecure

func SetInsecure(insecure bool)

SetInsecure configures the API to use insecure connections.

func SetLogger

func SetLogger(logger log.Interface)

SetLogger sets the default API logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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