client

package
v0.0.0-...-a91f72b Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebsocketClient

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

WebsocketClient is the base client to consume the websockets

func NewClient

func NewClient(endpoint string) (*WebsocketClient, error)

NewClient creates a new websocket client

func (*WebsocketClient) Consume

func (c *WebsocketClient) Consume() chan interface{}

Consume creates a channel that returns messages

func (*WebsocketClient) WriteToDisk

func (c *WebsocketClient) WriteToDisk(filepath string) error

WriteToDisk writes new messages to disk

Jump to

Keyboard shortcuts

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