benchmark

package
v0.0.0-...-6d0e2ae Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExpectedString = errors.New("Expected String")

ErrExpectedString Type Mismatch.

Functions

This section is empty.

Types

type Entities

type Entities struct {
	Hashtags     []Hashtag `json:"hashtags"`
	Urls         []*string `json:"urls"`
	UserMentions []*string `json:"user_mentions"`
}

func (*Entities) FromJSON

func (value *Entities) FromJSON(input j.Value) error

FromJSON makes the lord of j happy.

func (*Entities) ToJSON

func (value *Entities) ToJSON() (j.Value, error)

ToJSON makes the lords of J happy.

type Hashtag

type Hashtag struct {
	Indices []int  `json:"indices"`
	Text    string `json:"text"`
}

func (*Hashtag) FromJSON

func (value *Hashtag) FromJSON(input j.Value) error

func (*Hashtag) ToJSON

func (value *Hashtag) ToJSON() (j.Value, error)

type LargeStruct

type LargeStruct struct {
	SearchMetadata SearchMetadata `json:"search_metadata"`
	Statuses       []Status       `json:"statuses"`
}

func (*LargeStruct) FromJSON

func (value *LargeStruct) FromJSON(input j.Value) error

func (*LargeStruct) ToJSON

func (value *LargeStruct) ToJSON() (j.Value, error)

type SearchMetadata

type SearchMetadata struct {
	CompletedIn float64 `json:"completed_in"`
	Count       int     `json:"count"`
	MaxID       int     `json:"max_id"`
	MaxIDStr    string  `json:"max_id_str"`
	NextResults string  `json:"next_results"`
	Query       string  `json:"query"`
	RefreshURL  string  `json:"refresh_url"`
	SinceID     int     `json:"since_id"`
	SinceIDStr  string  `json:"since_id_str"`
}

func (*SearchMetadata) FromJSON

func (value *SearchMetadata) FromJSON(input j.Value) error

func (*SearchMetadata) ToJSON

func (value *SearchMetadata) ToJSON() (j.Value, error)

type Status

type Status struct {
	Contributors         *string        `json:"contributors"`
	Coordinates          *string        `json:"coordinates"`
	CreatedAt            string         `json:"created_at"`
	Entities             Entities       `json:"entities"`
	Favorited            bool           `json:"favorited"`
	Geo                  *string        `json:"geo"`
	ID                   int64          `json:"id"`
	IDStr                string         `json:"id_str"`
	InReplyToScreenName  *string        `json:"in_reply_to_screen_name"`
	InReplyToStatusID    *string        `json:"in_reply_to_status_id"`
	InReplyToStatusIDStr *string        `json:"in_reply_to_status_id_str"`
	InReplyToUserID      *string        `json:"in_reply_to_user_id"`
	InReplyToUserIDStr   *string        `json:"in_reply_to_user_id_str"`
	Metadata             StatusMetadata `json:"metadata"`
	Place                *string        `json:"place"`
	RetweetCount         int            `json:"retweet_count"`
	Retweeted            bool           `json:"retweeted"`
	Source               string         `json:"source"`
	Text                 string         `json:"text"`
	Truncated            bool           `json:"truncated"`
	User                 User           `json:"user"`
}

func (*Status) FromJSON

func (value *Status) FromJSON(input j.Value) error

func (*Status) ToJSON

func (value *Status) ToJSON() (j.Value, error)

type StatusMetadata

type StatusMetadata struct {
	IsoLanguageCode string `json:"iso_language_code"`
	ResultType      string `json:"result_type"`
}

func (*StatusMetadata) FromJSON

func (value *StatusMetadata) FromJSON(input j.Value) error

func (*StatusMetadata) ToJSON

func (value *StatusMetadata) ToJSON() (j.Value, error)

type URL

type URL struct {
	ExpandedURL *string `json:"expanded_url"`
	Indices     []int   `json:"indices"`
	URL         string  `json:"url"`
}

func (*URL) FromJSON

func (value *URL) FromJSON(input j.Value) error

FromJSON makes the god of J happy.

func (*URL) ToJSON

func (value *URL) ToJSON() (j.Value, error)

ToJSON makes the god of J happy.

type User

type User struct {
	ContributorsEnabled            bool         `json:"contributors_enabled"`
	CreatedAt                      string       `json:"created_at"`
	DefaultProfile                 bool         `json:"default_profile"`
	DefaultProfileImage            bool         `json:"default_profile_image"`
	Description                    string       `json:"description"`
	Entities                       UserEntities `json:"entities"`
	FavouritesCount                int          `json:"favourites_count"`
	FollowRequestSent              *string      `json:"follow_request_sent"`
	FollowersCount                 int          `json:"followers_count"`
	Following                      *string      `json:"following"`
	FriendsCount                   int          `json:"friends_count"`
	GeoEnabled                     bool         `json:"geo_enabled"`
	ID                             int          `json:"id"`
	IDStr                          string       `json:"id_str"`
	IsTranslator                   bool         `json:"is_translator"`
	Lang                           string       `json:"lang"`
	ListedCount                    int          `json:"listed_count"`
	Location                       string       `json:"location"`
	Name                           string       `json:"name"`
	Notifications                  *string      `json:"notifications"`
	ProfileBackgroundColor         string       `json:"profile_background_color"`
	ProfileBackgroundImageURL      string       `json:"profile_background_image_url"`
	ProfileBackgroundImageURLHTTPS string       `json:"profile_background_image_url_https"`
	ProfileBackgroundTile          bool         `json:"profile_background_tile"`
	ProfileImageURL                string       `json:"profile_image_url"`
	ProfileImageURLHTTPS           string       `json:"profile_image_url_https"`
	ProfileLinkColor               string       `json:"profile_link_color"`
	ProfileSidebarBorderColor      string       `json:"profile_sidebar_border_color"`
	ProfileSidebarFillColor        string       `json:"profile_sidebar_fill_color"`
	ProfileTextColor               string       `json:"profile_text_color"`
	ProfileUseBackgroundImage      bool         `json:"profile_use_background_image"`
	Protected                      bool         `json:"protected"`
	ScreenName                     string       `json:"screen_name"`
	ShowAllInlineMedia             bool         `json:"show_all_inline_media"`
	StatusesCount                  int          `json:"statuses_count"`
	TimeZone                       string       `json:"time_zone"`
	URL                            *string      `json:"url"`
	UtcOffset                      int          `json:"utc_offset"`
	Verified                       bool         `json:"verified"`
}

func (*User) FromJSON

func (value *User) FromJSON(input j.Value) error

FromJSON makes the lords of json happy.

func (*User) ToJSON

func (value *User) ToJSON() (j.Value, error)

ToJSON makes the lords of J happy.

type UserEntities

type UserEntities struct {
	Description UserEntityDescription `json:"description"`
	URL         UserEntityURL         `json:"url"`
}

func (*UserEntities) FromJSON

func (value *UserEntities) FromJSON(input j.Value) error

FromJSON is to make the lord of J happy.

func (*UserEntities) ToJSON

func (value *UserEntities) ToJSON() (j.Value, error)

ToJSON is to make the lord of J happy.

type UserEntityDescription

type UserEntityDescription struct {
	Urls []*string `json:"urls"`
}

func (*UserEntityDescription) FromJSON

func (value *UserEntityDescription) FromJSON(input j.Value) error

func (*UserEntityDescription) ToJSON

func (value *UserEntityDescription) ToJSON() (j.Value, error)

type UserEntityURL

type UserEntityURL struct {
	Urls []URL `json:"urls"`
}

func (*UserEntityURL) FromJSON

func (value *UserEntityURL) FromJSON(input j.Value) error

func (*UserEntityURL) ToJSON

func (value *UserEntityURL) ToJSON() (j.Value, error)

type XLStruct

type XLStruct struct {
	Data []LargeStruct
}

Jump to

Keyboard shortcuts

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