Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
ErrNoOverlap is returned by ParseRange if first-byte-pos of all of the byte-range-spec values is greater than the content size.
Functions ¶
Types ¶
type BufferedReader ¶
func (BufferedReader) Read ¶
func (b BufferedReader) Read(p []byte) (n int, err error)
type Duration ¶
type KeepAlive ¶
type Range ¶
type Range struct {
Start, Length int64
}
Range specifies the byte range to be sent to the client.
type RateLimit ¶
RateLimit is a wrapper for rate.Limit, support json and yaml unmarshal function yaml example 1:
rate_limit: 2097152 # 2MiB
yaml example 2:
rate_limit: 2MiB
Click to show internal directories.
Click to hide internal directories.