connection

package
v0.0.0-...-294dc8c Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(ctx context.Context, address, passwordFile string, ssl bool) (proto.ManageClient, func() error, error)

Dial creates a gRPC connection to the server.

Types

type Params

type Params struct {
	Addr         *string
	PasswordFile *string
	Timeout      *time.Duration
	NoSSL        *bool
}

Params provides the parameters for the connection to the manage server.

func Unary

func Unary(cmd *cobra.Command) Params

Unary provides parameters for an unary connection like address, passwordfile, timeout and the noSSL flag to the given cobra command.

Jump to

Keyboard shortcuts

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