Documentation
¶
Index ¶
- func NewServerBuildInfo(bi buildinfo.BuildInfo, transport, sqlBackend, providerRegistry, mode string) serverBuildInfo
- func NewStackqlMCPBackendService(txnOrchestrator tsm_physio.Orchestrator, handlerCtx handler.HandlerContext, ...) (mcp_server.Backend, error)
- func NewStackqlMCPReverseProxyService(dsn string, db *sql.DB, handlerCtx handler.HandlerContext, ...) (mcp_server.Backend, error)
- type StackqlInterrogator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServerBuildInfo ¶ added in v0.10.474
func NewServerBuildInfo( bi buildinfo.BuildInfo, transport, sqlBackend, providerRegistry, mode string, ) serverBuildInfo
NewServerBuildInfo composes build-time identifiers and runtime values into a single value carried by the backend. Fields are written exactly once here. The returned interface is unexported; callers pass it straight into the backend constructors and never read individual fields outside this package.
`mode` is the server's mode string (read_only, safe, delete_safe, full_access). The back-compat `is_read_only` flag on server_info is derived by ServerInfo() from this value.
func NewStackqlMCPBackendService ¶
func NewStackqlMCPBackendService( txnOrchestrator tsm_physio.Orchestrator, handlerCtx handler.HandlerContext, logger *logrus.Logger, serverInfo serverBuildInfo, envFile string, ) (mcp_server.Backend, error)
func NewStackqlMCPReverseProxyService ¶
func NewStackqlMCPReverseProxyService( dsn string, db *sql.DB, handlerCtx handler.HandlerContext, logger *logrus.Logger, serverInfo serverBuildInfo, ) (mcp_server.Backend, error)
Types ¶
type StackqlInterrogator ¶
type StackqlInterrogator interface {
GetShowProviders(dto.HierarchyInput, string) (string, error)
GetShowServices(dto.HierarchyInput, string) (string, error)
GetShowResources(dto.HierarchyInput, string) (string, error)
GetShowMethods(dto.HierarchyInput) (string, error)
GetDescribeResource(dto.HierarchyInput) (string, error)
GetDescribeMethod(dto.HierarchyInput) (string, error)
GetQueryJSON(dto.QueryJSONInput) (string, error)
GetRegistryList(provider string) (string, error)
GetRegistryPull(provider, version string) (string, error)
}
StackqlInterrogator builds StackQL SQL strings for the metadata tools.
func NewSimpleStackqlInterrogator ¶
func NewSimpleStackqlInterrogator() StackqlInterrogator
Click to show internal directories.
Click to hide internal directories.