twixter

package module
v0.0.0-...-cda1685 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

README

Twixter

My Twitter's network from another perspective

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nats

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

func NewNats

func NewNats(config *viper.Viper, log *logrus.Logger) *Nats

func (*Nats) RegisterWorker

func (n *Nats) RegisterWorker(subject, queue string, handler nats.Handler) error

func (*Nats) Run

func (n *Nats) Run()

type Neo4j

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

func NewNeo4j

func NewNeo4j(config *viper.Viper, log *logrus.Logger) *Neo4j

type Twitter

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

func NewTwitter

func NewTwitter(config *viper.Viper, log *logrus.Logger) *Twitter

func (*Twitter) GetFollowers

func (t *Twitter) GetFollowers(username string) []*TwitterProfile

func (*Twitter) GetFollowings

func (t *Twitter) GetFollowings(username string) []*TwitterProfile

func (*Twitter) GetProfile

func (t *Twitter) GetProfile(username string) (*TwitterProfile, error)

type TwitterProfile

type TwitterProfile struct {
	CreatedAt time.Time
	UpdatedAt time.Time

	//Twitter Data
	TwitterID           string
	Name                string
	Username            string
	Location            string
	Bio                 string
	URL                 string
	Email               string
	ProfileBannerURL    string
	ProfileImageURL     string
	Verified            bool
	Protected           bool
	DefaultProfile      bool
	DefaultProfileImage bool
	FollowersCount      int
	FollowingsCount     int
	FavouritesCount     int
	ListedCount         int
	TweetsCount         int
	Entities            map[string]interface{}
	JoinedAt            time.Time
	FollowingsIDs       []string // TwitterID references
	FollowersIDs        []string // TwitterID references
}

TwitterProfile represents a user's profile on Twitter.

Jump to

Keyboard shortcuts

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