client

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: MIT Imports: 9 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
}

Client provides access to the service using client connection.

func New

func New(cfg *client.Config, log *zap.Logger) (*Client, error)

New gives a Client.

func (*Client) Info

func (c *Client) Info(ctx context.Context) error

Info command.

func (*Client) Ping

func (c *Client) Ping(ctx context.Context, message string, count int) error

Ping command.

func (*Client) Reverse

func (c *Client) Reverse(ctx context.Context, message string, count int) error

Reverse command.

func (*Client) Shutdown

func (c *Client) Shutdown(ctx context.Context) error

Shutdown closes active Client connections.

Jump to

Keyboard shortcuts

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