feed

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AddedType = "event:nimona.io/feed.Added"
View Source
const FeedStreamRootType = "stream:nimona.io/feed"
View Source
const RemovedType = "event:nimona.io/feed.Removed"

Variables

This section is empty.

Functions

func GetFeedHashes

func GetFeedHashes(
	objectReader object.Reader,
) ([]tilde.Digest, error)

func GetFeedHypotheticalRootHash

func GetFeedHypotheticalRootHash(
	owner crypto.PublicKey,
	objectType string,
) tilde.Digest

Types

type Added

type Added struct {
	Metadata   object.Metadata `nimona:"@metadata:m,type=event:nimona.io/feed.Added"`
	ObjectHash []tilde.Digest  `nimona:"objectHash:as"`
	Sequence   int64           `nimona:"sequence:i"`
	Timestamp  string          `nimona:"timestamp:s"`
}

type FeedStreamRoot

type FeedStreamRoot struct {
	Metadata   object.Metadata `nimona:"@metadata:m,type=stream:nimona.io/feed"`
	ObjectType string          `nimona:"objectType:s"`
	Timestamp  string          `nimona:"timestamp:s"`
}

func GetFeedHypotheticalRoot

func GetFeedHypotheticalRoot(
	owner crypto.PublicKey,
	objectType string,
) *FeedStreamRoot

type Removed

type Removed struct {
	Metadata   object.Metadata `nimona:"@metadata:m,type=event:nimona.io/feed.Removed"`
	ObjectHash []tilde.Digest  `nimona:"objectHash:as"`
	Sequence   int64           `nimona:"sequence:i"`
	Timestamp  string          `nimona:"timestamp:s"`
}

Jump to

Keyboard shortcuts

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