started responder pool
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package responderpool
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type PoolEventKind string
|
||||
|
||||
const (
|
||||
EventPeerDisconnected PoolEventKind = "disconnected"
|
||||
EventPeerDropped PoolEventKind = "dropped"
|
||||
EventPeerEvicted PoolEventKind = "evicted"
|
||||
)
|
||||
|
||||
type PoolEvent struct {
|
||||
ID string
|
||||
Kind PoolEventKind
|
||||
}
|
||||
|
||||
type InboxMessage struct {
|
||||
ID string
|
||||
Data []byte
|
||||
ReceivedAt time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user