Add event stream module

This commit is contained in:
9seconds
2021-03-15 21:34:53 +03:00
parent abff0cf211
commit b08d945d7c
13 changed files with 225 additions and 15 deletions
+11
View File
@@ -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 {