metadata

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2022 License: GPL-3.0 Imports: 15 Imported by: 1

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.
db
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL