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 ¶
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"
Click to show internal directories.
Click to hide internal directories.