@zauberstuhl There should be constructors to create `vocab` or `streams` objects. Then I think `pub` has some functions that can handle serving these objects at arbitrary endpoints. I'll have to check at home for the specifics if you need me to.
As for sending, unsure what your use case is. But I would be interested to know.
@cj how can I send the create vocab objects to another server? shall I use pub.PostOutbox for this?
@zauberstuhl Yes, PostOutbox will add it to the actor's outbox collection and do the federation thing necessary to ship it out, if you chose a pub.Pubber that does S2S.
@cj ok and if I want something simpler without doing a http request I have to write a function on my own correct?
@zauberstuhl Yep, just POST a json.Marshal(o.Serialize()) result to the API you want to send it to.
@cj nice ok will try thanks!
@cj `Then I think `pub` has some functions that can handle serving these objects at arbitrary endpoints.` yes that was what I am looking for :)
Instance majoritairement francophone. Nous ne régulons la fédération. Aucun contenu du fédiverse n'est filtré par une décision d'administrateur ou de modérateur.