mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 22:04:02 +03:00
Add event stream module
This commit is contained in:
@@ -19,10 +19,21 @@ type Network interface {
|
||||
|
||||
type AntiReplayCache interface {
|
||||
SeenBefore(data []byte) bool
|
||||
Shutdown()
|
||||
}
|
||||
|
||||
type IPBlocklist interface {
|
||||
Contains(net.IP) bool
|
||||
Shutdown()
|
||||
}
|
||||
|
||||
type Event interface {
|
||||
ConnectionID() string
|
||||
}
|
||||
|
||||
type EventStream interface {
|
||||
Send(context.Context, Event)
|
||||
Shutdown()
|
||||
}
|
||||
|
||||
type Logger interface {
|
||||
|
||||
Reference in New Issue
Block a user