EventType is now based on string
This commit is contained in:
@@ -22,7 +22,7 @@ type checkPorts struct {
|
||||
var CheckPortsEvent event.EventType
|
||||
|
||||
func init() {
|
||||
CheckPortsEvent = event.NewEventType("instance docker ports")
|
||||
CheckPortsEvent = event.EventType("instance docker ports")
|
||||
}
|
||||
|
||||
func (t *checkPorts) Name() string {
|
||||
|
||||
@@ -24,7 +24,7 @@ type checkSwarmPorts struct {
|
||||
var CheckSwarmPortsEvent event.EventType
|
||||
|
||||
func init() {
|
||||
CheckSwarmPortsEvent = event.NewEventType("instance docker swarm ports")
|
||||
CheckSwarmPortsEvent = event.EventType("instance docker swarm ports")
|
||||
}
|
||||
|
||||
func (t *checkSwarmPorts) Name() string {
|
||||
|
||||
@@ -24,7 +24,7 @@ type checkSwarmStatus struct {
|
||||
var CheckSwarmStatusEvent event.EventType
|
||||
|
||||
func init() {
|
||||
CheckSwarmStatusEvent = event.NewEventType("instance docker swarm status")
|
||||
CheckSwarmStatusEvent = event.EventType("instance docker swarm status")
|
||||
}
|
||||
|
||||
func (t *checkSwarmStatus) Name() string {
|
||||
|
||||
@@ -27,7 +27,7 @@ type collectStats struct {
|
||||
var CollectStatsEvent event.EventType
|
||||
|
||||
func init() {
|
||||
CollectStatsEvent = event.NewEventType("instance stats")
|
||||
CollectStatsEvent = event.EventType("instance stats")
|
||||
}
|
||||
|
||||
func (t *collectStats) Name() string {
|
||||
|
||||
Reference in New Issue
Block a user