void

package
v0.0.0-...-e797cc8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 5 Imported by: 0

README

Void package

This package provides structure that implements twitterclient.Interface without any data retrieving or network connections. You can use this provider through configuration to avoid undesired network traffic consumption.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInstance

NewInstance creates new twitter scrapper (void)

Types

type Instance

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

Instance structure is used to store the server's state

func (*Instance) AddStreams

func (instance *Instance) AddStreams(streams []entity.StreamInterface)

AddStreams adds desired stream to the current instance of twitterclient

func (*Instance) DeleteStreams

func (instance *Instance) DeleteStreams([]int64)

DeleteStreams removes desired stream to the current instance of twitterclient

func (*Instance) GetStreams

func (instance *Instance) GetStreams() map[int64]entity.StreamInterface

GetStreams returns all the streams from the current instance of twitterclient

func (*Instance) Start

func (instance *Instance) Start() error

Start function runs twitter client and validates credentials for Twitter Streaming API

func (*Instance) Unwatch

func (instance *Instance) Unwatch()

Unwatch stops watching

func (*Instance) Watch

func (instance *Instance) Watch(output chan entity.TweetStreamsInterface) error

Watch starts watching

Jump to

Keyboard shortcuts

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