operatorapi

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package operatorapi exposes the Brokerkit operator inbox over protected HTTP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options Options) (http.Handler, error)

New constructs a fail-closed operator handler.

Types

type AuditRecorder

type AuditRecorder interface {
	Record(audit.Event) error
}

AuditRecorder receives secret-safe shared audit events.

type Authorizer

type Authorizer func(*http.Request) (string, error)

Authorizer authenticates one operator and returns the audit identity.

type Options

type Options struct {
	Inbox     *operatorinbox.Service
	Authorize Authorizer
	Broker    string
	Audit     AuditRecorder
}

Options configures the shared operator-only handler.

Jump to

Keyboard shortcuts

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