stream

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarkAllAsRead

func MarkAllAsRead(rc *resty.Client, params map[string]string) error

MarkAllAsRead -- Marks all items in stream as read; stream is specified in query parameters

Types

type Item

type Item struct {
	CrawlTimeMsec string   `json:"crawlTimeMsec"`
	TimestampUsec string   `json:"timestampUsec"`
	ID            string   `json:"id"`
	Categories    []string `json:"categories"`
	Title         string   `json:"title"`
	Published     int64    `json:"published"`
	Updated       int      `json:"updated"`
	Canonical     []struct {
		Href string `json:"href"`
	} `json:"canonical"`
	Author      string        `json:"author"`
	LikingUsers []interface{} `json:"likingUsers"`
	Comments    []interface{} `json:"comments"`
	CommentsNum int           `json:"commentsNum"`
	Annotations []interface{} `json:"annotations"`
	Origin      *Origin       `json:"origin"`
}

Item response

type ItemIDs

type ItemIDs struct {
	Items        []interface{} `json:"items"`
	ItemRefs     []interface{} `json:"itemRefs"`
	Continuation string        `json:"continuation"`
}

ItemIDs response

type ItemRefs

type ItemRefs struct {
	ID              string        `json:"id"`
	DirectStreamIds []interface{} `json:"directStreamIds"`
	TimestampUsec   string        `json:"timestampUsec"`
}

ItemRefs response

type Origin

type Origin struct {
	StreamID string `json:"streamId"`
	Title    string `json:"title"`
	HTMLURL  string `json:"htmlUrl"`
}

Origin response

type StreamContents

type StreamContents struct {
	Direction   string `json:"direction"`
	ID          string `json:"id"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Updated     int    `json:"updated"`
	UpdatedUsec string `json:"updatedUsec"`
	Self        struct {
		Href string `json:"href"`
	} `json:"self"`
	Items        []Item `json:"items"`
	Continuation string `json:"continuation"`
}

StreamContents response

func GetStreamContents

func GetStreamContents(rc *resty.Client, params map[string]string) (sc *StreamContents, err error)

GetStreamContents -- Gets stream contents based on set query parameters

type StreamPreferenceList

type StreamPreferenceList struct {
	Streamprefs interface{} `json:"streamprefs"`
}

StreamPreferenceList response

type Streamprefs

type Streamprefs struct {
	UserStateComGoogleRoot []interface{} `json:"user/-/state/com.google/root"`
}

Streamprefs response

type UserStateComGoogleRoot

type UserStateComGoogleRoot struct {
	ID    string `json:"id"`
	Value string `json:"value"`
}

UserStateComGoogleRoot response

Jump to

Keyboard shortcuts

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