client

package
v0.0.0-...-7c53e23 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2017 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Send() is used for enqueueing an event via gmunch. The name clearly identifies
	// the event type so that your worker process can subscribe handlers for that event.
	// Names do not have to be globally unique--simply unique per gmunch instance (one or
	// more gmunch Servers that use the same configuration).
	Send(name string, data interface{}) error
}

func New

func New(addr string, config Config) (Client, error)

type Config

type Config struct {
	// TLSConfig must be provided.
	TLSConfig tls.Config
}

ClientConfig objects are used to configure the transport's client.

Jump to

Keyboard shortcuts

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