feedsession

package
v0.0.310 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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 Meta

type Meta struct {
	common.Common `bson:",inline" validate:"recurse"`
}

func ApplyMeta

func ApplyMeta(m *Meta, modifiers ...MetaOption) Meta

type MetaOption

type MetaOption = contract.MetaOption[Meta]

func WithCommon

func WithCommon(x common.Common) MetaOption

Jump to

Keyboard shortcuts

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