Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

client

v0.1.8
github.com/takama/grpc/pkg/client

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

7 matches

Top ↑

Types

Client

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

Client provides access to the service using client connection.

New

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

New gives a Client.

Client.Info

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

Info command.

Client.Ping

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

Ping command.

Client.Reverse

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

Reverse command.

Client.Shutdown

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

Shutdown closes active Client connections.

Dependency graph