restclient

package
v0.0.0-...-83e654d Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender interface {
	// Send a a message(body) to the guble Server, to the given topic, with the given userID.
	Send(topic string, body []byte, userID string, params map[string]string) error

	// Check returns `true` if the guble server endpoint is reachable, or `false` otherwise.
	Check() bool

	// GetSubscribers returns a binary encoded JSON of all subscribers of 'topic' or an error otherwise
	GetSubscribers(topic string) ([]byte, error)
}

Sender is an interface used to send a message to the guble server.

func New

func New(endpoint string) Sender

New returns a new Sender.

Jump to

Keyboard shortcuts

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