Files
tsrun/internal/runtime/runtime.go
T
dmgnr 2cfb64b496
Deploy tsrun / deploy (push) Successful in 6m23s
i feel like committing
2026-07-23 02:22:19 +00:00

29 lines
405 B
Go

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)
}
}