package runtime type EventKind string const ( EventStage EventKind = "stage" EventRunning EventKind = "running" ) type Event struct { Kind EventKind Message string Mode string Hostname string IPv4 string IPv6 string ProxyAddr string ProxyUser string ProxyPass string } type Reporter func(Event) func (r Reporter) Send(event Event) { if r != nil { r(event) } }