Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioFile ¶ added in v1.0.3
type AudioFile struct { // Media length in seconds Duration float64 // Audio channels AudioChannels int // Audio sample rate AudioSampleRate int // contains filtered or unexported fields }
AudioFile represents an audio file
type Content ¶ added in v1.0.3
type Content struct { // Content body Body io.ReadCloser // Body size BodySize int64 // MIME type MimeType string // Content range Range *ContentRange }
type ContentRange ¶ added in v1.1.0
type ImageFile ¶ added in v1.0.3
type ImageFile struct {
// contains filtered or unexported fields
}
ImageFile represnts an image file
type Item ¶
type Item interface {
Type() ItemType
}
Item interface should be implemented by all Dir and File items.
type StorageService ¶
type StorageService interface { // Browse get items under specific parent folder Browse(parentId string) (items []Item) // Fetch fetches file content from storage. Fetch(path string, offset int64, length int64) (content *Content, err error) }
StorageService defines a interface which should be impled by storage service. It will be used by ContentDirectory service to browse files.
Click to show internal directories.
Click to hide internal directories.