api

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: AGPL-3.0 Imports: 43 Imported by: 0

Documentation

Index

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 BaseURLMiddleware

func BaseURLMiddleware(next http.Handler) http.Handler

func ConfigCheckMiddleware

func ConfigCheckMiddleware(next http.Handler) http.Handler

func DatabaseCheckMiddleware added in v0.2.0

func DatabaseCheckMiddleware(next http.Handler) http.Handler

func GetLatestVersion

func GetLatestVersion(shortHash bool) (latestVersion string, latestRelease string, err error)

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 GetVersion() (string, string, string)

func HasTLSConfig added in v0.3.0

func HasTLSConfig() bool

func ImageCtx added in v0.4.0

func ImageCtx(next http.Handler) http.Handler

func MovieCtx added in v0.2.0

func MovieCtx(next http.Handler) http.Handler

func PerformerCtx

func PerformerCtx(next http.Handler) http.Handler

func SceneCtx

func SceneCtx(next http.Handler) http.Handler

func Start

func Start()

func StudioCtx

func StudioCtx(next http.Handler) http.Handler

func TagCtx added in v0.3.0

func TagCtx(next http.Handler) http.Handler

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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