types

package
Version: v0.0.0-...-de1b827 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2014 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	URL         string          `json:"url"`
	ResolvedURL string          `json:"resolved_url"`
	Icon        string          `json:"icon"`
	Meta        json.RawMessage `json:"meta" diffbot:"optional"`
	QueryString json.RawMessage `json:"querystring" diffbot:"optional"`
	Links       []string        `json:"links" diffbot:"optional"`
	Type        string          `json:"type"`
	Title       string          `json:"title"`
	Text        string          `json:"text"`
	HTML        string          `json:"html"`
	Pages       int             `json:"numPages"`
	Date        Time            `json:"date"`
	Author      string          `json:"author"`
	Tags        []string        `json:"tags" diffbot:"optional"`
	Language    string          `json:"humanLanguage" diffbot:"optional"`
	Images      []Image         `json:"images"`
	Videos      []Video         `json:"videos"`

	Stats     Stats      `json:"stats" diffbot:"experimental"`
	Summary   string     `json:"summary" diffbot:"experimental"`
	SuperTags []SuperTag `json:"supertags" diffbot:"experimental"`
}

type Categories

type Categories map[int64]string

func (*Categories) UnmarshalJSON

func (c *Categories) UnmarshalJSON(b []byte) (err error)

type Image

type Image struct {
	URL     string `json:"url"`
	Height  int    `json:"pixelHeight"`
	Width   int    `json:"pixelWidth"`
	Caption string `json:"caption"`
	Primary bool   `json:"primary"`
}

type Position

type Position struct {
	X int
	Y int
}

func (*Position) UnmarshalJSON

func (p *Position) UnmarshalJSON(b []byte) (err error)

type Stats

type Stats struct {
	Confidence float64
}

func (*Stats) UnmarshalJSON

func (s *Stats) UnmarshalJSON(b []byte) (err error)

type SuperTag

type SuperTag struct {
	Variety      float64    `json:"variety"`
	Name         string     `json:"name"`
	Categories   Categories `json:"categories"`
	Score        float64    `json:"score"`
	Depth        float64    `json:"depth"`
	Positions    []Position `json:"positions"`
	ID           int64      `json:"id"`
	ContentMatch float64    `json:"contentMatch"`
	Type         int        `json:"type"`
	SenseRank    int        `json:"senseRank"`
}

type Time

type Time time.Time

func (Time) Time

func (t Time) Time() time.Time

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(b []byte) (err error)

type Video

type Video struct {
	URL     string `json:"url"`
	Height  int    `json:"pixelHeight"`
	Width   int    `json:"pixelWidth"`
	Primary bool   `json:"primary"`
}

Jump to

Keyboard shortcuts

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