github.com/xmplusdev/xray-core@v1.8.10/common/drain/drain.go (about) 1 package drain 2 3 import "io" 4 5 //go:generate go run github.com/xmplusdev/xray-core/common/errors/errorgen 6 7 type Drainer interface { 8 AcknowledgeReceive(size int) 9 Drain(reader io.Reader) error 10 }