storeutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetQueryOptions

func GetQueryOptions(opts ...store.QueryOpt) *store.QueryOptions

GetQueryOptions populates and returns the QueryOptions struct with the given options.

func GetRefMetadata

func GetRefMetadata(refMetadataOpts ...store.RefMetadataOpt) *store.RefMetadata

GetRefMetadata populates and returns the RefMetadata struct with the given metadata.

func ReadActivities

func ReadActivities(it store.ActivityIterator, maxItems int) ([]*vocab.ActivityType, error)

ReadActivities returns all of the activities resulting from iterating over the given iterator, up to the given maximum number of activities. If maxItems is <=0 then all items are read.

func ReadReferences

func ReadReferences(it store.ReferenceIterator, maxItems int) ([]*url.URL, error)

ReadReferences returns all of the references resulting from iterating over the given iterator, up to the given maximum number of references. If maxItems is <=0 then all items are read.

Types

This section is empty.

Jump to

Keyboard shortcuts

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