pusher

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2014 License: MIT Imports: 3 Imported by: 0

README

Pusher Build Status

Package pusher implements client library for pusher.com pusher.com

Documentation

http://godoc.org/github.com/oguzbilgic/pusher

License

The MIT License (MIT)

Documentation

Overview

Package pusher implements client library for pusher.com socket

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	Name string
	// contains filtered or unexported fields
}

func NewChannel

func NewChannel(name string) *Channel

func (*Channel) Bind

func (c *Channel) Bind(event string) chan interface{}

type Client

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

func New

func New(key string) (*Client, error)

func (*Client) Channel

func (c *Client) Channel(name string) *Channel

func (*Client) Disconnect

func (c *Client) Disconnect() error

type Message

type Message struct {
	Event   string      `json:"event"`
	Channel string      `json:"channel"`
	Data    interface{} `json:"data"`
}

func NewPongMessage

func NewPongMessage() *Message

func NewSubscribeMessage

func NewSubscribeMessage(channel string) *Message

Jump to

Keyboard shortcuts

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