github.com/xtls/xray-core@v1.8.12-0.20240518155711-3168d27b0bdb/common/drain/drain.go (about)

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