gonchohttp

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServiceHandler

func NewServiceHandler(svc *goncho.Service) http.Handler

NewServiceHandler exposes a small local HTTP adapter over service-backed Honcho-compatible routes. It is intended for embedded/local smoke tests, not hosted auth, pagination, or provider orchestration.

Types

type HTTPServiceRestartE2EConfig

type HTTPServiceRestartE2EConfig struct {
	DBPath      string
	WorkspaceID string
	ObserverID  string
	PeerID      string
	SessionKey  string
}

type HTTPServiceRestartE2EReport

type HTTPServiceRestartE2EReport struct {
	SQLiteRestartVerified               bool   `json:"sqlite_restart_verified"`
	NetworkRequired                     bool   `json:"network_required"`
	ExternalProviderRequired            bool   `json:"external_provider_required"`
	MessagesCreated                     int    `json:"messages_created"`
	SearchCountBeforeRestart            int    `json:"search_count_before_restart"`
	SearchCountAfterRestart             int    `json:"search_count_after_restart"`
	ContextHadProfileAfterRestart       bool   `json:"context_had_profile_after_restart"`
	ContextHadConclusionAfterRestart    bool   `json:"context_had_conclusion_after_restart"`
	ContextHadRecentMessageAfterRestart bool   `json:"context_had_recent_message_after_restart"`
	CompletionCondition                 string `json:"completion_condition"`
}

type Route

type Route struct {
	Method      string      `json:"method"`
	Path        string      `json:"path"`
	OperationID string      `json:"operation_id"`
	Tag         string      `json:"tag"`
	Status      RouteStatus `json:"status"`
	Target      string      `json:"target,omitempty"`
	Residual    string      `json:"residual,omitempty"`
	SourceRefs  []string    `json:"source_refs,omitempty"`
}

func FindRoute

func FindRoute(method, path string) (Route, bool)

func OpenAPIRouteManifest

func OpenAPIRouteManifest() []Route

func RowBackedRoutes

func RowBackedRoutes() []Route

type RouteStatus

type RouteStatus string
const (
	RouteServiceBacked RouteStatus = "service_backed"
	RouteRowBacked     RouteStatus = "row_backed"
)

Jump to

Keyboard shortcuts

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