hostmeta

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HostMetaContentType = "application/xrd+xml"
	HostMetaPath        = "/host-meta"
)

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) HostMetaGETHandler

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

HostMetaGETHandler swagger:operation GET /.well-known/host-meta hostMetaGet

Returns a compliant hostmeta response to web host metadata queries.

See: https://www.rfc-editor.org/rfc/rfc6415.html

---
tags:
- .well-known

produces:
- application/xrd+xml"

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

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