connection

package
v0.0.0-...-b04a690 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToFlagSet

func AddToFlagSet(flagSet *pflag.FlagSet) error

Types

type Flags

type Flags struct {
	Address        string   `mapstructure:"address"`
	Service        string   `mapstructure:"service"`
	Project        string   `mapstructure:"project"`
	Region         string   `mapstructure:"region"`
	Insecure       bool     `mapstructure:"insecure"`
	Token          string   `mapstructure:"token"`
	ExampleMembers []string `mapstructure:"example-members"`
}

func (*Flags) Connect

func (f *Flags) Connect(ctx context.Context) (*grpc.ClientConn, error)

Jump to

Keyboard shortcuts

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