client
v0.1.8
github.com/takama/grpc/pkg/client
Documentation
pkg.go.dev ↗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.