github.com/xraypb/xray-core@v1.6.6/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 }