twitter_client

package
v0.0.0-...-d45180c Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TwitterAPIClient

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

func GetTwitterClient

func GetTwitterClient(clientId, clientSecret string, cacheTTL int) TwitterAPIClient

func (TwitterAPIClient) Search

func (t TwitterAPIClient) Search(searchKey string, search *twitter.SearchTweetParams) (*twitter.Search, error)

type TwitterHarness

type TwitterHarness struct {
	Search func(s string, p *twitter.SearchTweetParams) (*twitter.Search, error)
}

type TwitterTestClient

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

func CreateTwitterTestClient

func CreateTwitterTestClient(h TwitterHarness) TwitterTestClient

func (TwitterTestClient) Search

Jump to

Keyboard shortcuts

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