service

package
v0.0.0-...-9156904 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivitiesRequest

type ActivitiesRequest struct {
	Source string `query:"source"`
	Limit  int    `query:"limit"`
	Offset int    `query:"offset"`
}

type Activity

type Activity struct {

	// Unique identifier for the activity
	ID string `json:"id"`

	// The source platform the activity is from
	Source string `json:"source"`

	// Unix timestamp (seconds) for when the item was published
	TS int64 `json:"ts"`

	// Permalink to the activity its source
	URL string `json:"url,omitempty"`

	// Text content for the item (may contain HTML)
	Content string `json:"content,omitempty"`

	// Array of media items (images, videos, etc...)
	Media []Media `json:"media,omitempty"`
}

type Media

type Media struct {

	// The URL to the media content
	URL string `json:"url"`

	// The kind of media
	Kind string `json:"kind"`

	// The URL to a thumbnail image
	Thumbnail string `json:"thumbnail,omitempty"`
}

Jump to

Keyboard shortcuts

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