client

package
v0.0.0-...-be62643 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: BSD-3-Clause Imports: 11 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 interface {
	GetRouterList(key string) error
	Close() error
}

func NewWSClient

func NewWSClient(host string, port int) Client

type WSClient

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

func (*WSClient) Close

func (w *WSClient) Close() error

func (*WSClient) GetRouterList

func (w *WSClient) GetRouterList(key string) error

func (*WSClient) ParseMsg

func (w *WSClient) ParseMsg()

func (*WSClient) ParseRouterList

func (w *WSClient) ParseRouterList(r *bufio.Reader) (string, []string, error)

func (*WSClient) ReadMsg

func (w *WSClient) ReadMsg()

func (*WSClient) Subscribe

func (w *WSClient) Subscribe(key string) error

Jump to

Keyboard shortcuts

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