domain

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Overview

Package domain is the root of the domain layer: one subpackage per bounded context, holding its entities, value objects and invariants.

Domain code is plain Go. It imports only the standard library, the eval module and internal/shared; never a database driver, net/http or another layer. It performs no I/O and reads no clock: callers pass time and IDs in. The linter enforces these rules.

Directories

Path Synopsis
Package access is the domain of who may do what: members and the instance admin, API tokens and their scopes, the permission catalog, the built-in roles and how a caller is judged against what an operation requires.
Package access is the domain of who may do what: members and the instance admin, API tokens and their scopes, the permission catalog, the built-in roles and how a caller is judged against what an operation requires.
Package delivery is the domain of what an environment's SDKs receive: the ruleset materialized from its flags, segments and declarations, and the evaluation of it that explains what a context is served.
Package delivery is the domain of what an environment's SDKs receive: the ruleset materialized from its flags, segments and declarations, and the evaluation of it that explains what a context is served.
Package events is the domain of the events context: the events SDKs post, how each is judged on its own, and how an exposure is judged against the experiment it names.
Package events is the domain of the events context: the events SDKs post, how each is judged on its own, and how an exposure is judged against the experiment it names.
Package experiments is the domain of experiments: a time-boxed comparison of variations of one flag on a declared unit type, with a hypothesis, an owner, weights, a traffic allocation and two public salts.
Package experiments is the domain of experiments: a time-boxed comparison of variations of one flag on a declared unit type, with a hypothesis, an owner, weights, a traffic allocation and two public salts.
Package flags is the domain of what a project serves: flags with their definition and variations, their configuration in each environment, and the segments their rules target.
Package flags is the domain of what a project serves: flags with their definition and variations, their configuration in each environment, and the segments their rules target.
Package governance is the domain of how changes are governed: the audit entry (who changed what, when, from which value to which), change requests, the events that changes cause, webhook subscriptions and their deliveries, and the notices of the change stream.
Package governance is the domain of how changes are governed: the audit entry (who changed what, when, from which value to which), change requests, the events that changes cause, webhook subscriptions and their deliveries, and the notices of the change stream.
Package identity holds the rules of the integrations that reach outside the instance to know who a person is: the auth providers an instance admin configures, and, as they arrive, the identities, sign-in attempts and directory provisioning built on them.
Package identity holds the rules of the integrations that reach outside the instance to know who a person is: the auth providers an instance admin configures, and, as they arrive, the identities, sign-in attempts and directory provisioning built on them.
Package sinks holds a project's sinks: the standing request to copy its raw events to a ClickHouse database, an S3-compatible bucket or a signed webhook.
Package sinks holds a project's sinks: the standing request to copy its raw events to a ClickHouse database, an S3-compatible bucket or a signed webhook.
Package transfer is the domain of moving a project's configuration in and out of the platform as one project document: the document's types, its byte-stable encodings in JSON and YAML, and its strict decoding.
Package transfer is the domain of moving a project's configuration in and out of the platform as one project document: the document's types, its byte-stable encodings in JSON and YAML, and its strict decoding.
firebase
Package firebase translates a Firebase Remote Config template into the flags, rules and attributes to merge into one environment: parameters become flags, conditional values become rules, and everything the translation cannot reproduce becomes a coded warning pointing into the template.
Package firebase translates a Firebase Remote Config template into the flags, rules and attributes to merge into one environment: parameters become flags, conditional values become rules, and everything the translation cannot reproduce becomes a coded warning pointing into the template.
Package workspace is the domain of where flags live: projects, their environments, and the unit types and attributes their targeting refers to.
Package workspace is the domain of where flags live: projects, their environments, and the unit types and attributes their targeting refers to.

Jump to

Keyboard shortcuts

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