Documentation
¶
Overview ¶
Package agentdocs serves the installable PeeringDB Plus agent skill.
Index ¶
Constants ¶
View Source
const ( // SkillPath is the raw skill document endpoint. SkillPath = "/skills/peeringdb-plus/SKILL.md" // ArchivePath is the installable skill archive endpoint. ArchivePath = "/skills/peeringdb-plus.zip" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves the raw skill document and its installable archive.
func NewHandler ¶
NewHandler validates options and returns a skill document handler.
type Options ¶
type Options struct {
// PublicURL overrides request-derived origins in generated metadata. It
// must be an absolute HTTP(S) origin with no credentials, path, query, or
// fragment.
PublicURL string
// SourceTime sets archive entry modification times. Zero values and dates
// before the ZIP epoch use the ZIP epoch.
SourceTime time.Time
}
Options configures a Handler.
Click to show internal directories.
Click to hide internal directories.