Help us shape the future of Go! Take the 2026 Go Developer Survey

extractionhttp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package extractionhttp implements the facts extraction gateway v1 contract. A host-approved gateway receives exact retained request bytes and returns raw candidate JSON with model identity and usage in response headers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PropagateTraceContext         bool
	URL, Token                    string
	RootCAPEM                     []byte
	AllowPlaintextLoopback        bool
	Timeout                       time.Duration
	MaxInputBytes, MaxOutputBytes int
}

type Provider

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

func New

func New(c Config) (*Provider, error)

func (*Provider) Close

func (p *Provider) Close()

func (*Provider) Extract

func (p *Provider) Extract(ctx context.Context, input []byte) (model.ExtractionResponse, error)

Jump to

Keyboard shortcuts

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