Documentation
¶
Index ¶
Constants ¶
View Source
const ( SignedURLKey = "signed_url" MimePrefixKey = "mime_prefix" EmbeddingKey = "embedding" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
SignedURL *string `json:"signed_url" validate:"nnpt,nz"`
MimePrefix *string `json:"mime_prefix" validate:"nnpt,nz"`
Embedding *plotembedding.PlotEmbedding `json:"embedding" validate:"nnpt,nz"`
}
func ApplyCore ¶
func ApplyCore(c *Core, modifiers ...CoreOption) Core
func (*Core) GetEmbedding ¶
func (c *Core) GetEmbedding() plotembedding.PlotEmbedding
func (*Core) GetMimePrefix ¶
func (*Core) GetSignedURL ¶
func (*Core) SetEmbedding ¶
func (c *Core) SetEmbedding(x plotembedding.PlotEmbedding)
func (*Core) SetMimePrefix ¶
func (*Core) SetSignedURL ¶
type CoreOption ¶
type CoreOption = contracti.CoreOption[Core]
func WithEmbedding ¶
func WithEmbedding(x plotembedding.PlotEmbedding) CoreOption
func WithMimePrefix ¶
func WithMimePrefix(x string) CoreOption
func WithSignedURL ¶
func WithSignedURL(x string) CoreOption
type FeedObject ¶
type FeedObject struct {
Meta `bson:",inline" validate:"recurse"`
Comp `bson:",inline" validate:"recurse"`
Core `bson:",inline" validate:"recurse"`
}
FeedObject contains the denormalized content of the objects of a feed post.
func Mock ¶
func Mock() *FeedObject
func New ¶
func New(m Meta, cr Core) *FeedObject
type Meta ¶
type Meta struct{}
func ApplyMeta ¶
func ApplyMeta(m *Meta, modifiers ...MetaOption) Meta
type MetaOption ¶
type MetaOption = contract.MetaOption[Meta]
Click to show internal directories.
Click to hide internal directories.