entity

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Github     = "gh"
	HackerNews = "hn"
	Bookmark   = "bm"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BookmarkEntry

type BookmarkEntry struct {
	GUID         string           `json:"guid"`
	Title        string           `json:"title"`
	Index        int              `json:"index"`
	DateAdded    int64            `json:"dateAdded"`
	LastModified int64            `json:"lastModified"`
	ID           int              `json:"id"`
	TypeCode     int              `json:"typeCode"`
	Type         string           `json:"type"`
	Root         string           `json:"root"`
	Children     []*BookmarkEntry `json:"children"`
	URI          string           `json:"uri,omitempty"`
	Iconuri      string           `json:"iconuri,omitempty"`
}

type Item

type Item struct {
	ID          string    `json:"id,omitempty"`
	StarredAt   time.Time `json:"starred_at,omitempty"`
	Name        string    `json:"name,omitempty"`
	FullName    string    `json:"full_name,omitempty"`
	Description string    `json:"description,omitempty"`
	HtmlUrl     string    `json:"html_url,omitempty"`
	Stars       int       `json:"stars,omitempty"`
	Language    string    `json:"language,omitempty"`
	Homepage    string    `json:"homepage,omitempty"`
	Type        ItemType  `json:"type,omitempty"`
}

func GithubToItem

func GithubToItem(repo *github.StarredRepository) *Item

func (*Item) ToLinkdingRequests added in v1.0.0

func (i *Item) ToLinkdingRequests() *LinkdingRequest

type ItemType

type ItemType string

type LinkdingRequest added in v1.0.0

type LinkdingRequest struct {
	Url         string   `json:"url"`
	Title       string   `json:"title"`
	Description string   `json:"description"`
	IsArchived  bool     `json:"is_archived"`
	Unread      bool     `json:"unread"`
	Shared      bool     `json:"shared"`
	TagNames    []string `json:"tag_names"`
}

Jump to

Keyboard shortcuts

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