-
Notifications
You must be signed in to change notification settings - Fork 9
/
utils.go
39 lines (33 loc) · 851 Bytes
/
utils.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package main
import (
"fmt"
"os"
"github.com/immesys/bw2/api"
"github.com/immesys/bw2/internal/core"
"github.com/immesys/bw2/objects"
)
func confLog(cfg *core.BWConfig) {
if cfg == nil {
api.InitLog("bw2.log")
} else {
api.InitLog(cfg.Router.LogPath)
}
}
func doExit(bw *api.BW, code int, msg string) {
if msg != "" {
fmt.Println(msg)
}
os.Exit(code)
}
func publishROs(cl *api.BosswaveClient, target string, ros []objects.RoutingObject) {
panic("We need to change this mechanism")
}
func distEntity(e *objects.Entity, cl *api.BosswaveClient, to []string) {
panic("We have not really solved this")
}
func distDOT(d *objects.DOT, cl *api.BosswaveClient, to []string) {
panic("We have not really solved this")
}
func distChain(c *objects.DChain, cl *api.BosswaveClient, to []string) {
panic("We have not really solved this")
}