httpapi

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package httpapi implements the Registry's standard-library HTTP contract. It never executes an endpoint URL or fetches an attestation URI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Store          store.Store
	Clock          func() time.Time
	Random         io.Reader
	MaxJSONBytes   int64
	MaxUploadBytes int64
	SessionTTL     time.Duration
	ChallengeTTL   time.Duration
	RateLimit      int
	RateWindow     time.Duration
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Server, error)

func (*Server) ServeHTTP

func (server *Server) ServeHTTP(writer http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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