pkg/

directory
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT

Directories

Path Synopsis
Package backplane is the Go SDK.
Package backplane is the Go SDK.
api
Package api configures listeners and middleware served by the SDK.
Package api configures listeners and middleware served by the SDK.
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.
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.
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:
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.
drivers/consul
Package consul installs optional discovery and live configuration.
Package consul installs optional discovery and live configuration.
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.
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.
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.
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.
infra/temporal/temporaltest
Package temporaltest locates a real Temporal test server.
Package temporaltest locates a real Temporal test server.
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.
internal/apifiles
Package apifiles snapshots API files for content-addressed delivery.
Package apifiles snapshots API files for content-addressed delivery.
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).
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.
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.
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).
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.
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.
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.
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.
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.
internal/listener
Package listener serves gRPC and HTTP on one address through cmux.
Package listener serves gRPC and HTTP on one address through cmux.
internal/manifest
Package manifest collects a service's declarations into a backplanev1.Manifest.
Package manifest collects a service's declarations into a backplanev1.Manifest.
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.
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.
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.
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.
internal/routes
Package routes holds what route options configure, for the SDK core.
Package routes holds what route options configure, for the SDK core.
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.
internal/testlog
Package testlog provides loggers for tests.
Package testlog provides loggers for tests.
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.
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).
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.
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).
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.

Jump to

Keyboard shortcuts

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