model

package
v0.0.0-...-d078efc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 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 Search struct {
	SearchID            SearchID
	UserID              UserID
	Title               string
	Query               string
	LastSearchUpdatedAt *time.Time
	NextSearchUpdateAt  time.Time
	CreatedAt           time.Time
	UpdatedAt           time.Time
}

Search is the structure of a searching configuration.

type SearchID

type SearchID string

SearchID is the identifier of Search domain.

type Tweet

type Tweet struct {
	TweetID            TweetID `json:",string"`
	SearchID           SearchID
	AuthorID           int64 `json:",string"`
	User               *TwitterUser
	Text               string
	SentimentScore     *sentiment.Score
	SentimentLabel     sentiment.Label
	Entities           twitter.Entities
	ExpirationUnixTime int64 `json:"-"`
	TweetCreatedAt     time.Time
	CreatedAt          time.Time
	UpdatedAt          time.Time
}

Tweet is the structure of a tweet.

type TweetID

type TweetID int64

TweetID is the identifier of Tweet domain.

type TwitterUser

type TwitterUser struct {
	ID              int64 `json:",string"`
	Name            string
	ScreenName      string
	ProfileImageURL string
}

TwitterUser represents Twitter user object.

type User

type User struct {
	UserID                   UserID
	TwitterAccessToken       string
	TwitterAccessTokenSecret string
}

User contains user's data and auth tokens.

type UserID

type UserID string

UserID is the identifier of User domain.

Jump to

Keyboard shortcuts

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