client

package
v0.0.0-...-dc1ddd1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConnConnecting = iota
	ConnReconnecting
	ConnOnline
)

Variables

This section is empty.

Functions

func LoadTLSConfig

func LoadTLSConfig(p string) *tls.Config

func LoadTLSConfigFromBytes

func LoadTLSConfigFromBytes(b []byte) *tls.Config

Types

type Client

type Client struct {
	log.Logger
	// contains filtered or unexported fields
}

func NewClient

func NewClient(serverAddr string, id string, tls *tls.Config) *Client

func (*Client) GetID

func (c *Client) GetID() string

func (*Client) Go

func (c *Client) Go(fn func())

func (*Client) Run

func (c *Client) Run()

type ConnStatus

type ConnStatus int

Jump to

Keyboard shortcuts

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