Documentation ¶
Overview ¶
Package feedgenerator describes the FeedGenerator type, which is responsible for generating feeds for a given DID. It also describes the Feed interface, which is implemented by the various feed types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeedGenerator ¶
type FeedGenerator struct { FeedActorDID did.DID // DID of the Repo the Feed is published under ServiceEndpoint string // URL of the FeedGenerator service ServiceDID did.DID // DID of the FeedGenerator service DIDDocument did.Document // DID Document of the FeedGenerator service AcceptableURIPrefixes []string // URIs that the FeedGenerator is allowed to generate feeds for FeedMap map[string]Feed // map of FeedName to Feed Feeds []Feed }
func NewFeedGenerator ¶
func NewFeedGenerator( ctx context.Context, feedActorDIDString string, serviceDIDString string, acceptableDIDs []string, serviceEndpoint string, ) (*FeedGenerator, error)
NewFeedGenerator returns a new FeedGenerator
func (*FeedGenerator) AddFeed ¶
func (fg *FeedGenerator) AddFeed(feedAliases []string, feed Feed)
AddFeed adds a feed to the FeedGenerator Feed precedence for overlapping aliases is determined by the order in which they are added (first added is highest precedence)
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.