mbtest

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mbtest is a stand-in BRC-33 message box server for tests: the three calls in the shapes of the HTTP conformance vectors, with the caller's identity taken from the header the vectors show instead of from a mutual authentication. Nothing here is for real use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func As

func As(base, identity string) messagebox.Fetcher

As is a Fetcher that reaches srv as identity, standing in for AuthFetch.

Types

type Server

type Server struct {
	Seen  []map[string]any
	Price bool
	// contains filtered or unexported fields
}

Server is a message box server reduced to the three calls, in the shapes of the BRC-33 HTTP conformance vectors: the caller's identity is what mutual authentication established, carried here in the header the vectors show, x-bsv-auth-identity-key.

func NewServer

func NewServer() *Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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