VinculumConfig class

Configuration options for VinculumClient

Constructors

VinculumConfig({required String baseUrl, String? authServiceUrl, String? databaseServiceUrl, String? storageServiceUrl, String? realtimeServiceUrl, Duration timeout = const Duration(seconds: 30), Duration connectTimeout = const Duration(seconds: 10), bool enableLogging = false, Level logLevel = Level.INFO, int maxRetries = 3, Duration retryDelay = const Duration(seconds: 1), bool enableAutoRefresh = true, Map<String, String> headers = const {}})
Creates a new VinculumConfig
const

Properties

authServiceUrl String?
Auth service URL (defaults to baseUrl)
final
baseUrl String
Base URL of the Vinculum API
final
connectTimeout Duration
Connection timeout
final
databaseServiceUrl String?
Database service URL (defaults to baseUrl with port 8081)
final
enableAutoRefresh bool
Enable automatic token refresh
final
enableLogging bool
Enable debug logging
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
Custom headers to include in all requests
final
logLevel → Level
Log level (when logging is enabled)
final
maxRetries int
Maximum number of retries for failed requests
final
realtimeServiceUrl String?
Realtime service URL (defaults to baseUrl with port 8082 and ws/wss protocol)
final
resolvedAuthUrl String
Gets the resolved auth service URL
no setter
resolvedDatabaseUrl String
Gets the resolved database service URL
no setter
resolvedRealtimeUrl String
Gets the resolved realtime service URL
no setter
resolvedStorageUrl String
Gets the resolved storage service URL
no setter
retryDelay Duration
Delay between retries
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storageServiceUrl String?
Storage service URL (defaults to baseUrl with port 8083)
final
timeout Duration
Request timeout
final

Methods

copyWith({String? baseUrl, String? authServiceUrl, String? databaseServiceUrl, String? storageServiceUrl, String? realtimeServiceUrl, Duration? timeout, Duration? connectTimeout, bool? enableLogging, Level? logLevel, int? maxRetries, Duration? retryDelay, bool? enableAutoRefresh, Map<String, String>? headers}) VinculumConfig
Creates a copy with the given fields replaced
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited