github.com/xmplusdev/xmcore@v1.8.11-0.20240412132628-5518b55526af/common/drain/drain.go (about)

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