stash/vendor/github.com/99designs/gqlgen/graphql/oneshot.go
WithoutPants 7a45943e8e
Stash box client interface (#751)
* Add gql client generation files
* Update dependencies
* Add stash-box client generation to the makefile
* Move scraped scene object matchers to models
* Add stash-box to scrape with dropdown
* Add scrape scene from fingerprint in UI
2020-09-17 19:57:18 +10:00

16 lines
221 B
Go

package graphql
import "context"
func OneShot(resp *Response) ResponseHandler {
var oneshot bool
return func(context context.Context) *Response {
if oneshot {
return nil
}
oneshot = true
return resp
}
}