the canister interface (generated) for the index canister
the canister interface (generated) for this specific actor client
Options specific to the actor client being instantiated
The IndexClient connected to the index canister that is associated with this actor
Use to call a query function on all canisters with a specific PK
Partition Key
the query function that will be executed on the canister. Takes in an actor and returns the ReturnType of F
whether the index canister needs to be hit again to fetch relevant PK canisters, or if the request can use the PK to canister cache list to query directly without needing to do so
Use to call a query function on all canisters with a specific PK, and then to reduce that result
Partition Key
the query function that will be executed on the canister. Takes in an actor and returns the ReturnType of F
function to reduce the array result of the query function being called on one or more canisters
intial value for the reducer
whether the index canister needs to be hit again to fetch relevant PK canisters, or if the request can use the PK to canister cache list to query directly without needing to do so
Note: may remove this function depending on utilization - (originally wrote this to retrieve canister specific metrics for the hackathon demo)
Similar to query, but returns a mapping of canisterId to the query result returned by that canister.
Important if want canister level information for a pk and don't want to go through the indexing canister. This is because going through the indexing canister would slow it down massively in a large multi-canister application
Partition Key
the query function that will be executed on the canister. Takes in an actor and returns the ReturnType of F
whether the index canister needs to be hit again to fetch relevant PK canisters, or if the request can use the PK to canister cache list to query directly without needing to do so
Calls an update method on a single canister actor with the specific PK and SK.
If multiple canisters with the PK exist, first makes a query call to each canister to see if the SK exists.
partition key
sort key
update function to be called on the given actor
Generated using TypeDoc
The ActorClient allows for a frontend to interface with one or many canisters that share a specific Internet Computer Actor type.