Directories
¶
| Path | Synopsis |
|---|---|
|
Package aigateway provides a simple interface to use the Midsommar AI Gateway as an importable library in standalone applications.
|
Package aigateway provides a simple interface to use the Midsommar AI Gateway as an importable library in standalone applications. |
|
Package authidentity carries who authenticated a gateway request, and how, on the request context.
|
Package authidentity carries who authenticated a gateway request, and how, on the request context. |
|
Package authz defines the permission vocabulary used by role-based access control.
|
Package authz defines the permission vocabulary used by role-based access control. |
|
Package cluster lets several Studio replicas share one database: it registers each replica (Node) so others can tell live replicas from dead ones, and carries events every replica must see (Log).
|
Package cluster lets several Studio replicas share one database: it registers each replica (Node) so others can tell live replicas from dead ones, and carries events every replica must see (Log). |
|
Package corsutil centralizes the CORS policy for endpoints that historically sent `Access-Control-Allow-Origin: *` (OAuth, proxy metadata, plugin assets).
|
Package corsutil centralizes the CORS policy for endpoints that historically sent `Access-Control-Allow-Origin: *` (OAuth, proxy metadata, plugin assets). |
|
Package eventbridge provides an event bus system for communication between AI Studio (control) and Microgateway (edge) nodes using simonfxr/pubsub for in-process event buses and gRPC for cross-node event forwarding.
|
Package eventbridge provides an event bus system for communication between AI Studio (control) and Microgateway (edge) nodes using simonfxr/pubsub for in-process event buses and gRPC for cross-node event forwarding. |
|
gatewayplugin
|
|
|
interfaces
plugins/interfaces/auth.go
|
plugins/interfaces/auth.go |
|
sdk
plugins/sdk/conversions.go
|
plugins/sdk/conversions.go |
|
Package lrucache is a small bounded cache keyed by string: least recently used entries are evicted at capacity, and a value that is missing is built once even when many goroutines ask for it at the same moment.
|
Package lrucache is a small bounded cache keyed by string: least recently used entries are evicted at capacity, and a value that is missing is built once even when many goroutines ask for it at the same moment. |
|
Package mcpintrospect asks a remote MCP server which tools it offers.
|
Package mcpintrospect asks a remote MCP server which tools it offers. |
|
Package middleware provides HTTP middleware shared between AI Studio and the Microgateway.
|
Package middleware provides HTTP middleware shared between AI Studio and the Microgateway. |
|
Package modelmatch is the single implementation of the LLM "allowed models" matching rule.
|
Package modelmatch is the single implementation of the LLM "allowed models" matching rule. |
|
Package netguard provides SSRF safeguards for outbound requests whose destination is derived from stored configuration (LLM upstream endpoints, OCI registries).
|
Package netguard provides SSRF safeguards for outbound requests whose destination is derived from stored configuration (LLM upstream endpoints, OCI registries). |
|
Package oauthscope is the single definition of the OAuth scopes this platform issues and enforces.
|
Package oauthscope is the single definition of the OAuth scopes this platform issues and enforces. |
|
pkg/ociplugins/client.go
|
pkg/ociplugins/client.go |
|
Package pathcheck reports, once at startup, every filesystem path a binary is configured with: where the value came from (set, or the built-in default), the absolute path it resolves to from the working directory, and whether the file or directory is there and usable by the process user.
|
Package pathcheck reports, once at startup, every filesystem path a binary is configured with: where the value came from (set, or the built-in default), the absolute path it resolves to from the working directory, and whether the file or directory is there and usable by the process user. |
|
Package pglisten shares one PostgreSQL LISTEN connection per database among every subscriber in the process.
|
Package pglisten shares one PostgreSQL LISTEN connection per database among every subscriber in the process. |
|
Package plugin_sdk provides a unified SDK for building plugins that work in both AI Studio and Microgateway contexts.
|
Package plugin_sdk provides a unified SDK for building plugins that work in both AI Studio and Microgateway contexts. |
|
Package replicas is how code anywhere in Studio (core or Enterprise) cooperates with the other control-plane replicas sharing its database, without being handed the cluster machinery:
|
Package replicas is how code anywhere in Studio (core or Enterprise) cooperates with the other control-plane replicas sharing its database, without being handed the cluster machinery: |
|
Package safe keeps a panic in Studio's background work from taking the whole process down.
|
Package safe keeps a panic in Studio's background work from taking the whole process down. |
|
Package semanticrouting holds the shared shape of a Semantic Router: the configuration an administrator writes, what the classifier is asked, and what it answers.
|
Package semanticrouting holds the shared shape of a Semantic Router: the configuration an administrator writes, what the classifier is asked, and what it answers. |
|
llmclient
Package llmclient reaches LLMs for the Semantic Router engine: embeddings for the example and request vectors, and a completion for the judge.
|
Package llmclient reaches LLMs for the Semantic Router engine: embeddings for the example and request vectors, and a completion for the judge. |
|
Package studio runs Tyk AI Studio inside another Go process.
|
Package studio runs Tyk AI Studio inside another Go process. |
|
sqlitedb
Package sqlitedb adds SQLite to studio.OpenDatabase.
|
Package sqlitedb adds SQLite to studio.OpenDatabase. |
|
testinfra
|
|
|
containers
Package containers provides testcontainers-go helpers for integration testing.
|
Package containers provides testcontainers-go helpers for integration testing. |
|
mockllm
Package mockllm provides mock LLM backends for E2E testing.
|
Package mockllm provides mock LLM backends for E2E testing. |
|
plugintest
Package plugintest provides E2E testing utilities for plugins.
|
Package plugintest provides E2E testing utilities for plugins. |
|
vendorconformance
Package vendorconformance holds the shared, module-neutral half of the live vendor conformance suite: configuration loading, the vendor/surface/scenario support matrix, canonical wire schemas, response normalization and drift detection.
|
Package vendorconformance holds the shared, module-neutral half of the live vendor conformance suite: configuration loading, the vendor/surface/scenario support matrix, canonical wire schemas, response normalization and drift detection. |
|
Package tracing wires OpenTelemetry distributed tracing for the LLM proxy.
|
Package tracing wires OpenTelemetry distributed tracing for the LLM proxy. |
Click to show internal directories.
Click to hide internal directories.