client

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: Apache-2.0 Imports: 14 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
}

Client ...

func NewClient

func NewClient(config *Config) *Client

NewClient ...

func (*Client) Listen

func (c *Client) Listen(config *ListenConfig) error

Listen ...

func (*Client) Stream

func (c *Client) Stream(config *StreamConfig) error

Stream ...

type Config

type Config struct {
	Host     string
	Port     uint
	Insecure bool
}

Config ...

type ListenConfig

type ListenConfig struct {
	Channel string
}

ListenConfig ...

type StreamConfig

type StreamConfig struct {
	Delay   time.Duration
	Timeout time.Duration
	Channel string
	Open    bool
}

StreamConfig ...

Jump to

Keyboard shortcuts

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