api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: AGPL-3.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseURLCtxKey = &contextKey{"BaseURL"}
)

Functions

func BaseURLMiddleware

func BaseURLMiddleware(next http.Handler) http.Handler

func ConfigCheckMiddleware

func ConfigCheckMiddleware(next http.Handler) http.Handler

func GalleryCtx

func GalleryCtx(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 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

Types

type Resolver

type Resolver struct{}

func (*Resolver) Gallery

func (r *Resolver) Gallery() models.GalleryResolver

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) 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