mesh-sdk: Account.BusSubject names the subject of a template stream (A-41)
Builds: design 42 zfs-owns-zfs A-41
This commit is contained in:
@@ -71,6 +71,12 @@ func (a Account) EventSubject(event string) string { return "mesh.mod." + a.Modu
|
||||
// (mesh-controller internal/broker/modstreams.go ModuleStreamSubject).
|
||||
func (a Account) StreamSubject(event string) string { return ModuleStreamSubject(a.Module, event) }
|
||||
|
||||
// BusSubject is where the module's event lands on a stream it asked for by template: mesh.bus.<module>.<local>.<event>,
|
||||
// <local> being the stream's local name in the module's `requires` (the bus module's keeper, PlanOf; A-41).
|
||||
func (a Account) BusSubject(local, event string) string {
|
||||
return "mesh.bus." + a.Module + "." + local + "." + event
|
||||
}
|
||||
|
||||
// ModuleStreamSubject is where a module's event lands on that module's own stream, for a part that names another
|
||||
// module's stream (the indexer hears the forge bridge's, the checker's) without holding its credential.
|
||||
func ModuleStreamSubject(module, event string) string {
|
||||
|
||||
Reference in New Issue
Block a user