Documentation ¶
Index ¶
- Constants
- Variables
- func BaseURLMiddleware(next http.Handler) http.Handler
- func ConfigCheckMiddleware(next http.Handler) http.Handler
- func DatabaseCheckMiddleware(next http.Handler) http.Handler
- func GetLatestVersion(shortHash bool) (latestVersion string, latestRelease string, err error)
- func GetVersion() (string, string, string)
- func HasTLSConfig() bool
- func ImageCtx(next http.Handler) http.Handler
- func MovieCtx(next http.Handler) http.Handler
- func PerformerCtx(next http.Handler) http.Handler
- func SceneCtx(next http.Handler) http.Handler
- func Start()
- func StudioCtx(next http.Handler) http.Handler
- func TagCtx(next http.Handler) http.Handler
- type Resolver
- func (r *Resolver) Gallery() models.GalleryResolver
- func (r *Resolver) Image() models.ImageResolver
- func (r *Resolver) Movie() models.MovieResolver
- func (r *Resolver) Mutation() models.MutationResolver
- func (r *Resolver) Performer() models.PerformerResolver
- func (r *Resolver) Query() models.QueryResolver
- func (r *Resolver) Scene() models.SceneResolver
- func (r *Resolver) SceneMarker() models.SceneMarkerResolver
- func (r *Resolver) ScrapedSceneMovie() models.ScrapedSceneMovieResolver
- func (r *Resolver) ScrapedScenePerformer() models.ScrapedScenePerformerResolver
- func (r *Resolver) ScrapedSceneStudio() models.ScrapedSceneStudioResolver
- func (r *Resolver) ScrapedSceneTag() models.ScrapedSceneTagResolver
- func (r *Resolver) Studio() models.StudioResolver
- func (r *Resolver) Subscription() models.SubscriptionResolver
- func (r *Resolver) Tag() models.TagResolver
Constants ¶
View Source
const (
ContextUser key = 5
)
Variables ¶
View Source
var (
BaseURLCtxKey = &contextKey{"BaseURL"}
)
View Source
var ErrNoVersion = errors.New("no stash version")
ErrNoVersion indicates that no version information has been embedded in the stash binary
Functions ¶
func DatabaseCheckMiddleware ¶ added in v0.2.0
func GetLatestVersion ¶
GetLatestVersion gets latest version (git commit hash) 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.
func GetVersion ¶
func HasTLSConfig ¶ added in v0.3.0
func HasTLSConfig() bool
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func (*Resolver) Gallery ¶
func (r *Resolver) Gallery() models.GalleryResolver
func (*Resolver) Image ¶ added in v0.4.0
func (r *Resolver) Image() models.ImageResolver
func (*Resolver) Movie ¶ added in v0.2.0
func (r *Resolver) Movie() models.MovieResolver
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() models.MutationResolver
func (*Resolver) Performer ¶
func (r *Resolver) Performer() models.PerformerResolver
func (*Resolver) Query ¶
func (r *Resolver) Query() models.QueryResolver
func (*Resolver) Scene ¶
func (r *Resolver) Scene() models.SceneResolver
func (*Resolver) SceneMarker ¶
func (r *Resolver) SceneMarker() models.SceneMarkerResolver
func (*Resolver) ScrapedSceneMovie ¶ added in v0.3.0
func (r *Resolver) ScrapedSceneMovie() models.ScrapedSceneMovieResolver
func (*Resolver) ScrapedScenePerformer ¶ added in v0.3.0
func (r *Resolver) ScrapedScenePerformer() models.ScrapedScenePerformerResolver
func (*Resolver) ScrapedSceneStudio ¶ added in v0.3.0
func (r *Resolver) ScrapedSceneStudio() models.ScrapedSceneStudioResolver
func (*Resolver) ScrapedSceneTag ¶ added in v0.3.0
func (r *Resolver) ScrapedSceneTag() models.ScrapedSceneTagResolver
func (*Resolver) Studio ¶
func (r *Resolver) Studio() models.StudioResolver
func (*Resolver) Subscription ¶
func (r *Resolver) Subscription() models.SubscriptionResolver
func (*Resolver) Tag ¶
func (r *Resolver) Tag() models.TagResolver
Source Files ¶
- changeset_translator.go
- check_version.go
- context_keys.go
- images.go
- migrate.go
- resolver.go
- resolver_model_gallery.go
- resolver_model_image.go
- resolver_model_movie.go
- resolver_model_performer.go
- resolver_model_scene.go
- resolver_model_scene_marker.go
- resolver_model_scraper.go
- resolver_model_studio.go
- resolver_model_tag.go
- resolver_mutation_configure.go
- resolver_mutation_gallery.go
- resolver_mutation_image.go
- resolver_mutation_metadata.go
- resolver_mutation_movie.go
- resolver_mutation_performer.go
- resolver_mutation_plugin.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_find_gallery.go
- resolver_query_find_image.go
- resolver_query_find_movie.go
- resolver_query_find_performer.go
- resolver_query_find_scene.go
- resolver_query_find_scene_marker.go
- resolver_query_find_studio.go
- resolver_query_find_tag.go
- resolver_query_logs.go
- resolver_query_metadata.go
- resolver_query_plugin.go
- resolver_query_scene.go
- resolver_query_scraper.go
- resolver_subscription_logging.go
- resolver_subscription_metadata.go
- routes_downloads.go
- routes_image.go
- routes_movie.go
- routes_performer.go
- routes_scene.go
- routes_studio.go
- routes_tag.go
- server.go
- session.go
- types.go
Click to show internal directories.
Click to hide internal directories.