dnslink

package
v0.1.0-develop.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedReadAppManifest = errors.New("failed to read app manifest")
	ErrInvalidAppManifest    = errors.New("invalid app manifest")
)

Functions

func Handler

func Handler(ctx *context.Context)

Types

type CID

type CID string

type ExtraMetadata

type ExtraMetadata map[string]interface{}

type PathContent

type PathContent struct {
	CID         CID    `msgpack:"cid"`
	ContentType string `msgpack:"contentType,omitempty"`
}

type WebAppMetadata

type WebAppMetadata struct {
	Schema        string                 `msgpack:"$schema,omitempty"`
	Type          string                 `msgpack:"type"`
	Name          string                 `msgpack:"name,omitempty"`
	TryFiles      []string               `msgpack:"tryFiles,omitempty"`
	ErrorPages    map[string]string      `msgpack:"errorPages,omitempty"`
	Paths         map[string]PathContent `msgpack:"paths"`
	ExtraMetadata ExtraMetadata          `msgpack:"extraMetadata,omitempty"`
}

Jump to

Keyboard shortcuts

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