Documentation
¶
Index ¶
Constants ¶
View Source
const (
PullStateKey = "pull_state"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comp ¶
type Comp struct {
owner.Owner `bson:",inline" validate:"recurse"`
tok.Tok `bson:",inline" validate:"recurse"`
PullState *map[string]*feedpstate.FeedPState `json:"pull_state" validate:"nnpt,nz"`
}
func (*Comp) GetPullState ¶
func (c *Comp) GetPullState() map[string]*feedpstate.FeedPState
func (*Comp) SetPullState ¶
func (c *Comp) SetPullState(x map[string]*feedpstate.FeedPState)
type Core ¶
type Core struct{}
func ApplyCore ¶
func ApplyCore(c *Core, modifiers ...CoreOption) Core
type CoreOption ¶
type CoreOption = contracti.CoreOption[Core]
type FeedSession ¶
type FeedSession struct {
Meta `bson:",inline" validate:"recurse"`
Comp `bson:",inline" validate:"recurse"`
Core `bson:",inline" validate:"recurse"`
}
FeedSession represents a session.
func Mock ¶
func Mock(o owner.Owner) *FeedSession
func New ¶
func New(m Meta, cr Core) *FeedSession
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.