referenceadapter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package referenceadapter provides a deterministic, provider-neutral orka.gateway.v1 implementation for conformance and end-to-end tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is an in-memory deterministic reference adapter.

func New

func New(token string) *Server

New creates a reference adapter protected by one outbound bearer token.

func (*Server) Attempts

func (s *Server) Attempts(deliveryID string) int

Attempts returns how many times one stable delivery ID reached the adapter.

func (*Server) Deliveries

func (s *Server) Deliveries() []protocol.DeliveryRequest

Deliveries returns a snapshot of successfully recorded provider sends.

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler returns the HTTP adapter contract; callers choose the TLS serving layer.

Jump to

Keyboard shortcuts

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