mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 16:01:55 +03:00
Add event stream module
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package mtglib
|
||||
|
||||
import (
|
||||
"net"
|
||||
"time"
|
||||
)
|
||||
|
||||
type eventBase struct {
|
||||
CreatedAt time.Time
|
||||
ConnID string
|
||||
}
|
||||
|
||||
func (e eventBase) ConnectionID() string {
|
||||
return e.ConnID
|
||||
}
|
||||
|
||||
type EventStart struct {
|
||||
eventBase
|
||||
|
||||
RemoteIP net.IP
|
||||
}
|
||||
|
||||
type EventFinish struct {
|
||||
eventBase
|
||||
}
|
||||
Reference in New Issue
Block a user