Documentation ¶
Index ¶
- type LocalfsBackend
- func (b LocalfsBackend) Delete(key string) error
- func (b LocalfsBackend) Exists(key string) (bool, error)
- func (b LocalfsBackend) Get(key string) ([]byte, error)
- func (b LocalfsBackend) Open(key string) (backends.ReadSeekCloser, error)
- func (b LocalfsBackend) Put(key string, r io.Reader) (int64, error)
- func (b LocalfsBackend) ServeFile(key string, w http.ResponseWriter, r *http.Request)
- func (b LocalfsBackend) Size(key string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalfsBackend ¶
type LocalfsBackend struct {
// contains filtered or unexported fields
}
func NewLocalfsBackend ¶
func NewLocalfsBackend(basePath string) LocalfsBackend
func (LocalfsBackend) Delete ¶
func (b LocalfsBackend) Delete(key string) error
func (LocalfsBackend) Open ¶
func (b LocalfsBackend) Open(key string) (backends.ReadSeekCloser, error)
func (LocalfsBackend) ServeFile ¶
func (b LocalfsBackend) ServeFile(key string, w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.