feeds

package
v0.0.0-...-9bd9899 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(router *httprouter.Router)

Init -

Types

type Comment

type Comment struct {
	db.Comment
	From string      `db:"nickname" json:"from"`
	Pic  null.String `db:"pic" json:"pic"`

	Liked    bool `db:"liked" json:"liked"`
	NReplies int  `db:"nreplies" json:"nReplies"`
	NLikes   int  `db:"nlikes" json:"nLikes"`
}

type FeedEntrySocial

type FeedEntrySocial struct {
	Liked      bool `db:"liked" json:"liked"`
	Bookmarked bool `db:"bookmarked" json:"bookmarked"`
	NLikes     int  `db:"nlikes" json:"nLikes"`
	NComments  int  `db:"ncomments" json:"nComments"`
}

type FeedMediaWithArchived

type FeedMediaWithArchived struct {
	appbackend.FeedMedia
	PlantArchived sql.NullBool `json:"-" db:"plant_archived"`
	BoxArchived   sql.NullBool `json:"-" db:"box_archived"`
}

func (FeedMediaWithArchived) GetURLs

func (r FeedMediaWithArchived) GetURLs() []appbackend.S3Path

func (*FeedMediaWithArchived) SetURLs

func (r *FeedMediaWithArchived) SetURLs(paths []string)

TODO DRY with explorer/models.go:123

type SGLOverlayParams

type SGLOverlayParams struct {
	Box   appbackend.Box         `json:"box"`
	Plant appbackend.Plant       `json:"plant"`
	Meta  appbackend.MetricsMeta `json:"meta"`
	URL   string                 `json:"url"`
	Host  string                 `json:"host"`
}

type SelectBookmarksParams

type SelectBookmarksParams struct {
	middlewares.SelectParamsOffsetLimit
}

type SelectBoxesParams

type SelectBoxesParams struct {
	middlewares.SelectParamsOffsetLimit
}

type SelectDevicesParams

type SelectDevicesParams struct {
	middlewares.SelectParamsOffsetLimit
}

type SelectFeedEntriesParams

type SelectFeedEntriesParams struct {
	middlewares.SelectParamsOffsetLimit
}

type SelectFeedEntryCommentsParams

type SelectFeedEntryCommentsParams struct {
	middlewares.SelectParamsOffsetLimit
	ReplyTo          *string `json:"replyTo"`
	RootCommentsOnly bool    `json:"rootCommentsOnly"`
	AllComments      bool    `json:"allComments"`
}

type SelectFeedEntrySocialParams

type SelectFeedEntrySocialParams struct{}

type SelectFeedMediasParams

type SelectFeedMediasParams struct {
	middlewares.SelectParamsOffsetLimit
}

type SelectFeedsParams

type SelectFeedsParams struct {
	middlewares.SelectParamsOffsetLimit
}

type SelectPlantsParams

type SelectPlantsParams struct {
	middlewares.SelectParamsOffsetLimit
}

type SelectTimelapsesParams

type SelectTimelapsesParams struct {
	middlewares.SelectParamsOffsetLimit

	AddNFrames bool
}

type SelectTimelapsesResult

type SelectTimelapsesResult struct {
	appbackend.Timelapse

	NFrames *int `db:"nframes,omitempty" json:"nFrames,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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