nodeinfo

package
v0.18.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeInfo20            = "2.0"
	NodeInfo20ContentType = "application/json; profile=\"http://nodeinfo.diaspora.software/ns/schema/" + NodeInfo20 + "#\""
	NodeInfo21            = "2.1"
	NodeInfo21ContentType = "application/json; profile=\"http://nodeinfo.diaspora.software/ns/schema/" + NodeInfo21 + "#\""
	NodeInfoSchema        = "schema"
	NodeInfoPath          = "/:" + NodeInfoSchema
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

func New

func New(processor *processing.Processor) *Module

func (*Module) NodeInfo2GETHandler

func (m *Module) NodeInfo2GETHandler(c *gin.Context)

NodeInfo2GETHandler swagger:operation GET /nodeinfo/{schema_version} nodeInfoGet

Returns a compliant nodeinfo response to node info queries.

See: https://nodeinfo.diaspora.software/schema.html

---
tags:
- nodeinfo

parameters:
-
	name: schema_version
	type: string
	description: Schema version of nodeinfo to request. 2.0 and 2.1 are currently supported.
	in: path
	required: true

produces:
- application/json; profile="http://nodeinfo.diaspora.software/ns/schema/2.0#"
- application/json; profile="http://nodeinfo.diaspora.software/ns/schema/2.1#"

responses:
	'200':
		schema:
			"$ref": "#/definitions/nodeinfo"

func (*Module) Route

func (m *Module) Route(attachHandler func(method string, path string, f ...gin.HandlerFunc) gin.IRoutes)

Jump to

Keyboard shortcuts

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