client

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 7 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 a given key path into options and returns it.

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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