Documentation
¶
Index ¶
- func AddSearchResult(factory *domain.Factory, args mapof.Any) queue.Result
- func CreateWebSubFollower(factory *domain.Factory, args mapof.Any) queue.Result
- func IndexAllStreams(factory *domain.Factory, args mapof.Any) queue.Result
- func IndexAllUsers(factory *domain.Factory, args mapof.Any) queue.Result
- func MakeStreamArchive(factory *domain.Factory, _ *service.Stream, stream *model.Stream, ...) queue.Result
- func ProcessMedia(factory *domain.Factory, args mapof.Any) queue.Result
- func ReceiveWebMention(factory *domain.Factory, args mapof.Any) queue.Result
- func SendActivityPubMessage(factory *domain.Factory, args mapof.Any) queue.Result
- func SendWebMention(args mapof.Any) queue.Result
- func SendWebSubMessage(args mapof.Any) queue.Result
- func StreamSyndicate(name string, args mapof.Any) queue.Result
- func WithFactory(serverFactory ServerFactory, args mapof.Any, ...) queue.Result
- func WithStream(serverFactory ServerFactory, args mapof.Any, ...) queue.Result
- type Consumer
- type ServerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSearchResult ¶
AddSearchResult is a queue consumer that adds a new SearchResult to the database, and sends an ActivityPub message to all followers who are listening for the same set of tags.
func CreateWebSubFollower ¶
func MakeStreamArchive ¶
func ReceiveWebMention ¶
func SendActivityPubMessage ¶
SendActivityPubMessage sends an ActivityPub message to a single recipient/inboxURL `inboxURL` the URL to deliver the message to `actorType` the type of actor that is sending the message (User, Stream, Search) `actorID` unique ID of the actor (zero value for Search Actor) `message` the ActivityPub message to send
func StreamSyndicate ¶
StreamSyndicate sends HTTP messages to syndication targets
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
Consumer is the primary queue consumer for Emissary. It handles background tasks that are triggered by the queue.
func New ¶
func New(serverFactory ServerFactory) Consumer
New returns a fully initialized Consumer object