Socket
Socket
Sign inDemoInstall

git.feneas.org/ganggo/federation

Package Overview
Dependencies
0
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    git.feneas.org/ganggo/federation

GangGo Federation Library Copyright (C) 2017-2018 Lukas Matt <lukas@zauberstuhl.de> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. To send a entity to a fediverse server we simply have to construct one with the protocol we want to use and hit send! :) To receive and parser diaspora requests `federation.DiasporaParse` and `federation.DiasporaParseEncrypted` is used. Diaspora has to main routes to receive entities: 1) /receive/public 2) /receive/private/:guid If we receive something via 1) it will be in a xml format and can be parsed without encryption in the first place. If we receive a entity via 2) we have to decrypt the xml first. This is better described here: https://diaspora.github.io/diaspora_federation/federation/encryption.html [...] After we succesfully parsed the request we will end up with a `Message` interface which includes the `MessageBase` and can be type casted to every entity message. Afterwards all information can be retrieved via abstraction methods e.g. entity.Author()


Version published

Readme

Source

GangGo Federation Library

pipeline status coverage report Documentation testsuite

Federation library for golang to communicate with the diaspora protocol

Dependencies

For parsing hcard's the library requires a third party lib:

github.com/PuerkitoBio/goquery

FAQs

Last updated on 30 Nov 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc