Documentation
¶
Index ¶
- Constants
- func NewSeaweedfsStorage(ctx context.Context, cfg interface{}) (storage.Storage, error)
- type DirAssign
- type DirLookup
- type Location
- type SeaweedfsStorageConfig
- type Storage
- func (s *Storage) Delete(id storage.ID) error
- func (s *Storage) GetJsonByURL(method, url string, body io.Reader, v interface{}) error
- func (s *Storage) Read(id storage.ID, opts ...storage.ReadOption) (*storage.Object, error)
- func (s *Storage) Write(f *storage.Object, opts ...storage.WriteOption) (storage.ID, error)
- type UploadResponse
Constants ¶
View Source
const SeaweedfsStorageType storage.Type = "seaweedfs"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DirAssign ¶
type SeaweedfsStorageConfig ¶
type SeaweedfsStorageConfig struct {
Host string `json:"host"`
}
func (*SeaweedfsStorageConfig) DirAssignUrl ¶
func (c *SeaweedfsStorageConfig) DirAssignUrl() string
func (*SeaweedfsStorageConfig) DirLookupUrl ¶
func (c *SeaweedfsStorageConfig) DirLookupUrl(volumnID string) string
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) GetJsonByURL ¶
type UploadResponse ¶
Click to show internal directories.
Click to hide internal directories.