client

package
v0.0.0-...-e3c5015 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Anaconda

type Anaconda interface {
	SetConsumerKey(key string)
	SetConsumerSecret(keySecret string)
	NewTwitterAPI(token string, tokenSecret string) TwitterAPI
}

Anaconda is an interface wrapper around the anaconda twitter client

func NewAnaconda

func NewAnaconda() Anaconda

NewAnaconda creates a new Anaconda

type MockAnaconda

type MockAnaconda struct{ mock.Mock }

MockAnaconda is a mock MockAnaconda Twitter client

func (*MockAnaconda) NewTwitterAPI

func (a *MockAnaconda) NewTwitterAPI(token string, tokenSecret string) TwitterAPI

NewTwitterAPI is a mockable NewTwitterAPI

func (*MockAnaconda) SetConsumerKey

func (a *MockAnaconda) SetConsumerKey(key string)

SetConsumerKey is a mockable SetConsumerKey

func (*MockAnaconda) SetConsumerSecret

func (a *MockAnaconda) SetConsumerSecret(keySecret string)

SetConsumerSecret is a mockable SetConsumerSecret

type MockTwitterAPI

type MockTwitterAPI struct{ mock.Mock }

MockTwitterAPI is a mock MockTwitterAPI

func (*MockTwitterAPI) PublicStreamFilter

func (a *MockTwitterAPI) PublicStreamFilter(values url.Values) TwitterStream

PublicStreamFilter is a mockable PublicStreamFilter

type MockTwitterStream

type MockTwitterStream struct{ mock.Mock }

MockTwitterStream is a mock MockTwitterStream

func (*MockTwitterStream) C

func (a *MockTwitterStream) C() chan interface{}

C is a mockable C

func (*MockTwitterStream) Stop

func (a *MockTwitterStream) Stop()

Stop is a mockable Stop

type TwitterAPI

type TwitterAPI interface {
	PublicStreamFilter(values url.Values) TwitterStream
}

TwitterAPI is an interface wrapper around the anaconda twitter API

type TwitterStream

type TwitterStream interface {
	C() chan interface{}
	Stop()
}

TwitterStream is an interface wrapper around the anaconda.Stream struct

Jump to

Keyboard shortcuts

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