github.com/imannamdari/v2ray-core/v5@v5.0.5/common/drain/drain.go (about)

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