Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessorSentiment ¶
func ProcessorSentiment(ctx context.Context, m PubSubMessage) error
ProcessorSentiment processes pubsub topic events
Types ¶
type PubSubMessage ¶
type PubSubMessage struct {
Data []byte `json:"data"`
}
PubSubMessage is the payload of a Pub/Sub event
type TextContent ¶
type TextContent struct {
Symbol string `json:"symbol"`
ID string `json:"cid"`
CreatedAt time.Time `json:"created"`
Author string `json:"author"`
Lang string `json:"lang"`
Source string `json:"source"`
Content string `json:"content"`
Magnitude float32 `json:"magnitude"`
Score float32 `json:"score"`
IsRetweet bool `json:"retweet"`
}
TextContent represents generic text event
Click to show internal directories.
Click to hide internal directories.