You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
283 B

package events
import "fmt"
type HubConnected struct{}
func (c HubConnected) EventName() string {
return "HubConnected"
}
type HubDisconnected struct {
Reason string
}
func (d HubDisconnected) EventName() string {
return fmt.Sprintf("HubDisconnected(reason:%s)", d.Reason)
}