ws

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 10 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(repo repository.AggregateRepository, logger *jsonlog.Logger) *Client

func (*Client) RunAndListenClient

func (c *Client) RunAndListenClient(url string, msg string)

RunAndListenClient creates and runs WS client based on the url passed in as a parameter. Then it writes the message passed as a second parameter and writes incoming payload to the repository.

Jump to

Keyboard shortcuts

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