mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 21:04:02 +03:00
FILE / ScuroNeko/mtg
mtglib/events.go
Исходный файл и его история в репозитории.
26 lines
268 B
Go
26 lines
268 B
Go
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
|
|
}
|