github.com/iikira/iikira-go-utils@v0.0.0-20230610031953-f2cb11cde33a/requester/rio/rio.go (about)

     1  // Package rio rquester io 工具包
     2  package rio
     3  
     4  import (
     5  	"io"
     6  )
     7  
     8  type (
     9  	// Lener 返回32-bit长度接口
    10  	Lener interface {
    11  		Len() int
    12  	}
    13  
    14  	// Lener64 返回64-bit长度接口
    15  	Lener64 interface {
    16  		Len() int64
    17  	}
    18  
    19  	// ReaderLen 实现io.Reader和32-bit长度接口
    20  	ReaderLen interface {
    21  		io.Reader
    22  		Lener
    23  	}
    24  
    25  	// ReaderLen64 实现io.Reader和64-bit长度接口
    26  	ReaderLen64 interface {
    27  		io.Reader
    28  		Lener64
    29  	}
    30  
    31  	// ReaderAtLen64 实现io.ReaderAt和64-bit长度接口
    32  	ReaderAtLen64 interface {
    33  		io.ReaderAt
    34  		Lener64
    35  	}
    36  
    37  	// WriterLen64 实现io.Writer和64-bit长度接口
    38  	WriterLen64 interface {
    39  		io.Writer
    40  		Lener64
    41  	}
    42  
    43  	// WriteCloserAt 实现io.WriteCloser和io.WriterAt接口
    44  	WriteCloserAt interface {
    45  		io.WriteCloser
    46  		io.WriterAt
    47  	}
    48  
    49  	// WriteCloserLen64At 实现rio.WriteCloserAt和64-bit长度接口
    50  	WriteCloserLen64At interface {
    51  		WriteCloserAt
    52  		Lener64
    53  	}
    54  )