v1

package
v0.1.0-6932b63 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(tv *app.TokenVendor, prefix string, opts *Options) error

Register the API V1 API handler functions to the default http.DefaultServeMux

Types

type HandlerContext

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

HandlerContext holds dependencies and configuration for API V1 handlers.

func NewHandlerContext

func NewHandlerContext(tv *app.TokenVendor, opts *Options) *HandlerContext

NewHandlerContext creates a HandlerContext initialized with the given TokenVendor and optional API options.

type Options

type Options struct {
	// AllowAnyMethod permits any HTTP method on read-only verification handlers when true.
	AllowAnyMethod bool
}

Options configures the behavior of the API V1 handlers.

Jump to

Keyboard shortcuts

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