client

package
v1.1.0-beta.16 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginsRoot = root + ".plugins"
)

Variables

This section is empty.

Functions

func ConfigAdd

func ConfigAdd(path string)

func NewClientConn

func NewClientConn(ctx context.Context) (*drpcconn.Conn, error)

NewClientConn returns a new grpc client connection.

func NewClientConnWithConfigPath

func NewClientConnWithConfigPath(ctx context.Context, path string) (*drpcconn.Conn, error)

NewClientConnWithConfigPath returns a new grpc client connection with options from config path.

func NewClientConnWithOptions

func NewClientConnWithOptions(ctx context.Context, options *Options) (*drpcconn.Conn, error)

NewClientConnWithOptions returns a new grpc client connection with options.

Types

type Options

type Options struct {
	Host string
	Port int
}

Options grpc client options.

func NewOptions

func NewOptions() (*Options, error)

NewOptions returns options from config file or environment vars.

func NewOptionsWithPath

func NewOptionsWithPath(path string) (opts *Options, err error)

NewOptionsWithPath unmarshals options based a given key path.

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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