Directories
¶
| Path | Synopsis |
|---|---|
|
backplanepb
|
|
|
cmd
|
|
|
backplane
command
backplane is the platform server: a service on its own SDK.
|
backplane is the platform server: a service on its own SDK. |
|
examples
|
|
|
formatter/cmd/formatter
command
formatter is hello's independently compiled companion service.
|
formatter is hello's independently compiled companion service. |
|
formatter/internal/formatter
Package formatter demonstrates a standalone HTTP handler with live configuration.
|
Package formatter demonstrates a standalone HTTP handler with live configuration. |
|
hello/cmd/hello
command
hello demonstrates listeners, service discovery, live configuration and a service-owned console module.
|
hello demonstrates listeners, service discovery, live configuration and a service-owned console module. |
|
hello/internal/admin
Package admin is hello's internal API, for its console plugin only: gRPC on the platform port behind the internal secret.
|
Package admin is hello's internal API, for its console plugin only: gRPC on the platform port behind the internal secret. |
|
hello/internal/greeter
Package greeter is the service's domain component: it serves HelloService over every public protocol with one implementation.
|
Package greeter is the service's domain component: it serves HelloService over every public protocol with one implementation. |
|
hello/internal/hellotest
Package hellotest builds hello's components under a backplanetest harness, as NewState wires them, for the component tests.
|
Package hellotest builds hello's components under a backplanetest harness, as NewState wires them, for the component tests. |
|
hello/internal/legacy
Package legacy is a listener hello serves itself, outside the SDK's public port: the service announces it with a declarative route (svc.API(api.HTTP(...))) so its API appears in the catalog.
|
Package legacy is a listener hello serves itself, outside the SDK's public port: the service announces it with a declarative route (svc.API(api.HTTP(...))) so its API appears in the catalog. |
|
hello/internal/store
Package store stands in for an infra package (pkg/backplane/infra/postgres, infra/valkey): a config section plus a deps.Provider built from it.
|
Package store stands in for an infra package (pkg/backplane/infra/postgres, infra/valkey): a config section plus a deps.Provider built from it. |
|
hello/internal/web
Package web holds hello's HTTP-facing pieces: the /hello/ handler, a tiny GraphQL endpoint, the middleware and the gRPC interceptors its routes are declared with.
|
Package web holds hello's HTTP-facing pieces: the /hello/ handler, a tiny GraphQL endpoint, the middleware and the gRPC interceptors its routes are declared with. |
|
internal
|
|
|
apperrors
Package apperrors keeps application errors durably: every exception record the deployment's Collector forwards to backplane's audit/errors listener is stored whole — the exception, the record's attributes, its resource and the browser SDK's envelope (state and history) — grouped by fingerprint, bounded by burst limits and a retention, and served to the console as ErrorService.
|
Package apperrors keeps application errors durably: every exception record the deployment's Collector forwards to backplane's audit/errors listener is stored whole — the exception, the record's attributes, its resource and the browser SDK's envelope (state and history) — grouped by fingerprint, bounded by burst limits and a retention, and served to the console as ErrorService. |
|
apperrors/upstream
Package upstream forwards the exception records an installation accepted to a configured OTLP/HTTP logs endpoint: typically a service of the installation, reached over the mesh's mutual TLS, that passes them on to the vendor (where errors group across installations by tenant.id).
|
Package upstream forwards the exception records an installation accepted to a configured OTLP/HTTP logs endpoint: typically a service of the installation, reached over the mesh's mutual TLS, that passes them on to the vendor (where errors group across installations by tenant.id). |
|
audit
Package audit exposes durable control history and optionally exports its outbox over OTLP.
|
Package audit exposes durable control history and optionally exports its outbox over OTLP. |
|
config
Package config is backplane's side of Live configuration (§5.2, §5.3): overrides of the Live fields of a service kept as revisions in PostgreSQL — the source of truth — and delivered to Consul KV config/<service>/, which is only the channel the SDK reads.
|
Package config is backplane's side of Live configuration (§5.2, §5.3): overrides of the Live fields of a service kept as revisions in PostgreSQL — the source of truth — and delivered to Consul KV config/<service>/, which is only the channel the SDK reads. |
|
console
Package console is backplane's console server (§11): the HTTP the shell talks to directly or through a deployment-owned reverse proxy.
|
Package console is backplane's console server (§11): the HTTP the shell talks to directly or through a deployment-owned reverse proxy. |
|
errors/envelope
Package envelope checks the browser SDK's error envelope (app-debug v1): the JSON body of the log record @backplane-labs/backplane-errors writes.
|
Package envelope checks the browser SDK's error envelope (app-debug v1): the JSON body of the log record @backplane-labs/backplane-errors writes. |
|
obs
Package obs provides bounded, read-only queries of independent Victoria stores.
|
Package obs provides bounded, read-only queries of independent Victoria stores. |
|
obs/logsql
Package logsql builds VictoriaLogs LogsQL queries.
|
Package logsql builds VictoriaLogs LogsQL queries. |
|
otlp
Package otlp admits public OTLP/HTTP into a deployment-owned Collector.
|
Package otlp admits public OTLP/HTTP into a deployment-owned Collector. |
|
otlprecord
Package otlprecord reads OTLP log records as backplane stores them: attributes as JSON, bodies as text, times, bounded text.
|
Package otlprecord reads OTLP log records as backplane stores them: attributes as JSON, bodies as text, times, bounded text. |
|
platform
Package platform exposes deployment capabilities and bounded, cached probes.
|
Package platform exposes deployment capabilities and bounded, cached probes. |
|
registry
Package registry is backplane's view of the installation, built from Consul: the catalog (live instances and their health), the manifests the SDK writes per version, and the instance states under their sessions.
|
Package registry is backplane's view of the installation, built from Consul: the catalog (live instances and their health), the manifests the SDK writes per version, and the instance states under their sessions. |
|
server
Package server assembles the backplane server: its configuration and the State the SDK builds from it.
|
Package server assembles the backplane server: its configuration and the State the SDK builds from it. |
|
shuffle
Package shuffle randomizes the order of call targets, so concurrent callers spread over them instead of all trying the first.
|
Package shuffle randomizes the order of call targets, so concurrent callers spread over them instead of all trying the first. |
|
store
Package store is backplane's PostgreSQL: schema `backplane` (§12.1), migrations applied at start, typed queries generated by sqld.
|
Package store is backplane's PostgreSQL: schema `backplane` (§12.1), migrations applied at start, typed queries generated by sqld. |
|
testhttp
Package testhttp gives tests HTTP clients of their own.
|
Package testhttp gives tests HTTP clients of their own. |
|
pkg
|
|
|
backplane
Package backplane is the Go SDK.
|
Package backplane is the Go SDK. |
|
backplane/api
Package api configures listeners and middleware served by the SDK.
|
Package api configures listeners and middleware served by the SDK. |
|
backplane/backplanetest
Package backplanetest starts and stops a service's component tree without listeners or Consul.
|
Package backplanetest starts and stops a service's component tree without listeners or Consul. |
|
backplane/build
Package build carries what the deployment stamps into the binary at link time.
|
Package build carries what the deployment stamps into the binary at link time. |
|
backplane/config
Package config loads a service's configuration: one struct, schema from the Go type (schemapb), layers merged by xconf:
|
Package config loads a service's configuration: one struct, schema from the Go type (schemapb), layers merged by xconf: |
|
backplane/deps
Package deps is how a service is composed: a tree of components, dependencies and singletons built explicitly by the author's constructor.
|
Package deps is how a service is composed: a tree of components, dependencies and singletons built explicitly by the author's constructor. |
|
backplane/drivers/consul
Package consul installs optional discovery and live configuration.
|
Package consul installs optional discovery and live configuration. |
|
backplane/infra/nats
Package nats is a NATS connection as a dependency: a configuration section, a connection that never gives up (reconnecting with jitter, no buffering while disconnected, transitions logged), a status probe.
|
Package nats is a NATS connection as a dependency: a configuration section, a connection that never gives up (reconnecting with jitter, no buffering while disconnected, transitions logged), a status probe. |
|
backplane/infra/nats/natstest
Package natstest runs real NATS servers with JetStream inside the test's process, for tests of what uses NATS: no container, random ports, the stores in the test's temporary directory.
|
Package natstest runs real NATS servers with JetStream inside the test's process, for tests of what uses NATS: no container, random ports, the stores in the test's temporary directory. |
|
backplane/infra/postgres
Package postgres is a PostgreSQL connection as a dependency: a configuration section, a pgx pool traced and measured through the service's OpenTelemetry providers, a query log, pgtx transactions, an optional schema and migrations applied at start, a ping probe.
|
Package postgres is a PostgreSQL connection as a dependency: a configuration section, a pgx pool traced and measured through the service's OpenTelemetry providers, a query log, pgtx transactions, an optional schema and migrations applied at start, a ping probe. |
|
backplane/infra/temporal
Package temporal is a Temporal client as a dependency: a configuration section, a client traced and measured through the service's OpenTelemetry providers and logging through its logger, a health probe.
|
Package temporal is a Temporal client as a dependency: a configuration section, a client traced and measured through the service's OpenTelemetry providers and logging through its logger, a health probe. |
|
backplane/infra/temporal/temporaltest
Package temporaltest locates a real Temporal test server.
|
Package temporaltest locates a real Temporal test server. |
|
backplane/infra/valkey
Package valkey is a Valkey (Redis protocol) connection as a dependency: a configuration section, a client instrumented with the service's OpenTelemetry providers (command spans only under an operation), a PING probe and a close.
|
Package valkey is a Valkey (Redis protocol) connection as a dependency: a configuration section, a client instrumented with the service's OpenTelemetry providers (command spans only under an operation), a PING probe and a close. |
|
backplane/internal/apifiles
Package apifiles snapshots API files for content-addressed delivery.
|
Package apifiles snapshots API files for content-addressed delivery. |
|
backplane/internal/backoff
Package backoff is the SDK's retry policy as a value: bounds the author can set, run by github.com/cenkalti/backoff (exponential, jittered, so instances recovering from one outage do not retry in lockstep).
|
Package backoff is the SDK's retry policy as a value: bounds the author can set, run by github.com/cenkalti/backoff (exponential, jittered, so instances recovering from one outage do not retry in lockstep). |
|
backplane/internal/configrt
Package configrt is what the SDK core needs from a live configuration and authors do not: the effective values for instance state, schema walks for the manifest and provenance.
|
Package configrt is what the SDK core needs from a live configuration and authors do not: the effective values for instance state, schema walks for the manifest and provenance. |
|
backplane/internal/consul
Package consul keeps a service present in Consul: manifest per version, instance state under a TTL session (it disappears with the instance) and the catalog registration.
|
Package consul keeps a service present in Consul: manifest per version, instance state under a TTL session (it disappears with the instance) and the catalog registration. |
|
backplane/internal/errtext
Package errtext renders errors for telemetry: what an error's text may carry that must not leave the service is cut, the error itself is left as it is (errors.Is/As keep working).
|
Package errtext renders errors for telemetry: what an error's text may carry that must not leave the service is cut, the error itself is left as it is (errors.Is/As keep working). |
|
backplane/internal/exception
Package exception writes errors and panics as OpenTelemetry exception log records: exception.type, exception.message, exception.stacktrace and event.name=exception.
|
Package exception writes errors and panics as OpenTelemetry exception log records: exception.type, exception.message, exception.stacktrace and event.name=exception. |
|
backplane/internal/gate
Package gate admits internal API calls only while the author's tree is up: before it started they get Unavailable, and stopping waits for the calls in flight before the tree (and its dependencies) stops.
|
Package gate admits internal API calls only while the author's tree is up: before it started they get Unavailable, and stopping waits for the calls in flight before the tree (and its dependencies) stops. |
|
backplane/internal/guard
Package guard protects the platform port with the installation's internal secret: the console relay presents it, the SDK checks it.
|
Package guard protects the platform port with the installation's internal secret: the console relay presents it, the SDK checks it. |
|
backplane/internal/health
Package health is the single source of a service's health: probes are registered by kind, their composite status is cached in xprobe states, and grpc.health.v1, the HTTP probe endpoints and the Consul check all read the same states.
|
Package health is the single source of a service's health: probes are registered by kind, their composite status is cached in xprobe states, and grpc.health.v1, the HTTP probe endpoints and the Consul check all read the same states. |
|
backplane/internal/link
Package link lets SDK packages reach what public types keep private: the node behind a deps.Scope.
|
Package link lets SDK packages reach what public types keep private: the node behind a deps.Scope. |
|
backplane/internal/listener
Package listener serves gRPC and HTTP on one address through cmux.
|
Package listener serves gRPC and HTTP on one address through cmux. |
|
backplane/internal/manifest
Package manifest collects a service's declarations into a backplanev1.Manifest.
|
Package manifest collects a service's declarations into a backplanev1.Manifest. |
|
backplane/internal/metrics
Package metrics is the SDK's own instrumentation, on meter github.com/backplane-labs/backplane.
|
Package metrics is the SDK's own instrumentation, on meter github.com/backplane-labs/backplane. |
|
backplane/internal/mtls
Package mtls is mutual TLS between services: a Source (the service's live certificate, the trusted roots and who may call it — the Consul driver's follows Consul's CA and intentions) turned into the TLS of a public port and of clients, and the caller of a request: its service, taken from the SPIFFE URI of the certificate it presented.
|
Package mtls is mutual TLS between services: a Source (the service's live certificate, the trusted roots and who may call it — the Consul driver's follows Consul's CA and intentions) turned into the TLS of a public port and of clients, and the caller of a request: its service, taken from the SPIFFE URI of the certificate it presented. |
|
backplane/internal/node
Package node is the service's one lifecycle model: a tree of nodes, each with a name, a logger, an instrumentation scope, start and stop hooks, its own goroutines and an optional readiness probe.
|
Package node is the service's one lifecycle model: a tree of nodes, each with a name, a logger, an instrumentation scope, start and stop hooks, its own goroutines and an optional readiness probe. |
|
backplane/internal/recovery
Package recovery turns a panic in a request handler into an error for that request instead of a crashed process: gRPC and ws-proto calls get codes.Internal, HTTP requests 500.
|
Package recovery turns a panic in a request handler into an error for that request instead of a crashed process: gRPC and ws-proto calls get codes.Internal, HTTP requests 500. |
|
backplane/internal/routes
Package routes holds what route options configure, for the SDK core.
|
Package routes holds what route options configure, for the SDK core. |
|
backplane/internal/telemetry
Package telemetry installs OpenTelemetry through xtrace's SDK bootstrap: resource from the build identity, exporters from the standard OTEL_* environment.
|
Package telemetry installs OpenTelemetry through xtrace's SDK bootstrap: resource from the build identity, exporters from the standard OTEL_* environment. |
|
backplane/internal/testlog
Package testlog provides loggers for tests.
|
Package testlog provides loggers for tests. |
|
backplane/meshdial
Package meshdial dials the gRPC channels of the mesh: a service's api.MTLS port, a platform port.
|
Package meshdial dials the gRPC channels of the mesh: a service's api.MTLS port, a platform port. |
|
backplane/netguard
Package netguard keeps a service's requests to URLs it was handed — a webhook receiver, a push endpoint, a link to preview — off the installation's own network (SSRF).
|
Package netguard keeps a service's requests to URLs it was handed — a webhook receiver, a push endpoint, a link to preview — off the installation's own network (SSRF). |
|
backplane/seal
Package seal encrypts what a service keeps and has to read back — a receiver's signing secret, a provider's token — so a copy of its database or of a backup holds ciphertext only.
|
Package seal encrypts what a service keeps and has to read back — a receiver's signing secret, a provider's token — so a copy of its database or of a backup holds ciphertext only. |
|
backplane/tracehttp
Package tracehttp traces outbound HTTP requests without recording what a URL may hide: every request is a client span of the caller's trace whose attributes are the method, the server's host and port and the response status, never the path or the query (a device token, a webhook secret, a signed link).
|
Package tracehttp traces outbound HTTP requests without recording what a URL may hide: every request is a client span of the caller's trace whose attributes are the method, the server's host and port and the response status, never the path or the query (a device token, a webhook secret, a signed link). |
|
backplane/wsproto
Package wsproto serves services over ws-proto (protobuf RPC over WebSocket) as a managed public api: gRPC services, with the same register function as Service.GRPC so one implementation serves both, or handlers generated for ws-proto itself.
|
Package wsproto serves services over ws-proto (protobuf RPC over WebSocket) as a managed public api: gRPC services, with the same register function as Service.GRPC so one implementation serves both, or handlers generated for ws-proto itself. |
Click to show internal directories.
Click to hide internal directories.