webstomp

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(target string, protocol string) (net.Conn, error)

Dial creates a client connection to the given target

Types

type Client

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

func NewClient

func NewClient(opts Options, logger *logrus.Entry, safeDateContainer *datecontainer.SafeDateContainer) *Client

func (*Client) Consume

func (c *Client) Consume(consumer messageConsumer)

func (*Client) Disconnect

func (c *Client) Disconnect() error

type Options

type Options struct {
	Protocol    string
	Login       string
	Passcode    string
	SendTimeout int
	RecvTimeout int
	Target      string
	Destination string
}

Jump to

Keyboard shortcuts

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