Documentation ¶
Overview ¶
An implementaiton of server-to-server/federation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actor ¶
Actor represents an ActivityPub actor including content that the server uses in order to store, save, and manipulate actors.
func (*Actor) PostNewNote ¶
type App ¶
type App struct { // BaseURL is the URL where the application is hosted BaseURL string // ServerName is the hostname of the server (what comes after the username). ServerName string // Mux is an HTTP muxer for the server Mux *http.ServeMux // StoragePath is the directory where files generated by the server will be // stored. StoragePath string Name string // Name is what you call your application. Version string // Version is the version of your application. OpenRegistration bool // If users can create their own accounts with review. // Actors are the ActivityPub actors that are assinged to the server. You // shouldn't append them directly to this array instead use [App.AddActor] // to create them. Actors []Actor }
App represents an ActivityPub server.
func (*App) AddActor ¶
AddActor creates an actor, assigns it to the server, and saves it to the file system.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.