client

package
v0.3.49 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeProdvanaConnection

func MakeProdvanaConnection(options ConnectionOptions) (*grpc.ClientConn, error)

Types

type ConnectionOptions

type ConnectionOptions struct {
	Address          string        // Prodvana server address
	AuthToken        string        // Prodvana api token
	GetAuthToken     func() string // same as AuthToken, but for tokens that may change/need to be computed
	AuthTokenPtr     *string       // save as AuthToken but passes a pointer, for tokens that need to be updated in process
	SkipTls          bool          // exposed for testing purposes only
	NoAuth           bool          // exposed for internal purposes only
	ExtraDialOptions []grpc.DialOption
}

func DefaultConnectionOptions

func DefaultConnectionOptions() ConnectionOptions

Jump to

Keyboard shortcuts

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