feed

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFeedHashes

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

func GetFeedHypotheticalRootHash

func GetFeedHypotheticalRootHash(
	owner crypto.PublicKey,
	objectType string,
) object.Hash

Types

type Added

type Added struct {
	Metadata   object.Metadata `nimona:"metadata:m,omitempty"`
	ObjectHash []object.Hash
	Sequence   int64
	Datetime   string
}

func (*Added) FromObject

func (e *Added) FromObject(o *object.Object) error

func (Added) ToObject

func (e Added) ToObject() *object.Object

func (*Added) Type added in v0.12.0

func (e *Added) Type() string

type FeedStreamRoot

type FeedStreamRoot struct {
	Metadata   object.Metadata `nimona:"metadata:m,omitempty"`
	ObjectType string
	Datetime   string
}

func GetFeedHypotheticalRoot

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

func (*FeedStreamRoot) FromObject

func (e *FeedStreamRoot) FromObject(o *object.Object) error

func (FeedStreamRoot) ToObject

func (e FeedStreamRoot) ToObject() *object.Object

func (*FeedStreamRoot) Type

func (e *FeedStreamRoot) Type() string

type Removed

type Removed struct {
	Metadata   object.Metadata `nimona:"metadata:m,omitempty"`
	ObjectHash []object.Hash
	Sequence   int64
	Datetime   string
}

func (*Removed) FromObject

func (e *Removed) FromObject(o *object.Object) error

func (Removed) ToObject

func (e Removed) ToObject() *object.Object

func (*Removed) Type added in v0.12.0

func (e *Removed) Type() string

Jump to

Keyboard shortcuts

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