Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Book ¶
type Book struct { AuthorSort string `json:"author_sort"` Authors string `json:"authors"` Cover string `json:"cover"` Formats []string `json:"formats"` ID int64 `json:"id"` Identifiers struct { MobiAsin string `json:"mobi-asin"` } `json:"identifiers"` Isbn string `json:"isbn"` Languages []string `json:"languages"` LastModified time.Time `json:"last_modified"` Pubdate time.Time `json:"pubdate"` Publisher string `json:"publisher"` SeriesIndex float64 `json:"series_index"` Size int64 `json:"size"` Tags []string `json:"tags"` Timestamp time.Time `json:"timestamp"` Title string `json:"title"` UUID string `json:"uuid"` }
type FileClient ¶
type FileClient interface { Stat(path string) (os.FileInfo, error) ReadStream(path string) (io.ReadCloser, error) }
func NewLocalClient ¶
func NewLocalClient(local Local) FileClient
func NewMinioClient ¶
func NewMinioClient(config Minio, ctx context.Context) (FileClient, error)
func NewWebDavClient ¶
func NewWebDavClient(webdav Webdav) FileClient
type LocalFileClient ¶
type LocalFileClient struct {
// contains filtered or unexported fields
}
func (LocalFileClient) ReadStream ¶
func (l LocalFileClient) ReadStream(p string) (io.ReadCloser, error)
type MinioFileClient ¶
type MinioFileClient struct {
// contains filtered or unexported fields
}
func (MinioFileClient) ReadStream ¶
func (m MinioFileClient) ReadStream(p string) (io.ReadCloser, error)
Click to show internal directories.
Click to hide internal directories.