twitter

package
v0.0.0-...-f43d3ad Latest Latest
Warning

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

Go to latest
Published: May 30, 2015 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConsumerKeyEnv       = "GOTWIT_CONSUMER_KEY"
	ConsumerSecretEnv    = "GOTWIT_CONSUMER_SECRET"
	AccessTokenEnv       = "GOTWIT_ACCESS_TOKEN"
	AccessTokenSecretEnv = "GOTWIT_ACCESS_TOKEN_SECRET"
)

Variables

This section is empty.

Functions

func BindConsumer

func BindConsumer(consumerConfig ConsumerConfig)

func LoadConfigEnv

func LoadConfigEnv() (c ConsumerConfig, a AccessConfig, err error)

func LoadConfigFile

func LoadConfigFile(f string) (c ConsumerConfig, a AccessConfig, err error)

func UnbindConsumer

func UnbindConsumer()

Types

type AccessConfig

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

func NewAccessConfig

func NewAccessConfig(token string, tokenSecret string) AccessConfig

type Client

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

func NewClient

func NewClient(accessConfig AccessConfig, callback func(t anaconda.Tweet)) Client

func (*Client) Post

func (c *Client) Post(message string, nsfw bool) error

func (*Client) Reply

func (c *Client) Reply(tweet anaconda.Tweet, message string, nsfw bool) error

func (*Client) Start

func (c *Client) Start() error

func (*Client) Stop

func (c *Client) Stop() (err error)

type ConsumerConfig

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

func NewConsumerConfig

func NewConsumerConfig(key string, secret string) ConsumerConfig

Jump to

Keyboard shortcuts

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