client

package
v0.0.0-...-e8da0a6 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(opts ClientOptions) (*Client, error)

func (*Client) RegisterCommand

func (c *Client) RegisterCommand(name string, cmdFunc interface{}) error

func (*Client) Run

func (c *Client) Run() error

type ClientOptions

type ClientOptions struct {
	TargetServer    string
	ClusterUuid     string
	BearerToken     string
	LogLevel        string
	WorkersCount    int
	FixedFetchLimit int
	Version         string
	ConnOptions     ConnOptions
}

type ConnOptions

type ConnOptions struct {
	TLS                          *tls.Config
	MaxMsgSize                   int
	EnableKeepAlive              bool
	KeepAliveTime                time.Duration
	KeepAliveTimeout             time.Duration
	KeepAlivePermitWithoutStream bool
	UserDialOptions              []grpc.DialOption
}

Jump to

Keyboard shortcuts

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