nodeinfo

package
v0.0.0-...-f6da3f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nodeinfo

type Nodeinfo struct {
	*app.App
}

func New

func New(app *app.App) *Nodeinfo

func (*Nodeinfo) Nodeinfo20

func (a *Nodeinfo) Nodeinfo20(w http.ResponseWriter, r *http.Request)

type Nodeinfo20

type Nodeinfo20 struct {
	Version           string             `json:"version"`
	Protocols         []string           `json:"protocols"`
	OpenRegistrations bool               `json:"openRegistrations"`
	Software          Nodeinfo20Software `json:"software"`
	Usage             Nodeinfo20Usage    `json:"usage"`
}

type Nodeinfo20Software

type Nodeinfo20Software struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type Nodeinfo20Usage

type Nodeinfo20Usage struct {
	LocalPosts int64           `json:"localPosts"`
	Users      Nodeinfo20Users `json:"users"`
}

type Nodeinfo20Users

type Nodeinfo20Users struct {
	Total int64 `json:"total"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL