Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Server)

Option configures a Server.

func WithDefaultTenant added in v0.0.27

func WithDefaultTenant(tenant filament.TenantID) Option

WithDefaultTenant sets the only tenant available when authentication is disabled. Authenticated requests always use the identity provider's tenant.

func WithIdentity added in v0.0.27

func WithIdentity(p identity.Provider) Option

WithIdentity sets the authentication provider. Unset leaves the API unauthenticated and AuthService unimplemented apart from its config document, the same way an unset metrics store leaves MetricsService unimplemented.

func WithLogger

func WithLogger(log filament.Logger) Option

WithLogger sets the structured logger used for API diagnostics.

func WithMetricsStore

func WithMetricsStore(ms filament.MetricsStore) Option

WithMetricsStore sets the run metrics query backend. Unset leaves MetricsService unimplemented.

func WithSecrets

func WithSecrets(secrets filament.Secrets) Option

WithSecrets sets the secrets provider used to resolve secret refs.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements the ingestion Connect API over the worker, store, orchestrator, and bus.

func New

func New(worker filament.Worker, store filament.DataStore, orch runSubmitter, bus eventbus.Bus, opts ...Option) *Server

New returns a Server wired to the given providers. worker answers every connector question; the server never holds a driver.

func (*Server) CreateConnection

CreateConnection separates schema-declared secret fields from ordinary config, writes their values to the configured secret provider, and persists only opaque references alongside the non-secret config.

func (*Server) CreatePipeline

CreatePipeline stores a new pipeline and assigns its id.

func (*Server) CreatePipelineNotifier added in v0.3.1

CreatePipelineNotifier stores secret fields and adds a rule.

func (*Server) CreatePipelineSchedule

CreatePipelineSchedule attaches the primary schedule to an existing pipeline.

func (*Server) CreatePipelineVersion

CreatePipelineVersion appends an immutable graph version to a pipeline.

func (*Server) DeleteConnection

DeleteConnection removes the connection with the requested ID.

func (*Server) DeletePipeline

DeletePipeline removes the pipeline by id. The store's delete transaction also removes the pipeline's schedules and pending scheduled runs.

func (*Server) DeletePipelineNotifier added in v0.3.1

DeletePipelineNotifier soft-deletes a rule, then removes the secrets it owned.

func (*Server) DiscoverResources

DiscoverResources configures the source and lists its selectable resources.

func (*Server) GetConnection

GetConnection returns the connection with the requested ID.

func (*Server) GetConnector

GetConnector returns the spec for one registered connector.

func (*Server) GetPipeline

GetPipeline returns a pipeline with the requested related resources.

func (*Server) GetPipelineVersion

GetPipelineVersion returns a specific immutable pipeline graph version.

func (*Server) GetResourceColumns

GetResourceColumns configures one source and returns schemas for every requested resource, avoiding one connector pool per resource in the editor.

func (*Server) GetRun

GetRun returns the run's state and per-resource progress.

func (*Server) ListConnections

ListConnections returns connections matching the request's tenant and kind filter.

func (*Server) ListConnectors

ListConnectors returns the registered source and sink specs, optionally filtered by kind.

func (*Server) ListPipelineNotifiers added in v0.3.1

ListPipelineNotifiers lists live rules, including disabled ones.

func (*Server) ListPipelineVersions

ListPipelineVersions returns all of a pipeline's graph versions, newest first.

func (*Server) ListPipelines

ListPipelines returns pipelines, optionally filtered by tenant.

func (*Server) ListRuns

ListRuns returns runs matching the request's tenant, pipeline, version, statuses, and started_at window.

func (*Server) ListTransformFunctions added in v0.21.0

ListTransformFunctions serves the transform catalog, narrowed to the functions that accept a column of the requested logical type when one is given. Types cross the wire as the logical type names resource columns use.

func (*Server) Mount

func (a *Server) Mount(mux *http.ServeMux)

Mount registers the Connect handlers on mux. AuthService mounts whether or not a provider is configured so the UI always has a config document to read; with a provider, one interceptor authenticates every procedure that is not part of the public session flow.

func (*Server) QueryAggregate

QueryAggregate returns one row per group_by value (a single "" key when group_by is unset) over [since_ms, until_ms).

func (*Server) QueryTimeseries

QueryTimeseries returns one dense, zero-filled, ascending series per group_by value (a single "" series when group_by is unset) bucketed at the requested granularity over [since_ms, until_ms).

func (*Server) RunPipeline

RunPipeline groups the pipeline's edges into per-route runs and submits each to the orchestrator.

func (*Server) SignalRun

SignalRun validates transport concerns and delegates lifecycle policy to the shared run command layer.

func (*Server) TailRun

TailRun streams run progress facts to the client, optionally replaying events synthesized from the current snapshot before live facts.

func (*Server) UpdateConnection

UpdateConnection applies changes to an existing connection, enforcing optimistic versioning.

func (*Server) UpdatePipeline

UpdatePipeline changes mutable pipeline metadata. Graph changes are stored as immutable versions through CreatePipelineVersion.

func (*Server) UpdatePipelineNotifier added in v0.3.1

UpdatePipelineNotifier replaces a rule's settings. The last write wins.

func (*Server) UpdatePipelineSchedule

UpdatePipelineSchedule replaces the writable configuration of a schedule.

func (*Server) ValidateConfig

ValidateConfig checks a connector config against its schema and, when the connector can probe connectivity, performs one live request with it so a bad credential is reported here rather than on the first run.

func (*Server) ValidatePipeline

ValidatePipeline checks every edge of a graph: the per-resource read and write modes the connector pair supports, their selected combination, and any cursor or primary-key requirements.

func (*Server) ValidateTransform added in v0.21.0

ValidateTransform parses and compiles a transform against one resource's schema, read from the source connection, exactly as a run would. Grammar and compile problems come back as issues addressed by path. The response also carries the columns the steps that compiled produce and the type of every sub-expression that compiled, on success and on failure alike.

Jump to

Keyboard shortcuts

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