client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectMethod

type ConnectMethod string
const (
	GRPCMethod ConnectMethod = "grpc"
	// HTTPMethod TODO  implement http method
	HTTPMethod ConnectMethod = "http"
)

func (ConnectMethod) Validate

func (m ConnectMethod) Validate() error

type Options

type Options struct {
	pkgutils.ConnectInfo `mapstructure:",squash"`
	pkgutils.AuthInfo    `mapstructure:",squash"`
	// whether use tls
	Insecure bool `json:"insecure,omitempty" mapstructure:"insecure,omitempty"`
	// connect method, grpc or http
	Method ConnectMethod `json:"method,omitempty" mapstructure:"method,omitempty"`
	// timeout seconds
	Timeout int `json:"timeout,omitempty" mapstructure:"timeout,omitempty"`
}

func (Options) Validate

func (o Options) Validate() error

Jump to

Keyboard shortcuts

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