Documentation
¶
Overview ¶
Package trinowiring attaches the platform's dependencies to the live Trino toolkits, beside apigwwiring and graphqlwiring for their kinds.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectionStore ¶
func ConnectionStore(source ToolkitSource, store trinokit.ConnectionStore)
ConnectionStore attaches the store a Trino toolkit answers a request for a connection it does not serve from, so a connection saved on another replica has its scratch target and write setting here from the moment that save returns rather than when its announcement arrives (#2218). A nil store, a deployment whose connections do not outlive the process, attaches nothing.
func First ¶
func First(source ToolkitSource) *trinokit.Toolkit
First returns the first live Trino toolkit, or nil when none is registered.
func Toolkits ¶
func Toolkits(source ToolkitSource) []*trinokit.Toolkit
Toolkits returns the live Trino toolkits in a registry.
Types ¶
type ToolkitSource ¶
ToolkitSource is the registry the live toolkits are read from.