Documentation ¶
Overview ¶
Package api provides the HTTP and Graphql API for the application.
Index ¶
- Variables
- func BaseURLMiddleware(next http.Handler) http.Handler
- func MarshalBoolMap(val map[string]bool) graphql.Marshaler
- func MarshalPluginConfigMap(val map[string]map[string]interface{}) graphql.Marshaler
- func MarshalTimestamp(t time.Time) graphql.Marshaler
- func SecurityHeadersMiddleware(next http.Handler) http.Handler
- func UnmarshalBoolMap(v interface{}) (map[string]bool, error)
- func UnmarshalPluginConfigMap(v interface{}) (map[string]map[string]interface{}, error)
- func UnmarshalTimestamp(v interface{}) (time.Time, error)
- type BaseFile
- type CaptionFinder
- type GalleryFile
- type GalleryFinder
- type GalleryImageFinder
- type GroupFinder
- type ImageFile
- type ImageFinder
- type LatestRelease
- type PerformerFinder
- type Resolver
- func (r *Resolver) ConfigResult() ConfigResultResolver
- func (r *Resolver) Gallery() GalleryResolver
- func (r *Resolver) GalleryChapter() GalleryChapterResolver
- func (r *Resolver) GalleryFile() GalleryFileResolver
- func (r *Resolver) Group() GroupResolver
- func (r *Resolver) Image() ImageResolver
- func (r *Resolver) ImageFile() ImageFileResolver
- func (r *Resolver) Movie() MovieResolver
- func (r *Resolver) Mutation() MutationResolver
- func (r *Resolver) Performer() PerformerResolver
- func (r *Resolver) Plugin() PluginResolver
- func (r *Resolver) Query() QueryResolver
- func (r *Resolver) SavedFilter() SavedFilterResolver
- func (r *Resolver) Scene() SceneResolver
- func (r *Resolver) SceneMarker() SceneMarkerResolver
- func (r *Resolver) Studio() StudioResolver
- func (r *Resolver) Subscription() SubscriptionResolver
- func (r *Resolver) Tag() TagResolver
- func (r *Resolver) VideoFile() VideoFileResolver
- type SceneFinder
- type SceneMarkerFinder
- type SceneMarkerTagFinder
- type Server
- type StudioFinder
- type TagFinder
- type VideoFile
- type VisualFile
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotImplemented is an error which means the given functionality isn't implemented by the API. ErrNotImplemented = errors.New("not implemented") // ErrNotSupported is returned whenever there's a test, which can be used to guard against the error, // but the given parameters aren't supported by the system. ErrNotSupported = errors.New("not supported") // ErrInput signifies errors where the input isn't valid for some reason. And no more specific error exists. ErrInput = errors.New("input error") )
View Source
var (
BaseURLCtxKey = &contextKey{"BaseURL"}
)
View Source
var ErrInvalidPackageType = errors.New("invalid package type")
View Source
var ErrOverriddenConfig = errors.New("cannot set overridden value")
View Source
var ErrTimestamp = errors.New("cannot parse Timestamp")
Functions ¶
func MarshalPluginConfigMap ¶ added in v0.25.0
func UnmarshalBoolMap ¶ added in v0.24.0
func UnmarshalPluginConfigMap ¶ added in v0.25.0
func UnmarshalTimestamp ¶ added in v0.22.0
Types ¶
type CaptionFinder ¶ added in v0.17.0
type GalleryFile ¶ added in v0.23.0
func (*GalleryFile) Fingerprints ¶ added in v0.24.0
func (f *GalleryFile) Fingerprints() []models.Fingerprint
func (GalleryFile) IsBaseFile ¶ added in v0.24.0
func (GalleryFile) IsBaseFile()
func (GalleryFile) IsVisualFile ¶ added in v0.24.0
func (GalleryFile) IsVisualFile()
type GalleryFinder ¶ added in v0.27.0
type GalleryImageFinder ¶ added in v0.27.0
type GroupFinder ¶ added in v0.27.0
type ImageFile ¶ added in v0.24.0
func (*ImageFile) Fingerprints ¶ added in v0.24.0
func (f *ImageFile) Fingerprints() []models.Fingerprint
func (ImageFile) IsBaseFile ¶ added in v0.24.0
func (ImageFile) IsBaseFile()
func (ImageFile) IsVisualFile ¶ added in v0.24.0
func (ImageFile) IsVisualFile()
type ImageFinder ¶ added in v0.17.0
type LatestRelease ¶ added in v0.19.0
func GetLatestRelease ¶ added in v0.19.0
func GetLatestRelease(ctx context.Context) (*LatestRelease, error)
GetLatestRelease gets latest release information from github API If running a build from the "master" branch, then the latest full release is used, otherwise it uses the release that is tagged with "latest_develop" which is the latest pre-release build.
type PerformerFinder ¶ added in v0.17.0
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func (*Resolver) ConfigResult ¶ added in v0.24.0
func (r *Resolver) ConfigResult() ConfigResultResolver
func (*Resolver) GalleryChapter ¶ added in v0.20.0
func (r *Resolver) GalleryChapter() GalleryChapterResolver
func (*Resolver) GalleryFile ¶ added in v0.24.0
func (r *Resolver) GalleryFile() GalleryFileResolver
func (*Resolver) SavedFilter ¶ added in v0.23.0
func (r *Resolver) SavedFilter() SavedFilterResolver
func (*Resolver) SceneMarker ¶
func (r *Resolver) SceneMarker() SceneMarkerResolver
func (*Resolver) Subscription ¶
func (r *Resolver) Subscription() SubscriptionResolver
type SceneFinder ¶ added in v0.17.0
type SceneMarkerFinder ¶ added in v0.17.0
type SceneMarkerFinder interface { models.SceneMarkerGetter FindBySceneID(ctx context.Context, sceneID int) ([]*models.SceneMarker, error) }
type SceneMarkerTagFinder ¶ added in v0.23.0
type Server ¶ added in v0.24.0
func Initialize ¶ added in v0.24.0
Initialize creates a new Server instance. It assumes that the manager.Manager instance has been initialised.
type StudioFinder ¶ added in v0.17.0
type VideoFile ¶ added in v0.24.0
func (*VideoFile) Fingerprints ¶ added in v0.24.0
func (f *VideoFile) Fingerprints() []models.Fingerprint
func (VideoFile) IsBaseFile ¶ added in v0.24.0
func (VideoFile) IsBaseFile()
func (VideoFile) IsVisualFile ¶ added in v0.24.0
func (VideoFile) IsVisualFile()
type VisualFile ¶ added in v0.24.0
type VisualFile interface {
IsVisualFile()
}
Source Files ¶
- authentication.go
- bool_map.go
- changeset_translator.go
- check_version.go
- context_keys.go
- dir_list.go
- doc.go
- error.go
- images.go
- locale.go
- models.go
- plugin_map.go
- resolver.go
- resolver_model_config.go
- resolver_model_file.go
- resolver_model_gallery.go
- resolver_model_gallery_chapter.go
- resolver_model_image.go
- resolver_model_movie.go
- resolver_model_performer.go
- resolver_model_plugin.go
- resolver_model_saved_filter.go
- resolver_model_scene.go
- resolver_model_scene_marker.go
- resolver_model_studio.go
- resolver_model_tag.go
- resolver_mutation_configure.go
- resolver_mutation_dlna.go
- resolver_mutation_file.go
- resolver_mutation_gallery.go
- resolver_mutation_group.go
- resolver_mutation_image.go
- resolver_mutation_job.go
- resolver_mutation_metadata.go
- resolver_mutation_migrate.go
- resolver_mutation_movie.go
- resolver_mutation_package.go
- resolver_mutation_performer.go
- resolver_mutation_plugin.go
- resolver_mutation_saved_filter.go
- resolver_mutation_scene.go
- resolver_mutation_scraper.go
- resolver_mutation_stash_box.go
- resolver_mutation_studio.go
- resolver_mutation_tag.go
- resolver_query_configuration.go
- resolver_query_dlna.go
- resolver_query_find_gallery.go
- resolver_query_find_group.go
- resolver_query_find_image.go
- resolver_query_find_movie.go
- resolver_query_find_performer.go
- resolver_query_find_saved_filter.go
- resolver_query_find_scene.go
- resolver_query_find_scene_marker.go
- resolver_query_find_studio.go
- resolver_query_find_tag.go
- resolver_query_job.go
- resolver_query_logs.go
- resolver_query_metadata.go
- resolver_query_package.go
- resolver_query_plugin.go
- resolver_query_scene.go
- resolver_query_scraper.go
- resolver_subscription_job.go
- resolver_subscription_logging.go
- routes.go
- routes_custom.go
- routes_downloads.go
- routes_gallery.go
- routes_group.go
- routes_image.go
- routes_performer.go
- routes_plugin.go
- routes_scene.go
- routes_studio.go
- routes_tag.go
- scraped_content.go
- server.go
- session.go
- stash_box.go
- timestamp.go
- types.go
Directories ¶
Path | Synopsis |
---|---|
Package urlbuilders provides the builders used to build URLs to pass to clients.
|
Package urlbuilders provides the builders used to build URLs to pass to clients. |
Click to show internal directories.
Click to hide internal directories.