Lookup identity service — claim HyperService keys (first wins; dead winners replaceable).
services
Source src/Lookup.ts:2645 lines
export class class Identityclass Identity {
key: Identifier;
Service: {
claim: (payload: { kind: 'Http' | 'WebSocket' | 'IpcSocket'; key: string; nodeKey: string; url?: string | undefined; path?: string | undefined }) => Effect.Effect<Endpoint, DuplicateIdentity, never>;
resolve: (payload: { key: string }) => Effect.Effect<Option.Option<Endpoint>, never, never>;
};
}
Lookup identity service — claim HyperService keys (first wins; dead winners replaceable).
Identity extends import HyperlinkHyperlink.Tag<Identity>(): SchemaTagBuilder<Identity> (+2 overloads)
export Tag
Schema-driven solo: infer the service from spec; bare
local
is a compile error.
Tag<class Identityclass Identity {
key: Identifier;
Service: {
claim: (payload: { kind: 'Http' | 'WebSocket' | 'IpcSocket'; key: string; nodeKey: string; url?: string | undefined; path?: string | undefined }) => Effect.Effect<Endpoint, DuplicateIdentity, never>;
resolve: (payload: { key: string }) => Effect.Effect<Option.Option<Endpoint>, never, never>;
};
}
Lookup identity service — claim HyperService keys (first wins; dead winners replaceable).
Identity>()(
"hyperlink-ts/Lookup/Identity",
const identitySpec: {
claim: Hyperlink.Method<
typeof ClaimRequest,
typeof Endpoint,
typeof DuplicateIdentity,
false,
Hyperlink.MethodAnnotations & {
description: string
},
Hyperlink.Derive
>
resolve: Hyperlink.Method<
typeof ResolveRequest,
Schema.Option<typeof Endpoint>,
Schema.Never,
false,
Hyperlink.MethodAnnotations & {
description: string
},
Hyperlink.Derive
>
}
identitySpec,
{ kind?: string | undefinedkind },
) {}
Referenced by 3 symbols