github.com/ergo-services/ergo@v1.999.224/lib/netreadwriter.go (about)

     1  package lib
     2  
     3  import (
     4  	"io"
     5  	"time"
     6  )
     7  
     8  type NetReadWriter interface {
     9  	NetReader
    10  	NetWriter
    11  }
    12  
    13  type NetReader interface {
    14  	io.Reader
    15  	SetReadDeadline(t time.Time) error
    16  }
    17  
    18  type NetWriter interface {
    19  	io.Writer
    20  	SetWriteDeadline(t time.Time) error
    21  }