reference

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Index        = "twitter"
	Type         = "tweet"
	IndexAndType = "twitter/tweet"
)

Variables

This section is empty.

Functions

func ProcResponse

func ProcResponse(resp *http.Response, err error)

Types

type Location

type Location struct {
	DisplayName string  `json:"display_name,omitempty"`
	Locode      string  `json:"locode,omitempty"`
	Lat         float64 `json:"lat,omitempty"`
	Lon         float64 `json:"lon,omitempty"`
}

type Tweet

type Tweet struct {
	User     User     `json:"user,omitempty"`
	PostDate string   `json:"post_date,omitempty"`
	Message  string   `json:"message,omitempty"`
	HashTags []string `json:"hash_tags,omitempty"`
}

Tweet is an example Twitter Tweet struct.

type User

type User struct {
	Username   string   `json:"username,omitempty"`
	Location   Location `json:"location,omitempty"`
	IsVerified bool     `json:"is_verified,omitempty"`
}

Jump to

Keyboard shortcuts

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