.
This commit is contained in:
parent
8a96b8bbf0
commit
62249143f0
|
@ -13,6 +13,10 @@ func init() {
|
|||
_c.start()
|
||||
}
|
||||
|
||||
func SetRootURL(url string) {
|
||||
_c.RootURL = url
|
||||
}
|
||||
|
||||
func Send(e *events.Event) {
|
||||
_c.addEvent(e)
|
||||
}
|
||||
|
|
|
@ -8,7 +8,8 @@ import (
|
|||
)
|
||||
|
||||
type communicator struct {
|
||||
Queue chan *events.Event
|
||||
Queue chan *events.Event
|
||||
RootURL string
|
||||
}
|
||||
|
||||
func NewCommunicator() *communicator {
|
||||
|
|
|
@ -6,12 +6,12 @@ const (
|
|||
)
|
||||
|
||||
const (
|
||||
COLLECTOR_INSTALL = "http://localhost:8080/_api/collector/event/status/install"
|
||||
COLLECTOR_INSTALL = "/_api/collector/event/status/install"
|
||||
|
||||
PORT_START = "http://localhost:8080/_api/collector/event/port/status/start"
|
||||
PORT_FOUND = "http://localhost:8080/_api/collector/event/port/status/found"
|
||||
PORT_END = "http://localhost:8080/_api/collector/event/port/status/end"
|
||||
SERVICE_END = "http://localhost:8080/_api/collector/event/service/status/end"
|
||||
PORT_START = "/_api/collector/event/port/status/start"
|
||||
PORT_FOUND = "/_api/collector/event/port/status/found"
|
||||
PORT_END = "/_api/collector/event/port/status/end"
|
||||
SERVICE_END = "/_api/collector/event/service/status/end"
|
||||
)
|
||||
|
||||
type URLMaker interface {
|
||||
|
|
Loading…
Reference in New Issue
Block a user