gofire

package
v0.0.0-...-051c1ed Latest Latest
Warning

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

Go to latest
Published: May 9, 2014 License: MIT Imports: 13 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
}

func NewClient

func NewClient(token, subdomain string, secure bool) *Client

func NewClientWith

func NewClientWith(baseURL, streamingBaseURL, token string) *Client

func (*Client) NewRoom

func (c *Client) NewRoom(room_id int) *Room

func (*Client) Rooms

func (c *Client) Rooms() ([]Room, error)

func (*Client) Search

func (c *Client) Search(query string) ([]Message, error)

type Message

type Message struct {
	Type string `json:"type"`
	Body string `json:"body"`
}

type Request

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

func (*Request) Do

func (r *Request) Do(verb string) (*Response, error)

func (*Request) Get

func (r *Request) Get() (*Response, error)

func (*Request) Post

func (r *Request) Post() (*Response, error)

type Response

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

func (*Response) ReadBody

func (r *Response) ReadBody() ([]byte, error)

func (*Response) UnmarshalJSON

func (r *Response) UnmarshalJSON(subject interface{}) error

type Room

type Room struct {
	Id    int    `json:"id"`
	Name  string `json:"name"`
	Topic string `json:"topic"`
	// contains filtered or unexported fields
}

func (*Room) Listen

func (r *Room) Listen() (chan Message, error)

func (*Room) Say

func (r *Room) Say(phrase string) (*Message, error)

type Streaming

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

func (*Streaming) Close

func (c *Streaming) Close()

func (*Streaming) Listen

func (c *Streaming) Listen(fun listenCallback) error

Jump to

Keyboard shortcuts

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