Documentation ¶
Index ¶
- type BufferedReadSeeker
- type HttpReadSeeker
- type HttpReadSeekerConf
- func AllowedContentTypes(types ...string) HttpReadSeekerConf
- func AllowedStatusCodes(codes ...int) HttpReadSeekerConf
- func NotAllowedStatusCodes(codes ...int) HttpReadSeekerConf
- func WithAppendHeaders(headers map[string]string) HttpReadSeekerConf
- func WithBody(body []byte) HttpReadSeekerConf
- func WithClient(client *http.Client) HttpReadSeekerConf
- func WithContentLength(contentLength int64) HttpReadSeekerConf
- func WithContext(ctx context.Context) HttpReadSeekerConf
- func WithHeaders(headers map[string]string) HttpReadSeekerConf
- func WithMethod(method string) HttpReadSeekerConf
- func WithStartOffset(offset int64) HttpReadSeekerConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferedReadSeeker ¶
type BufferedReadSeeker struct {
// contains filtered or unexported fields
}
func NewBufferedHttpReadSeeker ¶
func NewBufferedHttpReadSeeker(bufSize int, url string, conf ...HttpReadSeekerConf) *BufferedReadSeeker
func NewBufferedReadSeeker ¶
func NewBufferedReadSeeker(r io.ReadSeeker, bufSize int) *BufferedReadSeeker
func (*BufferedReadSeeker) ReadAt ¶
func (b *BufferedReadSeeker) ReadAt(p []byte, off int64) (int, error)
func (*BufferedReadSeeker) Reset ¶
func (b *BufferedReadSeeker) Reset(r io.ReadSeeker)
type HttpReadSeeker ¶
type HttpReadSeeker struct {
// contains filtered or unexported fields
}
func NewHttpReadSeeker ¶
func NewHttpReadSeeker(url string, conf ...HttpReadSeekerConf) *HttpReadSeeker
type HttpReadSeekerConf ¶
type HttpReadSeekerConf func(h *HttpReadSeeker)
func AllowedContentTypes ¶ added in v0.3.0
func AllowedContentTypes(types ...string) HttpReadSeekerConf
func AllowedStatusCodes ¶ added in v0.3.0
func AllowedStatusCodes(codes ...int) HttpReadSeekerConf
func NotAllowedStatusCodes ¶ added in v0.3.0
func NotAllowedStatusCodes(codes ...int) HttpReadSeekerConf
func WithAppendHeaders ¶
func WithAppendHeaders(headers map[string]string) HttpReadSeekerConf
func WithBody ¶
func WithBody(body []byte) HttpReadSeekerConf
func WithClient ¶
func WithClient(client *http.Client) HttpReadSeekerConf
func WithContentLength ¶
func WithContentLength(contentLength int64) HttpReadSeekerConf
func WithContext ¶
func WithContext(ctx context.Context) HttpReadSeekerConf
func WithHeaders ¶
func WithHeaders(headers map[string]string) HttpReadSeekerConf
func WithMethod ¶
func WithMethod(method string) HttpReadSeekerConf
func WithStartOffset ¶
func WithStartOffset(offset int64) HttpReadSeekerConf
Click to show internal directories.
Click to hide internal directories.