Documentation
¶
Index ¶
Constants ¶
View Source
const (
PostIDKey = "post_id"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
owner.Owner `bson:",inline" validate:"recurse"`
PostID *contract.ID `json:"post_id" validate:"nnpt,nz"`
}
func ApplyCore ¶
func ApplyCore(c *Core, modifiers ...CoreOption) Core
type CoreOption ¶
type CoreOption = contracti.CoreOption[Core]
func WithOwner ¶
func WithOwner(x owner.Owner) CoreOption
func WithPostID ¶
func WithPostID(x contract.ID) CoreOption
type FeedView ¶
type FeedView struct {
Meta `bson:",inline" validate:"recurse"`
Comp `bson:",inline" validate:"recurse"`
Core `bson:",inline" validate:"recurse"`
}
FeedView represents a view of a post.
type MetaOption ¶
type MetaOption = contract.MetaOption[Meta]
func WithCommon ¶
func WithCommon(x common.Common) MetaOption
Click to show internal directories.
Click to hide internal directories.