beater

package
v0.0.0-...-da9f20a Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

New creates an instance of twitterbeat.

Types

type TwitterTrend

type TwitterTrend []struct {
	Trends []struct {
		Name            string      `json:"name"`
		URL             string      `json:"url"`
		PromotedContent interface{} `json:"promoted_content"`
		Query           string      `json:"query"`
		TweetVolume     int         `json:"tweet_volume"`
	} `json:"trends"`
	AsOf      time.Time `json:"as_of"`
	CreatedAt time.Time `json:"created_at"`
	Locations []struct {
		Name  string `json:"name"`
		Woeid int    `json:"woeid"`
	} `json:"locations"`
}

TwitterTrend structure contains json structure returned by the Twitter trend API response.

type Twitterbeat

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

Twitterbeat configuration.

func (*Twitterbeat) Run

func (bt *Twitterbeat) Run(b *beat.Beat) error

Run starts twitterbeat.

func (*Twitterbeat) Stop

func (bt *Twitterbeat) Stop()

Stop stops twitterbeat.

Jump to

Keyboard shortcuts

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