Documentation
¶
Index ¶
- Variables
- func BackgroudReqID(prefix string) string
- func FixHttpRange(start, end int64, size int64) (from, to int64, err error)
- func GenMetric(stat interface{}) (map[string]float64, error)
- func IsEIO(err error) bool
- func IsEmptyDisk(filename string) (bool, error)
- func IsFileExists(filename string) (bool, error)
- func ParseHttpRangeStr(rangeBytesStr string) (start int64, end int64, err error)
- type Reader
- type TimeReader
- type TimeWriter
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInValidFilePath = err1.New("file path is invalid")
Functions ¶
func BackgroudReqID ¶
func FixHttpRange ¶
convert [start, end] => [from , to )
func IsEmptyDisk ¶
func IsFileExists ¶
Types ¶
type TimeReader ¶
type TimeReader struct {
// contains filtered or unexported fields
}
func NewTimeReader ¶
func NewTimeReader(reader io.Reader) *TimeReader
func (*TimeReader) Duration ¶
func (r *TimeReader) Duration() time.Duration
type TimeWriter ¶
type TimeWriter struct {
// contains filtered or unexported fields
}
func NewTimeWriter ¶
func NewTimeWriter(writer io.Writer) *TimeWriter
func (*TimeWriter) Duration ¶
func (r *TimeWriter) Duration() time.Duration
Click to show internal directories.
Click to hide internal directories.