forked from wasmCloud/provider-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.go
23 lines (20 loc) · 755 Bytes
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package provider
import (
"fmt"
)
type Topics struct {
LATTICE_LINK_GET string
LATTICE_LINK_DEL string
LATTICE_LINK_PUT string
LATTICE_SHUTDOWN string
LATTICE_HEALTH string
}
func LatticeTopics(h HostData) Topics {
return Topics{
LATTICE_LINK_GET: fmt.Sprintf("wasmbus.rpc.%s.%s.linkdefs.get", h.LatticeRPCPrefix, h.ProviderKey),
LATTICE_LINK_DEL: fmt.Sprintf("wasmbus.rpc.%s.%s.linkdefs.del", h.LatticeRPCPrefix, h.ProviderKey),
LATTICE_LINK_PUT: fmt.Sprintf("wasmbus.rpc.%s.%s.linkdefs.put", h.LatticeRPCPrefix, h.ProviderKey),
LATTICE_HEALTH: fmt.Sprintf("wasmbus.rpc.%s.%s.health", h.LatticeRPCPrefix, h.ProviderKey),
LATTICE_SHUTDOWN: fmt.Sprintf("wasmbus.rpc.%s.%s.default.shutdown", h.LatticeRPCPrefix, h.ProviderKey),
}
}