trinowiring

package
v1.166.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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

type ToolkitSource interface {
	All() []registry.Toolkit
}

ToolkitSource is the registry the live toolkits are read from.

Jump to

Keyboard shortcuts

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