nodeinfo

package
v0.7.0-rc3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	NodeInfo2Version     = "2.0"
	NodeInfo2Path        = "/" + NodeInfo2Version
	NodeInfo2ContentType = "application/json; profile=\"http://nodeinfo.diaspora.software/ns/schema/" + NodeInfo2Version + "#\""
)

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/2.0 nodeInfoGet

Returns a compliant nodeinfo response to node info queries.

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

---
tags:
- nodeinfo

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

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