Versions in this module Expand all Collapse all v0 v0.7.1 Sep 14, 2022 v0.7.0 Jul 8, 2022 Changes in this version + var ErrFeedTypeNotFound = errors.New("no such feed type") + func FromChunk(ch swarm.Chunk) (uint64, []byte, error) + func Id(topic []byte, index Index) ([]byte, error) + func Latest(ctx context.Context, l Lookup, after int64) (swarm.Chunk, error) + func NewUpdate(f *Feed, idx Index, timestamp int64, payload, sig []byte) (swarm.Chunk, error) + func UpdatedAt(ch swarm.Chunk) (uint64, error) + type Factory interface + NewLookup func(Type, *Feed) (Lookup, error) + type Feed struct + Owner common.Address + Topic []byte + func New(topic []byte, owner common.Address) *Feed + func (f *Feed) Update(index Index) *Update + type Getter struct + func NewGetter(getter storage.Getter, feed *Feed) *Getter + func (f *Getter) Get(ctx context.Context, i Index) (swarm.Chunk, error) + type Index interface + Next func(last int64, at uint64) Index + type Lookup interface + At func(ctx context.Context, at, after int64) (chunk swarm.Chunk, currentIndex, nextIndex Index, err error) + type Putter struct + func NewPutter(putter storage.Putter, signer crypto.Signer, topic []byte) (*Putter, error) + func (u *Putter) Put(ctx context.Context, i Index, at int64, payload []byte) error + type Type int + const Epoch + const Sequence + func (t *Type) FromString(s string) error + func (t Type) String() string + type Update struct + func (u *Update) Address() (swarm.Address, error) + func (u *Update) Id() ([]byte, error) + type Updater interface + Feed func() *Feed + Update func(ctx context.Context, at int64, payload []byte) error