client

package
v0.0.0-...-9d14262 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: MIT Imports: 11 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 {
	*cache.Cache
	*twtr.Client
	*twtr.Streaming
	Expiration     time.Duration
	DeletedTweet   chan *Tweet
	StreamingError chan error
}

func New

func New() (*Client, error)

func (*Client) Open

func (c *Client) Open() error

type Tweet

type Tweet struct {
	*twtr.Tweet
	ID        int64
	UserID    int64
	DeletedAt time.Time
}

func (*Tweet) Model

func (t *Tweet) Model() (*models.Tweet, error)

func (*Tweet) UserModel

func (t *Tweet) UserModel() (*models.User, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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