agentdocs

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: BSD-3-Clause Imports: 12 Imported by: 0

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

func NewHandler(options Options) (*Handler, error)

NewHandler validates options and returns a skill document handler.

func (*Handler) Register

func (h *Handler) Register(mux *http.ServeMux)

Register mounts the skill document routes on mux.

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.

Jump to

Keyboard shortcuts

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