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