initial commit
This commit is contained in:
22
listener/ftcp/metadata.go
Normal file
22
listener/ftcp/metadata.go
Normal file
@ -0,0 +1,22 @@
|
||||
package ftcp
|
||||
|
||||
import "time"
|
||||
|
||||
const (
|
||||
defaultTTL = 60 * time.Second
|
||||
defaultReadBufferSize = 1024
|
||||
defaultReadQueueSize = 128
|
||||
defaultConnQueueSize = 128
|
||||
)
|
||||
|
||||
const (
|
||||
addr = "addr"
|
||||
)
|
||||
|
||||
type metadata struct {
|
||||
ttl time.Duration
|
||||
|
||||
readBufferSize int
|
||||
readQueueSize int
|
||||
connQueueSize int
|
||||
}
|
Reference in New Issue
Block a user