FileLoader implements support for loading and releasing file resources.
| 9 | |
| 10 | // FileLoader implements support for loading and releasing file resources. |
| 11 | type FileLoader interface { |
| 12 | // Load loads the given resource into memory. |
| 13 | Load(url string, data io.Reader) error |
| 14 | |
| 15 | // Unload releases the given resource from memory. |
| 16 | Unload(url string) error |
| 17 | |
| 18 | // Resource returns the given resource, and an error if it didn't succeed. |
| 19 | Resource(url string) (Resource, error) |
| 20 | } |
| 21 | |
| 22 | // FileLoaderRooter must be implemented by file loaders that need to known the |
| 23 | // root for their own functionning. This is generaly because they need to |
no outgoing calls
no test coverage detected