Table of Contents

Class LinksServerOptions

Namespace
Foundation.Data.Doublets.Cli.Protocol
Assembly
Foundation.Data.Doublets.Cli.dll

Server configuration.

public sealed record LinksServerOptions : IEquatable<LinksServerOptions>
Inheritance
LinksServerOptions
Implements
Inherited Members

Properties

Accept

Protocols the server answers.

public AcceptedProtocols Accept { get; init; }

Property Value

AcceptedProtocols

Authenticate

The subject of a token, or null when the token is not valid: answers (auth: token), such as Authenticate(string). Null (the default) refuses every token.

public Func<string, uint?>? Authenticate { get; init; }

Property Value

Func<string, uint?>

AutoCreateMissingReferences

public bool AutoCreateMissingReferences { get; init; }

Property Value

bool

Limits

Limits applied to messages of either protocol.

public ProtocolLimits Limits { get; init; }

Property Value

ProtocolLimits

MaxPendingNotifications

Pushes a connection may have waiting before the server closes it as too slow to read them.

public int MaxPendingNotifications { get; init; }

Property Value

int

Permissions

Who may read and write what (issue #149): every connection then sees the store as its subject may, and every request is undone whole when it fails. Null (the default) serves everything to everyone.

public IPermissionPolicy<uint>? Permissions { get; init; }

Property Value

IPermissionPolicy<uint>

Remarks

A subscriber is pushed only the sides of a change its subject may read, as if Readable refused the others.

Readable

Which links a subscriber may see; null lets every subscriber see every link.

public Func<Link<uint>, bool>? Readable { get; init; }

Property Value

Func<Link<uint>, bool>

Remarks

A side of a change the subscriber may not read is left out of its push, so a link that becomes unreadable arrives as a deletion and one that becomes readable as a creation. Permissions plug in here too: with them, a subscriber sees only what its subject may read, and what this lets it see. On a server in triplet mode it judges the outer doublet of a triplet, as (index: type index).

Subject

The subject of a connection before any (auth: token); the null link (0, the default) is a guest.

public uint Subject { get; init; }

Property Value

uint

Trace

Print every request and reply to stderr.

public bool Trace { get; init; }

Property Value

bool

Triplets

Read every request as triplets (issue #152): (create: (type from to)) and the rest of TripletsOperation, over a store of doublets. A server without it answers as it always did.

public bool Triplets { get; init; }

Property Value

bool