datahub library

Classes

$Jwk
$OidcConfiguration
$OidcResponse
$ScheduleRecord
$WorkflowEvent
$WorkflowHistoryEntry
AggregateExpression
AllOfRouteMatcher
AnyOfRouteMatcher
AnyRouteMatcher
Api
ApiEndpoint
ApiEndpointDelegate
ApiMiddleware
ApiMiddlewareDelegate
ApiNode
Building-block for defining the structure of APIs using ApiService.
ApiRequest
ApiRequestExceptionResponse
ApiResponse
Defines a response to a api request.
ApiRoute
ApiService
A Service that serves HTTP-Requests.
ApplicationHost
Argon2Id
AsyncMetricCollector
AuthenticationMiddleware<T extends Session>
BasicAuth
BasicAuthMiddleware
BasicAuthProvider
ByteStreamResponse
CompareFilter
Component
Config<T>
ConfigPath
Represents a config value path.
Configuration
Context
CorsMiddleware
Middleware implementing Cross-Origin Resource Sharing (CORS).
CounterMetric
A counter metric for use with TelemetryService.
Data
Annotation for data classes.
DataBean<T extends DataObject>
Contains all "static" properties of a DataObject.
DataCodec
DataEnum
Interface for Enums used in Data classes providing the ability to define json values for enums other than name.
DataField<Data, FieldType>
DataFieldConstraint<FieldType>
DataObject<T>
DataRepository<T extends DataObject>
An interface for Components providing CRUD functionality for a DataObject.
DebugResponse
DiscardTraceExporter
TraceExporter implementation that discards traces.
ElementConstraint<E>
Applies constraint to every element of a list field.
EmptyFilter
EmptyResponse
EmptySort
EnumConstraint<FieldType extends Enum?>
Event
ExceptionEvent
An exception recorded on a span, according to the semantic conventions for exceptions (event name exception).
Expression
ExpressionSort
FileResponse
Filter
Representing filter arguments in a uniform, abstract way.
FilterGroup
Joins multiple Filter elements into a group using a FilterGroupType.
Find<T>
GaugeMetric
A gauge metric for use with TelemetryService.
GaugeSeries
Geometry
GeometryCollection
GeometryTypeConstraint<FieldType extends Geometry?>
HeaderRouteMatcher
HeadResponse
HistogramMetric
A histogram metric for use with TelemetryService.
HttpAuth
HttpClient
HttpFormData
HttpHeaders
HttpRequest
HttpResponse
HttpServer
HTTP/1.1 and HTTP/2 server.
Id
JsonDataCodec
JsonKey
JsonResponse
Jwk
Json Web Key
Jwt
Json Web Token
JwtAuthMiddleware
JwtAuthProvider
KeyCache
This service provides a centralized cache for public keys.
KeyService
LineString
LocalSpan
A span created in this process.
Lockable<T>
LockHandle
Ownership of an exclusive lock acquired through LockProvider.acquireLock.
LockProvider<T extends Object>
Provides exclusive locks identified by keys of type T.
LockProviderAdapter<S extends Object, T extends Object>
LogExporter
Receives the log messages that pass the configured log level.
LogHelper
LogListener
LogMessage
MapValueConstraint<V>
Applies constraint to every value of a map field.
MaxLengthConstraint<FieldType extends String?>
MemoryLockService<T extends Object>
Local in-memory, per-instance implementation of LockProvider.
Meta
Annotation for providing meta information to a DataObject class or fields.
MetaData
Base class for annotations providing meta information to a DataObject class or fields.
MethodRouteMatcher
Metric
MetricCollector
MetricSample
MetricsExporter
Exposes the metrics returned by onScrape, e.g. PrometheusExporter.
Mime
MinLengthConstraint<FieldType extends String?>
MultiLineString
MultiPoint
MultiPolygon
NothingFilter
Filter that matches no object, the counterpart of EmptyFilter.
OidcAuthMiddleware
OidcClient
OidcConfiguration
OidcResponse
OidcSession
OnEnter<T extends DataObject, TState extends Enum>
Runs when an element enters state, or after that if the element is still in state then.
OnSignal<T extends DataObject, TState extends Enum, TSignal extends DataObject>
Runs when a signal of type TSignal was sent for an element.
OpenTelemetryLogExporter
Exports log messages to an OpenTelemetry collector via OTLP/gRPC.
OpenTelemetryTraceExporter
Exports spans to an OpenTelemetry collector via OTLP/gRPC.
PathConfig<T>
Point
Polygon
Pool<T>
PrometheusExporter
Serves the metrics in the Prometheus text-based format.
RangeConstraint<FieldType extends num?>
RawResponse
RegExpConstraint<FieldType extends String?>
RelationId<T>
ResourceEndpoint
RestClient
RestResponse
RetryPolicy
Describes how often and how fast a failed step is retried.
RevisionData<T>
RouteMatcher
RoutePattern
Represents a route pattern against which request paths will be matched.
RoutePatternMatch
Represents a path which has been matched with a RoutePattern.
SampleGroup
Schedule
Runs run repeatedly at fixed times (UTC), exactly once per time across all instances of an application (see SchedulerService).
ScheduleContext
What a scheduled callback knows about its run.
Scheduler
Runs Schedules, provided by the built-in SchedulerService.
ScheduleRecord
The state of a Schedule, shared by all instances of an application.
SchedulerService
Runs Schedules exactly once per time across the instances of an application. Built into ApplicationHost and TestHost, configured under scheduler.
Scope
Service
ServiceHost
ServiceInstance<TService extends Service>
ServiceRegistry
Session
SignalStepContext<T extends DataObject, TSignal extends DataObject>
The context of an OnSignal step.
Sort
Representing sort arguments in a uniform, abstract way.
SortGroup
Span
The context of a span that is propagated to its children: trace id, span id and trace flags.
SpanId
StdoutLogExporter
Writes log messages to stdout.
StepContext<T extends DataObject>
What a step handler knows about the execution it is part of.
StreamListenHook<T>
SyncMetricCollector
Telemetry
Logs, metrics and traces of the application.
TelemetryService
TextResponse
Token
TokenAuth
TokenAuthMiddleware
TokenAuthProvider
TraceContext
Propagation of spans across processes according to W3C Trace Context (traceparent header).
TraceExporter
Receives the sampled spans of all tracers.
TraceId
Tracer
UpgradeHttpResponse
HttpResponse for hijacking the underlying socket. Use for protocols that upgrade from HTTP (like websocket).
ValueConfig<T>
ValueExpression
ValueSemaphore<T>
WebsocketEndpoint
WebsocketFrame
WebsocketFrameDecoder
WebsocketFrameEncoder
WebsocketResponse
WebsocketSession
Server side of an established websocket connection.
Workflow<T extends DataObject>
The workflow of the element type T.
WorkflowDescription
What a workflow consists of, see Workflow.describe.
WorkflowEvent
Something that is to happen to an element of a workflow: entering a state, or a signal.
WorkflowHistoryEntry
Something that happened to an element of a workflow.
WorkflowService<T extends DataObject, TState extends Enum>
Runs the workflow of the element type T, whose state is held by its field of type TState, and provides it as Workflow.
WorkflowSignal<T extends DataObject>
Marks a data object as signal for the workflow of the element type T.
WorkflowStep<T extends DataObject, TState extends Enum>
A unit of work of a workflow (see WorkflowService).
WorkflowStepDescription

Mixins

RevisableDataRepository<T extends DataObject>
An interface with default DataRepository adapter for Components providing CRUD functionality for revisable DataObject collections.

Constants

log → const LogHelper
wgs84 → const int
SRId of the WGS 84 (latitude / longitude) spacial reference system.
wkbM → const int
wkbSRID → const int
wkbZ → const int

Functions

addBase64Padding(String value) → String
always(dynamic _) → bool
base64UintDecode(String base64) → BigInt
Decode unsigned BigInt value from base64 with or without padding.
base64UintEncode(BigInt number) → String
Encode unsigned BigInt value as base64url without padding.
cartesianProduct<T>(Iterable<Iterable<T>> lists) → Iterable<Iterable<T>>
earliest(DateTime a, DateTime b) → DateTime
firstUpper(String input) → String
getHttpStatus(int statusCode) → String
isLowercase(int ascii) → bool
isNumber(int ascii) → bool
isUppercase(int ascii) → bool
latest(DateTime a, DateTime b) → DateTime
logFmtEncode(Map<String, String> values) → String
pass<T>(T e) → T
randomBytes(int length) → Iterable<int>
randomHexId(int parts) → String
runApp(List<Component> components, {List<String> arguments = const [], Map<String, dynamic> config = const {}}) → Future<void>
splitWords(String input) → Iterable<String>
stripBase64Padding(String value) → String
toNamingConvention(String input, NamingConvention convention) → String
uuid() → String

Typedefs

CompoundDecoder<C, T> = C Function(dynamic value, Decoder<T> encoder, {String? name})
CompoundEncoder<C, T> = dynamic Function(C value, Encoder<T> encoder)
Decoder<T> = T Function(dynamic value, {String? name})
Encoder<T> = dynamic Function(T value)
HttpRequestHandler = Future<HttpResponse> Function(HttpRequest)
MiddlewareRequestHandler<T> = FutureOr<T> Function(ApiRequest request, RequestHandler<ApiResponse> handler)
RequestHandler<T> = FutureOr<T> Function(ApiRequest request)
ScheduleCallback = Future<void> Function(ScheduleContext run)
Test<T> = bool Function(T e)

Exceptions / Errors

ApiError
Base error for when DataHub code APIs are used incorrectly by user code.
ApiException
Base exception for when things go wrong at runtime inside the DataHub API framework.
ApiRequestException
An exception that can explicitly be transformed into an ApiResponse using toResponse.
CodecException
ConfigDeclarationException
Thrown when a Config itself is declared incorrectly, e.g. an enum typed config that does not provide the list of possible values.
ConfigException
ConfigFileException
Thrown when a config file cannot be read or does not contain a valid configuration.
ConfigPathException
ConfigReferenceException
Thrown when configuration references ($-syntax) form a cycle.
ConfigTypeException
ConfigValueException
Thrown when a config value is well typed but not one of the accepted values, e.g. an unknown name for an enum typed config.
InvalidConfigPathException
Thrown when a config path is not well formed, e.g. because one of its segments is empty.
MissingIdFieldError
PoolQueueLimitException
Thrown by Pool.take when the pool is exhausted and the queue of waiting requests has reached Pool.maxQueueLength.
ResourceLockedException
A lock for a key could not be acquired.
RevisableInconsistencyException
TypeMismatchException
UnsupportedExpressionError
ValidationException
WebsocketProtocolException
An incoming frame violated RFC 6455.