Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cosmonic-labs/concordance
/ functions
Functions
335 in github.com/cosmonic-labs/concordance
⨍
Functions
335
◇
Types & classes
145
↓ 63 callers
Method
into
(self)
examples/bankaccount/projector/src/genimpl.rs:78
↓ 35 callers
Method
as_ref
(&self)
capability-provider/src/natsclient/mod.rs:102
↓ 32 callers
Function
deserialize
( buf: &'de [u8], )
examples/bankaccount/model/src/lib.rs:9
↓ 32 callers
Function
serialize
(data: &T)
examples/bankaccount/model/src/lib.rs:15
↓ 18 callers
Function
deserialize_json
( buf: &'de [u8], )
examples/bankaccount/aggregate/src/genimpl.rs:156
↓ 15 callers
Method
ack
Acks this message. This should be called when all work related to this message has been completed. If this is called before work is done (e.g. like se
capability-provider/src/natsclient/mod.rs:39
↓ 15 callers
Function
clear_streams
(js: async_nats::jetstream::Context)
capability-provider/src/natsclient/mod.rs:145
↓ 14 callers
Function
get
(ctx: &Context, kv: &KeyValueSender<WasmHost>, key: &str)
examples/bankaccount/projector/src/store.rs:228
↓ 11 callers
Function
create_js_context
()
capability-provider/src/natsclient/mod.rs:140
↓ 10 callers
Method
nack
(&mut self)
capability-provider/src/natsclient/mod.rs:61
↓ 9 callers
Method
ensure_streams
(&self)
capability-provider/src/natsclient/natsconn.rs:21
↓ 8 callers
Function
deserialize_json
( buf: &'de [u8], )
examples/bankaccount/projector/src/genimpl.rs:67
↓ 8 callers
Function
inbound_to_node
(g: &Graph, n: &Node)
crates/concordance-gen/src/model.rs:361
↓ 7 callers
Function
get_nodes_by_prefix
Whether a unique entity appears as an object or a subject, it is unique by its URI So this function gathers all unique entities with a given URI prefi
crates/concordance-gen/src/model.rs:327
↓ 7 callers
Function
set
(ctx: &Context, kv: &KeyValueSender<WasmHost>, key: String, value: String)
examples/bankaccount/projector/src/store.rs:203
↓ 6 callers
Function
deserialize_json
( buf: &'de [u8], )
examples/bankaccount/process_manager/src/genimpl.rs:60
↓ 6 callers
Method
fetch_state
( &self, actor_role: &ActorRole, entity_name: &str, key: &str, )
capability-provider/src/state.rs:45
↓ 6 callers
Function
generate_ld
(hm: HashMap<String, String>)
capability-provider/src/config.rs:486
↓ 4 callers
Function
decode_event
(d: &mut wasmbus_rpc::cbor::Decoder<'_>)
capability-provider/src/eventsourcing.rs:109
↓ 4 callers
Function
decode_event
(d: &mut wasmbus_rpc::cbor::Decoder<'_>)
examples/bankaccount/projector/src/eventsourcing.rs:109
↓ 4 callers
Function
decode_event
(d: &mut wasmbus_rpc::cbor::Decoder<'_>)
examples/bankaccount/process_manager/src/eventsourcing.rs:109
↓ 4 callers
Function
decode_event
(d: &mut wasmbus_rpc::cbor::Decoder<'_>)
examples/bankaccount/aggregate/src/eventsourcing.rs:109
↓ 4 callers
Function
make_link_definition
(role: &str, entity_name: &str, interest: &str)
capability-provider/src/wcprovider.rs:305
↓ 4 callers
Function
outbound_from_node
(g: &Graph, n: &Node)
crates/concordance-gen/src/model.rs:368
↓ 4 callers
Method
put_link
(&self, ld: &LinkDefinition)
capability-provider/src/wcprovider.rs:180
↓ 4 callers
Function
set_ledger
( ctx: &Context, kv: &KeyValueSender<WasmHost>, key: String, ledger: AccountLedger, )
examples/bankaccount/projector/src/store.rs:219
↓ 4 callers
Method
write_state
( &self, actor_role: &ActorRole, entity_name: &str, key: &str, state:
capability-provider/src/state.rs:22
↓ 3 callers
Function
generate_impl
Generates a single implementation for the given entity. The entity name and entity type must match the name and entity type as declared in the Turtle
crates/concordance-gen/src/lib.rs:19
↓ 3 callers
Function
generate_system_traits
Generates the set of traits as described in the model specification Turtle RDF (ttl) file. These traits are for developers to implement, while the cod
crates/concordance-gen/src/lib.rs:32
↓ 3 callers
Method
is_interested_in_event
(&self, event: &ConcordanceEvent)
capability-provider/src/config.rs:249
↓ 3 callers
Method
ok
()
examples/bankaccount/projector/src/genimpl.rs:90
↓ 3 callers
Function
state_key
(role: &ActorRole, entity_name: &str, key: &str)
capability-provider/src/state.rs:86
↓ 3 callers
Function
wait_for_command
( mut stream: impl Stream<Item = Result<AckableMessage<RawCommand>, async_nats::Error>> + Unpin, )
capability-provider/src/consumers/command_consumer.rs:220
↓ 2 callers
Method
consumer_name
(&self)
capability-provider/src/config.rs:254
↓ 2 callers
Function
decode_command_list
( d: &mut wasmbus_rpc::cbor::Decoder<'_>, )
capability-provider/src/eventsourcing.rs:46
↓ 2 callers
Function
decode_command_list
( d: &mut wasmbus_rpc::cbor::Decoder<'_>, )
examples/bankaccount/projector/src/eventsourcing.rs:46
↓ 2 callers
Function
decode_command_list
( d: &mut wasmbus_rpc::cbor::Decoder<'_>, )
examples/bankaccount/process_manager/src/eventsourcing.rs:46
↓ 2 callers
Function
decode_command_list
( d: &mut wasmbus_rpc::cbor::Decoder<'_>, )
examples/bankaccount/aggregate/src/eventsourcing.rs:46
↓ 2 callers
Function
decode_output_command
( d: &mut wasmbus_rpc::cbor::Decoder<'_>, )
capability-provider/src/eventsourcing.rs:364
↓ 2 callers
Function
decode_output_command
( d: &mut wasmbus_rpc::cbor::Decoder<'_>, )
examples/bankaccount/projector/src/eventsourcing.rs:364
↓ 2 callers
Function
decode_output_command
( d: &mut wasmbus_rpc::cbor::Decoder<'_>, )
examples/bankaccount/process_manager/src/eventsourcing.rs:364
↓ 2 callers
Function
decode_output_command
( d: &mut wasmbus_rpc::cbor::Decoder<'_>, )
examples/bankaccount/aggregate/src/eventsourcing.rs:364
↓ 2 callers
Function
encode_event
( mut e: &mut wasmbus_rpc::cbor::Encoder<W>, val: &Event, )
capability-provider/src/eventsourcing.rs:90
↓ 2 callers
Function
encode_event
( mut e: &mut wasmbus_rpc::cbor::Encoder<W>, val: &Event, )
examples/bankaccount/projector/src/eventsourcing.rs:90
↓ 2 callers
Function
encode_event
( mut e: &mut wasmbus_rpc::cbor::Encoder<W>, val: &Event, )
examples/bankaccount/process_manager/src/eventsourcing.rs:90
↓ 2 callers
Function
encode_event
( mut e: &mut wasmbus_rpc::cbor::Encoder<W>, val: &Event, )
examples/bankaccount/aggregate/src/eventsourcing.rs:90
↓ 2 callers
Method
extract_key_value_from_payload
(&self, payload: &serde_json::Value)
capability-provider/src/config.rs:107
↓ 2 callers
Method
extract_max_messages_per_batch
(&self)
capability-provider/src/config.rs:115
↓ 2 callers
Function
find_node
(g: &Graph, name: &str, prefix: &str)
crates/concordance-gen/src/model.rs:313
↓ 2 callers
Function
get_aggregates
(g: &Graph)
crates/concordance-gen/src/model.rs:271
↓ 2 callers
Function
get_commands
(g: &Graph)
crates/concordance-gen/src/model.rs:285
↓ 2 callers
Function
get_events
(g: &Graph)
crates/concordance-gen/src/model.rs:278
↓ 2 callers
Function
get_node_name
(n: &Node)
crates/concordance-gen/src/model.rs:384
↓ 2 callers
Function
get_notifiers
(g: &Graph)
crates/concordance-gen/src/model.rs:306
↓ 2 callers
Function
get_process_managers
(g: &Graph)
crates/concordance-gen/src/model.rs:292
↓ 2 callers
Function
get_projectors
(g: &Graph)
crates/concordance-gen/src/model.rs:299
↓ 2 callers
Function
publish_command
( client: &async_nats::Client, entity_name: &str, cmd: &RawCommand, )
capability-provider/src/natsclient/mod.rs:151
↓ 2 callers
Function
publish_event
( client: &async_nats::Client, event_type: &str, raw: &str, )
capability-provider/src/natsclient/mod.rs:166
↓ 2 callers
Method
remove_state
( &self, msg: &mut AckableMessage<CloudEvent>, key: &str, )
capability-provider/src/workers/aggregate_event.rs:172
↓ 2 callers
Function
wait_for_event
( mut stream: impl Stream<Item = Result<AckableMessage<CloudEvent>, async_nats::Error>> + Unpin, )
capability-provider/src/consumers/event_consumer.rs:192
↓ 1 callers
Method
add_aggregate_cmd_consumer
This is a command consumer that uses an aggregate-specific worker. This worker knows how to supply the aggregate with its internal state when applying
capability-provider/src/wcprovider.rs:118
↓ 1 callers
Method
add_aggregate_event_consumer
This will add an event consumer for aggregates that will pull events, ask the aggregate to apply the event to state, and persist the state. No events
capability-provider/src/wcprovider.rs:144
↓ 1 callers
Method
add_consumer
Adds a consumer and the appropriate worker to the provider's consumer manager, which will in turn create or bind to an existing NATS consumer
capability-provider/src/wcprovider.rs:51
↓ 1 callers
Method
add_general_event_consumer
Adds a consumer to the manager for notifiers. This is currently a generic worker because notifiers have just the simple stateless event handler contra
capability-provider/src/wcprovider.rs:68
↓ 1 callers
Method
add_process_manager_consumer
(&self, decl: &InterestDeclaration)
capability-provider/src/wcprovider.rs:91
↓ 1 callers
Method
adjust_state
( &self, msg: &mut AckableMessage<CloudEvent>, state_ack: Result<StateAck, RpcError>,
capability-provider/src/workers/aggregate_event.rs:100
↓ 1 callers
Method
apply_event
(&self, ctx: &Context, arg: &EventWithState)
capability-provider/src/eventsourcing.rs:1011
↓ 1 callers
Method
apply_stateless_event
(&self, ctx: &Context, arg: &Event)
capability-provider/src/eventsourcing.rs:1218
↓ 1 callers
Method
custom_ack
(&mut self, kind: AckKind)
capability-provider/src/natsclient/mod.rs:68
↓ 1 callers
Method
dispatch_commands
( &self, msg: &mut AckableMessage<CloudEvent>, ack: &ProcessManagerAck, )
capability-provider/src/workers/process_manager.rs:124
↓ 1 callers
Method
do_work
(&self, message: AckableMessage<Self::Message>)
capability-provider/src/consumers/manager.rs:262
↓ 1 callers
Function
encode_command_list
( mut e: &mut wasmbus_rpc::cbor::Encoder<W>, val: &CommandList, )
capability-provider/src/eventsourcing.rs:30
↓ 1 callers
Function
encode_command_list
( mut e: &mut wasmbus_rpc::cbor::Encoder<W>, val: &CommandList, )
examples/bankaccount/projector/src/eventsourcing.rs:30
↓ 1 callers
Function
encode_command_list
( mut e: &mut wasmbus_rpc::cbor::Encoder<W>, val: &CommandList, )
examples/bankaccount/process_manager/src/eventsourcing.rs:30
↓ 1 callers
Function
encode_command_list
( mut e: &mut wasmbus_rpc::cbor::Encoder<W>, val: &CommandList, )
examples/bankaccount/aggregate/src/eventsourcing.rs:30
↓ 1 callers
Function
encode_output_command
( mut e: &mut wasmbus_rpc::cbor::Encoder<W>, val: &OutputCommand, )
capability-provider/src/eventsourcing.rs:343
↓ 1 callers
Function
encode_output_command
( mut e: &mut wasmbus_rpc::cbor::Encoder<W>, val: &OutputCommand, )
examples/bankaccount/projector/src/eventsourcing.rs:343
↓ 1 callers
Function
encode_output_command
( mut e: &mut wasmbus_rpc::cbor::Encoder<W>, val: &OutputCommand, )
examples/bankaccount/process_manager/src/eventsourcing.rs:343
↓ 1 callers
Function
encode_output_command
( mut e: &mut wasmbus_rpc::cbor::Encoder<W>, val: &OutputCommand, )
examples/bankaccount/aggregate/src/eventsourcing.rs:343
↓ 1 callers
Method
event_starts_new_process
(&self, event_type: &str)
capability-provider/src/config.rs:455
↓ 1 callers
Function
generate_doc
Generate markdown documentation based on the model specification Turtle RDF (ttl) file. This function emits a number of markdown files, an index file
crates/concordance-gen/src/lib.rs:53
↓ 1 callers
Method
get_nats_connection
(&self)
capability-provider/src/config.rs:57
↓ 1 callers
Function
get_node_description
(g: &Graph, n: &Node)
crates/concordance-gen/src/model.rs:346
↓ 1 callers
Function
get_or_create_bucket
(js: &Context)
capability-provider/src/state.rs:97
↓ 1 callers
Method
handle_command
(&self, ctx: &Context, arg: &StatefulCommand)
capability-provider/src/eventsourcing.rs:991
↓ 1 callers
Method
handle_event
( &self, ctx: &Context, arg: &EventWithState, )
capability-provider/src/eventsourcing.rs:1113
↓ 1 callers
Method
has_consumer
Checks if this manager has a consumer for the given interest declaration. Returns `false` if it doesn't exist or has stopped
capability-provider/src/consumers/manager.rs:72
↓ 1 callers
Function
initialize_account
Creates a new AccountLedger instance with an initial transaction as a deposit, sets the current balance to the initial amount
examples/bankaccount/projector/src/store.rs:14
↓ 1 callers
Function
is_meta_predicate
(n: &Node)
crates/concordance-gen/src/model.rs:376
↓ 1 callers
Method
link
(&self, name: &str)
crates/concordance-gen/src/model.rs:234
↓ 1 callers
Function
lowercase_ld_keys
(ld: LinkDefinition)
capability-provider/src/config.rs:280
↓ 1 callers
Function
parse_process_manager_interest
(input: &str)
capability-provider/src/config.rs:460
↓ 1 callers
Method
prefix
(&self)
crates/concordance-gen/src/model.rs:222
↓ 1 callers
Function
publish_es_event
( nc: &async_nats::Client, event: ConcordanceEvent, )
capability-provider/src/events.rs:20
↓ 1 callers
Function
publish_raw_command
( nc: &async_nats::Client, cmd: RawCommand, stream: &str, )
capability-provider/src/events.rs:41
↓ 1 callers
Function
record_deposit
Records a deposit by adding a `LedgerLine` to the end of the previously stored ledger and recording the new balance.
examples/bankaccount/projector/src/store.rs:38
↓ 1 callers
Function
record_funds_reserved
Records a reservation of funds by adding a funds reserved transaction to the end of the ledger and recording the newly adjusted balance
examples/bankaccount/projector/src/store.rs:119
↓ 1 callers
Function
record_withdrawal
Records a withdrawal from an account by adding a withdrawal ledger item to the ledger and recording the new balance
examples/bankaccount/projector/src/store.rs:76
↓ 1 callers
Function
release_reserved_funds
Releases previously reserved funds by adding a funds released transaction to the end of the ledger and recording the updated balance
examples/bankaccount/projector/src/store.rs:161
↓ 1 callers
Method
remove_state
( &self, actor_role: &ActorRole, entity_name: &str, key: &str, )
capability-provider/src/state.rs:66
next →
1–100 of 335, ranked by callers