Documentation ¶
Index ¶
Constants ¶
View Source
const ( // StreamPrefix is the prefix for astreams (read/starred/reading list and so on) StreamPrefix = "user/-/state/com.google/" // UserStreamPrefix is the user specific prefix for streams (read/starred/reading list and so on) UserStreamPrefix = "user/%d/state/com.google/" // LabelPrefix is the prefix for a label stream LabelPrefix = "user/-/label/" // UserLabelPrefix is the user specific prefix prefix for a label stream UserLabelPrefix = "user/%d/label/" // FeedPrefix is the prefix for a feed stream FeedPrefix = "feed/" // Read is the suffix for read stream Read = "read" // Starred is the suffix for starred stream Starred = "starred" // ReadingList is the suffix for reading list stream ReadingList = "reading-list" // KeptUnread is the suffix for kept unread stream KeptUnread = "kept-unread" // Broadcast is the suffix for broadcast stream Broadcast = "broadcast" // BroadcastFriends is the suffix for broadcast friends stream BroadcastFriends = "broadcast-friends" // Like is the suffix for like stream Like = "like" // EntryIDLong is the long entry id representation EntryIDLong = "tag:google.com,2005:reader/item/%016x" )
View Source
const ( // ParamItemIDs - name of the parameter with the item ids ParamItemIDs = "i" // ParamStreamID - name of the parameter containing the stream to be included ParamStreamID = "s" // ParamStreamExcludes - name of the parameter containing streams to be excluded ParamStreamExcludes = "xt" // ParamStreamFilters - name of the parameter containing streams to be included ParamStreamFilters = "it" // ParamStreamMaxItems - name of the parameter containing number of items per page/max items returned ParamStreamMaxItems = "n" // ParamStreamOrder - name of the parameter containing the sort criteria ParamStreamOrder = "r" // ParamStreamStartTime - name of the parameter containing epoch timestamp, filtering items older than ParamStreamStartTime = "ot" // ParamStreamStopTime - name of the parameter containing epoch timestamp, filtering items newer than ParamStreamStopTime = "nt" // ParamTagsRemove - name of the parameter containing tags (streams) to be removed ParamTagsRemove = "r" // ParamTagsAdd - name of the parameter containing tags (streams) to be added ParamTagsAdd = "a" // ParamSubscribeAction - name of the parameter indicating the action to take for subscription/edit ParamSubscribeAction = "ac" // ParamTitle - name of the parameter for the title of the subscription ParamTitle = "t" // ParamQuickAdd - name of the parameter for a URL being quick subscribed to ParamQuickAdd = "quickadd" // ParamDestination - name of the parameter for the new name of a tag ParamDestination = "dest" // ParamContinuation - name of the parameter for callers to pass to receive the next page of results ParamContinuation = "c" )
Variables ¶
This section is empty.
Functions ¶
func Unauthorized ¶
func Unauthorized(w http.ResponseWriter, r *http.Request)
Unauthorized sends a not authorized error to the client.
Types ¶
type RequestModifiers ¶
type RequestModifiers struct { ExcludeTargets []Stream FilterTargets []Stream Streams []Stream Count int Offset int SortDirection string StartTime int64 StopTime int64 ContinuationToken string UserID int64 }
RequestModifiers are the parsed request parameters.
func (RequestModifiers) String ¶
func (r RequestModifiers) String() string
type Stream ¶
type Stream struct { Type StreamType ID string }
Stream defines a stream type and its ID.
type StreamType ¶
type StreamType int
StreamType represents the possible stream types
const ( // NoStream - no stream type NoStream StreamType = iota // ReadStream - read stream type ReadStream // StarredStream - starred stream type StarredStream // ReadingListStream - reading list stream type ReadingListStream // KeptUnreadStream - kept unread stream type KeptUnreadStream // BroadcastStream - broadcast stream type BroadcastStream // BroadcastFriendsStream - broadcast friends stream type BroadcastFriendsStream // LabelStream - label stream type LabelStream // FeedStream - feed stream type FeedStream // LikeStream - like stream type LikeStream )
func (StreamType) String ¶
func (st StreamType) String() string
Click to show internal directories.
Click to hide internal directories.