Documentation ¶
Overview ¶
Package metadata implements metadata server features such as media indexing, media metadata lookup on external services and exposing this data via APIs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶ added in v0.1.1
func RegisterRoutes(menv *app.MetadataContext, r *mux.Router)
RegisterRoutes defines the handlers for metadata endpoints such as graphql and REST methods.
Types ¶
type ImageManager ¶
type ImageManager struct {
// contains filtered or unexported fields
}
ImageManager cache implementation for themoviedb.
func NewImageManager ¶
func NewImageManager() *ImageManager
NewImageManager creates a new instance of a image caching server for themoviedb.
func (*ImageManager) HTTPHandler ¶
func (man *ImageManager) HTTPHandler(w http.ResponseWriter, r *http.Request)
HTTPHandler responsible for proxying calls to themoviedb. If an image is already present locally it will be served from filesystem. If it's not present it will attempt to download a file into the filesystem cache from tmdb.
Directories ¶
Path | Synopsis |
---|---|
Package app wraps all other important packages.
|
Package app wraps all other important packages. |
Package auth handles various authentication methods for the metadata server.
|
Package auth handles various authentication methods for the metadata server. |
Package db handles database queries for the metadata server
|
Package db handles database queries for the metadata server |
Package helpers has a collection of helpers that help process metadata details.
|
Package helpers has a collection of helpers that help process metadata details. |
Package parsers has a collection of parsers that can extract useful information out of filenames.
|
Package parsers has a collection of parsers that can extract useful information out of filenames. |
Package resolvers implements resolvers for the GraphQL interface.
|
Package resolvers implements resolvers for the GraphQL interface. |
Click to show internal directories.
Click to hide internal directories.