mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 15:34:01 +03:00
Add tests for HTTP file abstraction
This commit is contained in:
@@ -2,9 +2,12 @@ package files
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"io"
|
||||
)
|
||||
|
||||
var ErrBadHTTPClient = errors.New("incorrect http client")
|
||||
|
||||
type File interface {
|
||||
Open(context.Context) (io.ReadCloser, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user