client

package
v0.0.0-...-b19dd4d Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2017 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
}

func NewClient

func NewClient(addr string, opts ...ClientOption) *Client

func (*Client) Close

func (cli *Client) Close() (err error)

func (*Client) Connect

func (cli *Client) Connect() (err error)

func (*Client) Echo

func (cli *Client) Echo(ping *proto.Echo, pong *proto.Echo) (err error)

type ClientOption

type ClientOption func(*Client)

func WithAuth

func WithAuth(token string) ClientOption

Jump to

Keyboard shortcuts

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