Documentation ¶
Index ¶
- Constants
- Variables
- type ApplyEditInput
- type BodyModification
- type BodyModificationCriterionInput
- type BodyModificationFragment
- type BodyModificationInput
- type BreastTypeCriterionInput
- type BreastTypeEnum
- type CancelEditInput
- type Client
- func (c *Client) FindSceneByFingerprint(ctx context.Context, fingerprint FingerprintQueryInput, ...) (*FindSceneByFingerprint, error)
- func (c *Client) FindScenesByFingerprints(ctx context.Context, fingerprints []string, ...) (*FindScenesByFingerprints, error)
- func (c *Client) SearchScene(ctx context.Context, term string, ...) (*SearchScene, error)
- func (c *Client) SubmitFingerprint(ctx context.Context, input FingerprintSubmission, ...) (*SubmitFingerprintPayload, error)
- type CriterionModifier
- type DateAccuracyEnum
- type DateCriterionInput
- type Edit
- type EditComment
- type EditCommentInput
- type EditDetails
- type EditFilterType
- type EditInput
- type EditTarget
- type EditVoteInput
- type EthnicityCriterionInput
- type EthnicityEnum
- type EyeColorCriterionInput
- type EyeColorEnum
- type FindSceneByFingerprint
- type FindScenesByFingerprints
- type Fingerprint
- type FingerprintAlgorithm
- type FingerprintFragment
- type FingerprintInput
- type FingerprintQueryInput
- type FingerprintSubmission
- type FuzzyDate
- type FuzzyDateFragment
- type FuzzyDateInput
- type GenderEnum
- type HairColorCriterionInput
- type HairColorEnum
- type IDCriterionInput
- type Image
- type ImageCreateInput
- type ImageDestroyInput
- type ImageFragment
- type ImageUpdateInput
- type IntCriterionInput
- type Measurements
- type MeasurementsFragment
- type MeasurementsInput
- type MultiIDCriterionInput
- type Mutation
- type OperationEnum
- type Performer
- type PerformerAppearance
- type PerformerAppearanceFragment
- type PerformerAppearanceInput
- type PerformerCreateInput
- type PerformerDestroyInput
- type PerformerEdit
- type PerformerEditDetailsInput
- type PerformerEditInput
- type PerformerFilterType
- type PerformerFragment
- type PerformerUpdateInput
- type Query
- type QueryEditsResultType
- type QueryPerformersResultType
- type QueryScenesResultType
- type QuerySpec
- type QueryStudiosResultType
- type QueryTagsResultType
- type QueryUsersResultType
- type RoleCriterionInput
- type RoleEnum
- type Scene
- type SceneCreateInput
- type SceneDestroyInput
- type SceneEdit
- type SceneEditDetailsInput
- type SceneEditInput
- type SceneFilterType
- type SceneFragment
- type SceneUpdateInput
- type SearchScene
- type SortDirectionEnum
- type StringCriterionInput
- type Studio
- type StudioCreateInput
- type StudioDestroyInput
- type StudioEdit
- type StudioEditDetailsInput
- type StudioEditInput
- type StudioFilterType
- type StudioFragment
- type StudioUpdateInput
- type SubmitFingerprintPayload
- type Tag
- type TagCreateInput
- type TagDestroyInput
- type TagEdit
- type TagEditDetailsInput
- type TagEditInput
- type TagFilterType
- type TagFragment
- type TagUpdateInput
- type TargetTypeEnum
- type URL
- type URLFragment
- type URLInput
- type User
- type UserChangePasswordInput
- type UserCreateInput
- type UserDestroyInput
- type UserFilterType
- type UserUpdateInput
- type Version
- type VoteComment
- type VoteStatusEnum
- type VoteTypeEnum
Constants ¶
View Source
const FindSceneByFingerprintQuery = `` /* 1530-byte string literal not displayed */
View Source
const FindScenesByFingerprintsQuery = `` /* 1525-byte string literal not displayed */
View Source
const SearchSceneQuery = `` /* 1472-byte string literal not displayed */
View Source
const SubmitFingerprintQuery = `mutation SubmitFingerprint ($input: FingerprintSubmission!) {
submitFingerprint(input: $input)
}
`
Variables ¶
View Source
var AllBreastTypeEnum = []BreastTypeEnum{ BreastTypeEnumNatural, BreastTypeEnumFake, BreastTypeEnumNa, }
View Source
var AllCriterionModifier = []CriterionModifier{ CriterionModifierEquals, CriterionModifierNotEquals, CriterionModifierGreaterThan, CriterionModifierLessThan, CriterionModifierIsNull, CriterionModifierNotNull, CriterionModifierIncludesAll, CriterionModifierIncludes, CriterionModifierExcludes, }
View Source
var AllDateAccuracyEnum = []DateAccuracyEnum{ DateAccuracyEnumYear, DateAccuracyEnumMonth, DateAccuracyEnumDay, }
View Source
var AllEthnicityEnum = []EthnicityEnum{ EthnicityEnumCaucasian, EthnicityEnumBlack, EthnicityEnumAsian, EthnicityEnumIndian, EthnicityEnumLatin, EthnicityEnumMiddleEastern, EthnicityEnumMixed, EthnicityEnumOther, }
View Source
var AllEyeColorEnum = []EyeColorEnum{ EyeColorEnumBlue, EyeColorEnumBrown, EyeColorEnumGrey, EyeColorEnumGreen, EyeColorEnumHazel, EyeColorEnumRed, }
View Source
var AllFingerprintAlgorithm = []FingerprintAlgorithm{ FingerprintAlgorithmMd5, FingerprintAlgorithmOshash, }
View Source
var AllGenderEnum = []GenderEnum{ GenderEnumMale, GenderEnumFemale, GenderEnumTransgenderMale, GenderEnumTransgenderFemale, GenderEnumIntersex, }
View Source
var AllHairColorEnum = []HairColorEnum{ HairColorEnumBlonde, HairColorEnumBrunette, HairColorEnumBlack, HairColorEnumRed, HairColorEnumAuburn, HairColorEnumGrey, HairColorEnumBald, HairColorEnumVarious, HairColorEnumOther, }
View Source
var AllOperationEnum = []OperationEnum{ OperationEnumCreate, OperationEnumModify, OperationEnumDestroy, OperationEnumMerge, }
View Source
var AllRoleEnum = []RoleEnum{ RoleEnumRead, RoleEnumVote, RoleEnumEdit, RoleEnumModify, RoleEnumAdmin, }
View Source
var AllSortDirectionEnum = []SortDirectionEnum{ SortDirectionEnumAsc, SortDirectionEnumDesc, }
View Source
var AllTargetTypeEnum = []TargetTypeEnum{ TargetTypeEnumScene, TargetTypeEnumStudio, TargetTypeEnumPerformer, TargetTypeEnumTag, }
View Source
var AllVoteStatusEnum = []VoteStatusEnum{ VoteStatusEnumAccepted, VoteStatusEnumRejected, VoteStatusEnumPending, VoteStatusEnumImmediateAccepted, VoteStatusEnumImmediateRejected, }
View Source
var AllVoteTypeEnum = []VoteTypeEnum{ VoteTypeEnumComment, VoteTypeEnumAccept, VoteTypeEnumReject, VoteTypeEnumImmediateAccept, VoteTypeEnumImmediateReject, }
Functions ¶
This section is empty.
Types ¶
type ApplyEditInput ¶
type ApplyEditInput struct {
ID string `json:"id"`
}
type BodyModification ¶
type BodyModificationCriterionInput ¶
type BodyModificationCriterionInput struct { Location *string `json:"location"` Description *string `json:"description"` Modifier CriterionModifier `json:"modifier"` }
type BodyModificationInput ¶
type BreastTypeCriterionInput ¶
type BreastTypeCriterionInput struct { Value *BreastTypeEnum `json:"value"` Modifier CriterionModifier `json:"modifier"` }
type BreastTypeEnum ¶
type BreastTypeEnum string
const ( BreastTypeEnumNatural BreastTypeEnum = "NATURAL" BreastTypeEnumFake BreastTypeEnum = "FAKE" BreastTypeEnumNa BreastTypeEnum = "NA" )
func (BreastTypeEnum) IsValid ¶
func (e BreastTypeEnum) IsValid() bool
func (BreastTypeEnum) MarshalGQL ¶
func (e BreastTypeEnum) MarshalGQL(w io.Writer)
func (BreastTypeEnum) String ¶
func (e BreastTypeEnum) String() string
func (*BreastTypeEnum) UnmarshalGQL ¶
func (e *BreastTypeEnum) UnmarshalGQL(v interface{}) error
type CancelEditInput ¶
type CancelEditInput struct {
ID string `json:"id"`
}
type Client ¶
func (*Client) FindSceneByFingerprint ¶
func (c *Client) FindSceneByFingerprint(ctx context.Context, fingerprint FingerprintQueryInput, httpRequestOptions ...client.HTTPRequestOption) (*FindSceneByFingerprint, error)
func (*Client) FindScenesByFingerprints ¶
func (c *Client) FindScenesByFingerprints(ctx context.Context, fingerprints []string, httpRequestOptions ...client.HTTPRequestOption) (*FindScenesByFingerprints, error)
func (*Client) SearchScene ¶
func (c *Client) SearchScene(ctx context.Context, term string, httpRequestOptions ...client.HTTPRequestOption) (*SearchScene, error)
func (*Client) SubmitFingerprint ¶
func (c *Client) SubmitFingerprint(ctx context.Context, input FingerprintSubmission, httpRequestOptions ...client.HTTPRequestOption) (*SubmitFingerprintPayload, error)
type CriterionModifier ¶
type CriterionModifier string
const ( // = CriterionModifierEquals CriterionModifier = "EQUALS" // != CriterionModifierNotEquals CriterionModifier = "NOT_EQUALS" // > CriterionModifierGreaterThan CriterionModifier = "GREATER_THAN" // < CriterionModifierLessThan CriterionModifier = "LESS_THAN" // IS NULL CriterionModifierIsNull CriterionModifier = "IS_NULL" // IS NOT NULL CriterionModifierNotNull CriterionModifier = "NOT_NULL" // INCLUDES ALL CriterionModifierIncludesAll CriterionModifier = "INCLUDES_ALL" CriterionModifierIncludes CriterionModifier = "INCLUDES" CriterionModifierExcludes CriterionModifier = "EXCLUDES" )
func (CriterionModifier) IsValid ¶
func (e CriterionModifier) IsValid() bool
func (CriterionModifier) MarshalGQL ¶
func (e CriterionModifier) MarshalGQL(w io.Writer)
func (CriterionModifier) String ¶
func (e CriterionModifier) String() string
func (*CriterionModifier) UnmarshalGQL ¶
func (e *CriterionModifier) UnmarshalGQL(v interface{}) error
type DateAccuracyEnum ¶
type DateAccuracyEnum string
const ( DateAccuracyEnumYear DateAccuracyEnum = "YEAR" DateAccuracyEnumMonth DateAccuracyEnum = "MONTH" DateAccuracyEnumDay DateAccuracyEnum = "DAY" )
func (DateAccuracyEnum) IsValid ¶
func (e DateAccuracyEnum) IsValid() bool
func (DateAccuracyEnum) MarshalGQL ¶
func (e DateAccuracyEnum) MarshalGQL(w io.Writer)
func (DateAccuracyEnum) String ¶
func (e DateAccuracyEnum) String() string
func (*DateAccuracyEnum) UnmarshalGQL ¶
func (e *DateAccuracyEnum) UnmarshalGQL(v interface{}) error
type DateCriterionInput ¶
type DateCriterionInput struct { Value string `json:"value"` Modifier CriterionModifier `json:"modifier"` }
type Edit ¶
type Edit struct { ID string `json:"id"` User *User `json:"user"` // Object being edited - null if creating a new object Target EditTarget `json:"target"` TargetType TargetTypeEnum `json:"target_type"` // Objects to merge with the target. Only applicable to merges MergeSources []EditTarget `json:"merge_sources"` Operation OperationEnum `json:"operation"` Details EditDetails `json:"details"` Comments []*EditComment `json:"comments"` Votes []*VoteComment `json:"votes"` // = Accepted - Rejected VoteCount int `json:"vote_count"` Status VoteStatusEnum `json:"status"` Applied bool `json:"applied"` Created time.Time `json:"created"` }
type EditComment ¶
type EditCommentInput ¶
type EditDetails ¶
type EditDetails interface {
IsEditDetails()
}
type EditFilterType ¶
type EditFilterType struct { // Filter by user id UserID *string `json:"user_id"` // Filter by status Status *VoteStatusEnum `json:"status"` // Filter by operation Operation *OperationEnum `json:"operation"` // Filter by vote count VoteCount *IntCriterionInput `json:"vote_count"` // Filter by applied status Applied *bool `json:"applied"` // Filter by target type TargetType *TargetTypeEnum `json:"target_type"` // Filter by target id TargetID *string `json:"target_id"` }
type EditInput ¶
type EditInput struct { // Not required for create type ID *string `json:"id"` Operation OperationEnum `json:"operation"` // Required for amending an existing edit EditID *string `json:"edit_id"` // Only required for merge type MergeSourceIds []string `json:"merge_source_ids"` Comment *string `json:"comment"` }
type EditTarget ¶
type EditTarget interface {
IsEditTarget()
}
type EditVoteInput ¶
type EditVoteInput struct { ID string `json:"id"` Comment *string `json:"comment"` Type VoteTypeEnum `json:"type"` }
type EthnicityCriterionInput ¶
type EthnicityCriterionInput struct { Value *EthnicityEnum `json:"value"` Modifier CriterionModifier `json:"modifier"` }
type EthnicityEnum ¶
type EthnicityEnum string
const ( EthnicityEnumCaucasian EthnicityEnum = "CAUCASIAN" EthnicityEnumBlack EthnicityEnum = "BLACK" EthnicityEnumAsian EthnicityEnum = "ASIAN" EthnicityEnumIndian EthnicityEnum = "INDIAN" EthnicityEnumLatin EthnicityEnum = "LATIN" EthnicityEnumMiddleEastern EthnicityEnum = "MIDDLE_EASTERN" EthnicityEnumMixed EthnicityEnum = "MIXED" EthnicityEnumOther EthnicityEnum = "OTHER" )
func (EthnicityEnum) IsValid ¶
func (e EthnicityEnum) IsValid() bool
func (EthnicityEnum) MarshalGQL ¶
func (e EthnicityEnum) MarshalGQL(w io.Writer)
func (EthnicityEnum) String ¶
func (e EthnicityEnum) String() string
func (*EthnicityEnum) UnmarshalGQL ¶
func (e *EthnicityEnum) UnmarshalGQL(v interface{}) error
type EyeColorCriterionInput ¶
type EyeColorCriterionInput struct { Value *EyeColorEnum `json:"value"` Modifier CriterionModifier `json:"modifier"` }
type EyeColorEnum ¶
type EyeColorEnum string
const ( EyeColorEnumBlue EyeColorEnum = "BLUE" EyeColorEnumBrown EyeColorEnum = "BROWN" EyeColorEnumGrey EyeColorEnum = "GREY" EyeColorEnumGreen EyeColorEnum = "GREEN" EyeColorEnumHazel EyeColorEnum = "HAZEL" EyeColorEnumRed EyeColorEnum = "RED" )
func (EyeColorEnum) IsValid ¶
func (e EyeColorEnum) IsValid() bool
func (EyeColorEnum) MarshalGQL ¶
func (e EyeColorEnum) MarshalGQL(w io.Writer)
func (EyeColorEnum) String ¶
func (e EyeColorEnum) String() string
func (*EyeColorEnum) UnmarshalGQL ¶
func (e *EyeColorEnum) UnmarshalGQL(v interface{}) error
type FindSceneByFingerprint ¶
type FindSceneByFingerprint struct {
FindSceneByFingerprint []*SceneFragment "json:\"findSceneByFingerprint\" graphql:\"findSceneByFingerprint\""
}
type FindScenesByFingerprints ¶
type FindScenesByFingerprints struct {
FindScenesByFingerprints []*SceneFragment "json:\"findScenesByFingerprints\" graphql:\"findScenesByFingerprints\""
}
type Fingerprint ¶
type Fingerprint struct { Hash string `json:"hash"` Algorithm FingerprintAlgorithm `json:"algorithm"` Duration int `json:"duration"` }
type FingerprintAlgorithm ¶
type FingerprintAlgorithm string
const ( FingerprintAlgorithmMd5 FingerprintAlgorithm = "MD5" FingerprintAlgorithmOshash FingerprintAlgorithm = "OSHASH" )
func (FingerprintAlgorithm) IsValid ¶
func (e FingerprintAlgorithm) IsValid() bool
func (FingerprintAlgorithm) MarshalGQL ¶
func (e FingerprintAlgorithm) MarshalGQL(w io.Writer)
func (FingerprintAlgorithm) String ¶
func (e FingerprintAlgorithm) String() string
func (*FingerprintAlgorithm) UnmarshalGQL ¶
func (e *FingerprintAlgorithm) UnmarshalGQL(v interface{}) error
type FingerprintFragment ¶
type FingerprintFragment struct { Algorithm FingerprintAlgorithm "json:\"algorithm\" graphql:\"algorithm\"" Hash string "json:\"hash\" graphql:\"hash\"" Duration int "json:\"duration\" graphql:\"duration\"" }
type FingerprintInput ¶
type FingerprintInput struct { Hash string `json:"hash"` Algorithm FingerprintAlgorithm `json:"algorithm"` Duration int `json:"duration"` }
type FingerprintQueryInput ¶
type FingerprintQueryInput struct { Hash string `json:"hash"` Algorithm FingerprintAlgorithm `json:"algorithm"` }
type FingerprintSubmission ¶
type FingerprintSubmission struct { SceneID string `json:"scene_id"` Fingerprint *FingerprintInput `json:"fingerprint"` }
type FuzzyDate ¶
type FuzzyDate struct { Date string `json:"date"` Accuracy DateAccuracyEnum `json:"accuracy"` }
type FuzzyDateFragment ¶
type FuzzyDateFragment struct { Date string "json:\"date\" graphql:\"date\"" Accuracy DateAccuracyEnum "json:\"accuracy\" graphql:\"accuracy\"" }
type FuzzyDateInput ¶
type FuzzyDateInput struct { Date string `json:"date"` Accuracy DateAccuracyEnum `json:"accuracy"` }
type GenderEnum ¶
type GenderEnum string
const ( GenderEnumMale GenderEnum = "MALE" GenderEnumFemale GenderEnum = "FEMALE" GenderEnumTransgenderMale GenderEnum = "TRANSGENDER_MALE" GenderEnumTransgenderFemale GenderEnum = "TRANSGENDER_FEMALE" GenderEnumIntersex GenderEnum = "INTERSEX" )
func (GenderEnum) IsValid ¶
func (e GenderEnum) IsValid() bool
func (GenderEnum) MarshalGQL ¶
func (e GenderEnum) MarshalGQL(w io.Writer)
func (GenderEnum) String ¶
func (e GenderEnum) String() string
func (*GenderEnum) UnmarshalGQL ¶
func (e *GenderEnum) UnmarshalGQL(v interface{}) error
type HairColorCriterionInput ¶
type HairColorCriterionInput struct { Value *HairColorEnum `json:"value"` Modifier CriterionModifier `json:"modifier"` }
type HairColorEnum ¶
type HairColorEnum string
const ( HairColorEnumBlonde HairColorEnum = "BLONDE" HairColorEnumBrunette HairColorEnum = "BRUNETTE" HairColorEnumBlack HairColorEnum = "BLACK" HairColorEnumRed HairColorEnum = "RED" HairColorEnumAuburn HairColorEnum = "AUBURN" HairColorEnumGrey HairColorEnum = "GREY" HairColorEnumBald HairColorEnum = "BALD" HairColorEnumVarious HairColorEnum = "VARIOUS" HairColorEnumOther HairColorEnum = "OTHER" )
func (HairColorEnum) IsValid ¶
func (e HairColorEnum) IsValid() bool
func (HairColorEnum) MarshalGQL ¶
func (e HairColorEnum) MarshalGQL(w io.Writer)
func (HairColorEnum) String ¶
func (e HairColorEnum) String() string
func (*HairColorEnum) UnmarshalGQL ¶
func (e *HairColorEnum) UnmarshalGQL(v interface{}) error
type IDCriterionInput ¶
type IDCriterionInput struct { Value []string `json:"value"` Modifier CriterionModifier `json:"modifier"` }
type ImageCreateInput ¶
type ImageCreateInput struct {
URL string `json:"url"`
}
type ImageDestroyInput ¶
type ImageDestroyInput struct {
ID string `json:"id"`
}
type ImageFragment ¶
type ImageUpdateInput ¶
type IntCriterionInput ¶
type IntCriterionInput struct { Value int `json:"value"` Modifier CriterionModifier `json:"modifier"` }
type Measurements ¶
type MeasurementsFragment ¶
type MeasurementsInput ¶
type MultiIDCriterionInput ¶
type MultiIDCriterionInput struct { Value []string `json:"value"` Modifier CriterionModifier `json:"modifier"` }
type Mutation ¶
type Mutation struct { SceneCreate *Scene "json:\"sceneCreate\" graphql:\"sceneCreate\"" SceneUpdate *Scene "json:\"sceneUpdate\" graphql:\"sceneUpdate\"" SceneDestroy bool "json:\"sceneDestroy\" graphql:\"sceneDestroy\"" PerformerCreate *Performer "json:\"performerCreate\" graphql:\"performerCreate\"" PerformerUpdate *Performer "json:\"performerUpdate\" graphql:\"performerUpdate\"" PerformerDestroy bool "json:\"performerDestroy\" graphql:\"performerDestroy\"" StudioCreate *Studio "json:\"studioCreate\" graphql:\"studioCreate\"" StudioUpdate *Studio "json:\"studioUpdate\" graphql:\"studioUpdate\"" StudioDestroy bool "json:\"studioDestroy\" graphql:\"studioDestroy\"" TagCreate *Tag "json:\"tagCreate\" graphql:\"tagCreate\"" TagUpdate *Tag "json:\"tagUpdate\" graphql:\"tagUpdate\"" TagDestroy bool "json:\"tagDestroy\" graphql:\"tagDestroy\"" UserCreate *User "json:\"userCreate\" graphql:\"userCreate\"" UserUpdate *User "json:\"userUpdate\" graphql:\"userUpdate\"" UserDestroy bool "json:\"userDestroy\" graphql:\"userDestroy\"" ImageCreate *Image "json:\"imageCreate\" graphql:\"imageCreate\"" ImageUpdate *Image "json:\"imageUpdate\" graphql:\"imageUpdate\"" ImageDestroy bool "json:\"imageDestroy\" graphql:\"imageDestroy\"" RegenerateAPIKey string "json:\"regenerateAPIKey\" graphql:\"regenerateAPIKey\"" ChangePassword bool "json:\"changePassword\" graphql:\"changePassword\"" SceneEdit Edit "json:\"sceneEdit\" graphql:\"sceneEdit\"" PerformerEdit Edit "json:\"performerEdit\" graphql:\"performerEdit\"" StudioEdit Edit "json:\"studioEdit\" graphql:\"studioEdit\"" TagEdit Edit "json:\"tagEdit\" graphql:\"tagEdit\"" EditVote Edit "json:\"editVote\" graphql:\"editVote\"" EditComment Edit "json:\"editComment\" graphql:\"editComment\"" ApplyEdit Edit "json:\"applyEdit\" graphql:\"applyEdit\"" CancelEdit Edit "json:\"cancelEdit\" graphql:\"cancelEdit\"" SubmitFingerprint bool "json:\"submitFingerprint\" graphql:\"submitFingerprint\"" }
type OperationEnum ¶
type OperationEnum string
const ( OperationEnumCreate OperationEnum = "CREATE" OperationEnumModify OperationEnum = "MODIFY" OperationEnumDestroy OperationEnum = "DESTROY" OperationEnumMerge OperationEnum = "MERGE" )
func (OperationEnum) IsValid ¶
func (e OperationEnum) IsValid() bool
func (OperationEnum) MarshalGQL ¶
func (e OperationEnum) MarshalGQL(w io.Writer)
func (OperationEnum) String ¶
func (e OperationEnum) String() string
func (*OperationEnum) UnmarshalGQL ¶
func (e *OperationEnum) UnmarshalGQL(v interface{}) error
type Performer ¶
type Performer struct { ID string `json:"id"` Name string `json:"name"` Disambiguation *string `json:"disambiguation"` Aliases []string `json:"aliases"` Gender *GenderEnum `json:"gender"` Urls []*URL `json:"urls"` Birthdate *FuzzyDate `json:"birthdate"` Age *int `json:"age"` Ethnicity *EthnicityEnum `json:"ethnicity"` Country *string `json:"country"` EyeColor *EyeColorEnum `json:"eye_color"` HairColor *HairColorEnum `json:"hair_color"` // Height in cm Height *int `json:"height"` Measurements *Measurements `json:"measurements"` BreastType *BreastTypeEnum `json:"breast_type"` CareerStartYear *int `json:"career_start_year"` CareerEndYear *int `json:"career_end_year"` Tattoos []*BodyModification `json:"tattoos"` Piercings []*BodyModification `json:"piercings"` Images []*Image `json:"images"` Deleted bool `json:"deleted"` }
func (Performer) IsEditTarget ¶
func (Performer) IsEditTarget()
type PerformerAppearance ¶
type PerformerAppearanceFragment ¶
type PerformerAppearanceFragment struct { As *string "json:\"as\" graphql:\"as\"" Performer PerformerFragment "json:\"performer\" graphql:\"performer\"" }
type PerformerCreateInput ¶
type PerformerCreateInput struct { Name string `json:"name"` Disambiguation *string `json:"disambiguation"` Aliases []string `json:"aliases"` Gender *GenderEnum `json:"gender"` Urls []*URLInput `json:"urls"` Birthdate *FuzzyDateInput `json:"birthdate"` Ethnicity *EthnicityEnum `json:"ethnicity"` Country *string `json:"country"` EyeColor *EyeColorEnum `json:"eye_color"` HairColor *HairColorEnum `json:"hair_color"` Height *int `json:"height"` Measurements *MeasurementsInput `json:"measurements"` BreastType *BreastTypeEnum `json:"breast_type"` CareerStartYear *int `json:"career_start_year"` CareerEndYear *int `json:"career_end_year"` Tattoos []*BodyModificationInput `json:"tattoos"` Piercings []*BodyModificationInput `json:"piercings"` ImageIds []string `json:"image_ids"` }
type PerformerDestroyInput ¶
type PerformerDestroyInput struct {
ID string `json:"id"`
}
type PerformerEdit ¶
type PerformerEdit struct { Name *string `json:"name"` Disambiguation *string `json:"disambiguation"` AddedAliases []string `json:"added_aliases"` RemovedAliases []string `json:"removed_aliases"` Gender *GenderEnum `json:"gender"` AddedUrls []*URL `json:"added_urls"` RemovedUrls []*URL `json:"removed_urls"` Birthdate *FuzzyDate `json:"birthdate"` Ethnicity *EthnicityEnum `json:"ethnicity"` Country *string `json:"country"` EyeColor *EyeColorEnum `json:"eye_color"` HairColor *HairColorEnum `json:"hair_color"` // Height in cm Height *int `json:"height"` Measurements *Measurements `json:"measurements"` BreastType *BreastTypeEnum `json:"breast_type"` CareerStartYear *int `json:"career_start_year"` CareerEndYear *int `json:"career_end_year"` AddedTattoos []*BodyModification `json:"added_tattoos"` RemovedTattoos []*BodyModification `json:"removed_tattoos"` AddedPiercings []*BodyModification `json:"added_piercings"` RemovedPiercings []*BodyModification `json:"removed_piercings"` AddedImages []*Image `json:"added_images"` RemovedImages []*Image `json:"removed_images"` }
func (PerformerEdit) IsEditDetails ¶
func (PerformerEdit) IsEditDetails()
type PerformerEditDetailsInput ¶
type PerformerEditDetailsInput struct { Name *string `json:"name"` Disambiguation *string `json:"disambiguation"` Aliases []string `json:"aliases"` Gender *GenderEnum `json:"gender"` Urls []*URLInput `json:"urls"` Birthdate *FuzzyDateInput `json:"birthdate"` Ethnicity *EthnicityEnum `json:"ethnicity"` Country *string `json:"country"` EyeColor *EyeColorEnum `json:"eye_color"` HairColor *HairColorEnum `json:"hair_color"` Height *int `json:"height"` Measurements *MeasurementsInput `json:"measurements"` BreastType *BreastTypeEnum `json:"breast_type"` CareerStartYear *int `json:"career_start_year"` CareerEndYear *int `json:"career_end_year"` Tattoos []*BodyModificationInput `json:"tattoos"` Piercings []*BodyModificationInput `json:"piercings"` ImageIds []string `json:"image_ids"` }
type PerformerEditInput ¶
type PerformerEditInput struct { Edit *EditInput `json:"edit"` // Not required for destroy type Details *PerformerEditDetailsInput `json:"details"` }
type PerformerFilterType ¶
type PerformerFilterType struct { // Searches name and aliases - assumes like query unless quoted Names *string `json:"names"` // Searches name only - assumes like query unless quoted Name *string `json:"name"` // Search aliases only - assumes like query unless quoted Alias *string `json:"alias"` Disambiguation *StringCriterionInput `json:"disambiguation"` Gender *GenderEnum `json:"gender"` // Filter to search urls - assumes like query unless quoted URL *string `json:"url"` Birthdate *DateCriterionInput `json:"birthdate"` BirthYear *IntCriterionInput `json:"birth_year"` Age *IntCriterionInput `json:"age"` Ethnicity *EthnicityCriterionInput `json:"ethnicity"` Country *StringCriterionInput `json:"country"` EyeColor *EyeColorCriterionInput `json:"eye_color"` HairColor *HairColorCriterionInput `json:"hair_color"` Height *IntCriterionInput `json:"height"` CupSize *StringCriterionInput `json:"cup_size"` BandSize *IntCriterionInput `json:"band_size"` WaistSize *IntCriterionInput `json:"waist_size"` HipSize *IntCriterionInput `json:"hip_size"` BreastType *BreastTypeCriterionInput `json:"breast_type"` CareerStartYear *IntCriterionInput `json:"career_start_year"` CareerEndYear *IntCriterionInput `json:"career_end_year"` Tattoos *BodyModificationCriterionInput `json:"tattoos"` Piercings *BodyModificationCriterionInput `json:"piercings"` }
type PerformerFragment ¶
type PerformerFragment struct { ID string "json:\"id\" graphql:\"id\"" Name string "json:\"name\" graphql:\"name\"" Disambiguation *string "json:\"disambiguation\" graphql:\"disambiguation\"" Aliases []string "json:\"aliases\" graphql:\"aliases\"" Gender *GenderEnum "json:\"gender\" graphql:\"gender\"" Urls []*URLFragment "json:\"urls\" graphql:\"urls\"" Images []*ImageFragment "json:\"images\" graphql:\"images\"" Birthdate *FuzzyDateFragment "json:\"birthdate\" graphql:\"birthdate\"" Ethnicity *EthnicityEnum "json:\"ethnicity\" graphql:\"ethnicity\"" Country *string "json:\"country\" graphql:\"country\"" EyeColor *EyeColorEnum "json:\"eye_color\" graphql:\"eye_color\"" HairColor *HairColorEnum "json:\"hair_color\" graphql:\"hair_color\"" Height *int "json:\"height\" graphql:\"height\"" Measurements MeasurementsFragment "json:\"measurements\" graphql:\"measurements\"" BreastType *BreastTypeEnum "json:\"breast_type\" graphql:\"breast_type\"" CareerStartYear *int "json:\"career_start_year\" graphql:\"career_start_year\"" CareerEndYear *int "json:\"career_end_year\" graphql:\"career_end_year\"" Tattoos []*BodyModificationFragment "json:\"tattoos\" graphql:\"tattoos\"" Piercings []*BodyModificationFragment "json:\"piercings\" graphql:\"piercings\"" }
type PerformerUpdateInput ¶
type PerformerUpdateInput struct { ID string `json:"id"` Name *string `json:"name"` Disambiguation *string `json:"disambiguation"` Aliases []string `json:"aliases"` Gender *GenderEnum `json:"gender"` Urls []*URLInput `json:"urls"` Birthdate *FuzzyDateInput `json:"birthdate"` Ethnicity *EthnicityEnum `json:"ethnicity"` Country *string `json:"country"` EyeColor *EyeColorEnum `json:"eye_color"` HairColor *HairColorEnum `json:"hair_color"` Height *int `json:"height"` Measurements *MeasurementsInput `json:"measurements"` BreastType *BreastTypeEnum `json:"breast_type"` CareerStartYear *int `json:"career_start_year"` CareerEndYear *int `json:"career_end_year"` Tattoos []*BodyModificationInput `json:"tattoos"` Piercings []*BodyModificationInput `json:"piercings"` ImageIds []string `json:"image_ids"` }
type Query ¶
type Query struct { FindPerformer *Performer "json:\"findPerformer\" graphql:\"findPerformer\"" QueryPerformers QueryPerformersResultType "json:\"queryPerformers\" graphql:\"queryPerformers\"" FindStudio *Studio "json:\"findStudio\" graphql:\"findStudio\"" QueryStudios QueryStudiosResultType "json:\"queryStudios\" graphql:\"queryStudios\"" FindTag *Tag "json:\"findTag\" graphql:\"findTag\"" QueryTags QueryTagsResultType "json:\"queryTags\" graphql:\"queryTags\"" FindScene *Scene "json:\"findScene\" graphql:\"findScene\"" FindSceneByFingerprint []*Scene "json:\"findSceneByFingerprint\" graphql:\"findSceneByFingerprint\"" FindScenesByFingerprints []*Scene "json:\"findScenesByFingerprints\" graphql:\"findScenesByFingerprints\"" QueryScenes QueryScenesResultType "json:\"queryScenes\" graphql:\"queryScenes\"" FindEdit *Edit "json:\"findEdit\" graphql:\"findEdit\"" QueryEdits QueryEditsResultType "json:\"queryEdits\" graphql:\"queryEdits\"" FindUser *User "json:\"findUser\" graphql:\"findUser\"" QueryUsers QueryUsersResultType "json:\"queryUsers\" graphql:\"queryUsers\"" Me *User "json:\"me\" graphql:\"me\"" SearchPerformer []*Performer "json:\"searchPerformer\" graphql:\"searchPerformer\"" SearchScene []*Scene "json:\"searchScene\" graphql:\"searchScene\"" Version Version "json:\"version\" graphql:\"version\"" }
type QueryEditsResultType ¶
type QueryScenesResultType ¶
type QuerySpec ¶
type QuerySpec struct { Page *int `json:"page"` PerPage *int `json:"per_page"` Sort *string `json:"sort"` Direction *SortDirectionEnum `json:"direction"` }
type QueryStudiosResultType ¶
type QueryTagsResultType ¶
type QueryUsersResultType ¶
type RoleCriterionInput ¶
type RoleCriterionInput struct { Value []RoleEnum `json:"value"` Modifier CriterionModifier `json:"modifier"` }
type Scene ¶
type Scene struct { ID string `json:"id"` Title *string `json:"title"` Details *string `json:"details"` Date *string `json:"date"` Urls []*URL `json:"urls"` Studio *Studio `json:"studio"` Tags []*Tag `json:"tags"` Images []*Image `json:"images"` Performers []*PerformerAppearance `json:"performers"` Fingerprints []*Fingerprint `json:"fingerprints"` Duration *int `json:"duration"` Director *string `json:"director"` Deleted bool `json:"deleted"` }
func (Scene) IsEditTarget ¶
func (Scene) IsEditTarget()
type SceneCreateInput ¶
type SceneCreateInput struct { Title *string `json:"title"` Details *string `json:"details"` Urls []*URLInput `json:"urls"` Date *string `json:"date"` StudioID *string `json:"studio_id"` Performers []*PerformerAppearanceInput `json:"performers"` TagIds []string `json:"tag_ids"` ImageIds []string `json:"image_ids"` Fingerprints []*FingerprintInput `json:"fingerprints"` Duration *int `json:"duration"` Director *string `json:"director"` }
type SceneDestroyInput ¶
type SceneDestroyInput struct {
ID string `json:"id"`
}
type SceneEdit ¶
type SceneEdit struct { Title *string `json:"title"` Details *string `json:"details"` AddedUrls []*URL `json:"added_urls"` RemovedUrls []*URL `json:"removed_urls"` Date *string `json:"date"` StudioID *string `json:"studio_id"` // Added or modified performer appearance entries AddedPerformers []*PerformerAppearance `json:"added_performers"` RemovedPerformers []*PerformerAppearance `json:"removed_performers"` AddedTags []*Tag `json:"added_tags"` RemovedTags []*Tag `json:"removed_tags"` AddedImages []*Image `json:"added_images"` RemovedImages []*Image `json:"removed_images"` AddedFingerprints []*Fingerprint `json:"added_fingerprints"` RemovedFingerprints []*Fingerprint `json:"removed_fingerprints"` Duration *int `json:"duration"` Director *string `json:"director"` }
func (SceneEdit) IsEditDetails ¶
func (SceneEdit) IsEditDetails()
type SceneEditDetailsInput ¶
type SceneEditDetailsInput struct { Title *string `json:"title"` Details *string `json:"details"` Urls []*URLInput `json:"urls"` Date *string `json:"date"` StudioID *string `json:"studio_id"` Performers []*PerformerAppearanceInput `json:"performers"` TagIds []string `json:"tag_ids"` ImageIds []string `json:"image_ids"` Fingerprints []*FingerprintInput `json:"fingerprints"` Duration *int `json:"duration"` Director *string `json:"director"` }
type SceneEditInput ¶
type SceneEditInput struct { Edit *EditInput `json:"edit"` // Not required for destroy type Details *SceneEditDetailsInput `json:"details"` Duration *int `json:"duration"` }
type SceneFilterType ¶
type SceneFilterType struct { // Filter to search title and details - assumes like query unless quoted Text *string `json:"text"` // Filter to search title - assumes like query unless quoted Title *string `json:"title"` // Filter to search urls - assumes like query unless quoted URL *string `json:"url"` // Filter by date Date *DateCriterionInput `json:"date"` // Filter to only include scenes with this studio Studios *MultiIDCriterionInput `json:"studios"` // Filter to only include scenes with these tags Tags *MultiIDCriterionInput `json:"tags"` // Filter to only include scenes with these performers Performers *MultiIDCriterionInput `json:"performers"` // Filter to include scenes with performer appearing as alias Alias *StringCriterionInput `json:"alias"` }
type SceneFragment ¶
type SceneFragment struct { ID string "json:\"id\" graphql:\"id\"" Title *string "json:\"title\" graphql:\"title\"" Details *string "json:\"details\" graphql:\"details\"" Duration *int "json:\"duration\" graphql:\"duration\"" Date *string "json:\"date\" graphql:\"date\"" Urls []*URLFragment "json:\"urls\" graphql:\"urls\"" Images []*ImageFragment "json:\"images\" graphql:\"images\"" Studio *StudioFragment "json:\"studio\" graphql:\"studio\"" Tags []*TagFragment "json:\"tags\" graphql:\"tags\"" Performers []*PerformerAppearanceFragment "json:\"performers\" graphql:\"performers\"" Fingerprints []*FingerprintFragment "json:\"fingerprints\" graphql:\"fingerprints\"" }
type SceneUpdateInput ¶
type SceneUpdateInput struct { ID string `json:"id"` Title *string `json:"title"` Details *string `json:"details"` Urls []*URLInput `json:"urls"` Date *string `json:"date"` StudioID *string `json:"studio_id"` Performers []*PerformerAppearanceInput `json:"performers"` TagIds []string `json:"tag_ids"` ImageIds []string `json:"image_ids"` Fingerprints []*FingerprintInput `json:"fingerprints"` Duration *int `json:"duration"` Director *string `json:"director"` }
type SearchScene ¶
type SearchScene struct {
SearchScene []*SceneFragment "json:\"searchScene\" graphql:\"searchScene\""
}
type SortDirectionEnum ¶
type SortDirectionEnum string
const ( SortDirectionEnumAsc SortDirectionEnum = "ASC" SortDirectionEnumDesc SortDirectionEnum = "DESC" )
func (SortDirectionEnum) IsValid ¶
func (e SortDirectionEnum) IsValid() bool
func (SortDirectionEnum) MarshalGQL ¶
func (e SortDirectionEnum) MarshalGQL(w io.Writer)
func (SortDirectionEnum) String ¶
func (e SortDirectionEnum) String() string
func (*SortDirectionEnum) UnmarshalGQL ¶
func (e *SortDirectionEnum) UnmarshalGQL(v interface{}) error
type StringCriterionInput ¶
type StringCriterionInput struct { Value string `json:"value"` Modifier CriterionModifier `json:"modifier"` }
type Studio ¶
type Studio struct { ID string `json:"id"` Name string `json:"name"` Urls []*URL `json:"urls"` Parent *Studio `json:"parent"` ChildStudios []*Studio `json:"child_studios"` Images []*Image `json:"images"` Deleted bool `json:"deleted"` }
func (Studio) IsEditTarget ¶
func (Studio) IsEditTarget()
type StudioCreateInput ¶
type StudioDestroyInput ¶
type StudioDestroyInput struct {
ID string `json:"id"`
}
type StudioEdit ¶
type StudioEdit struct { Name *string `json:"name"` // Added and modified URLs AddedUrls []*URL `json:"added_urls"` RemovedUrls []*URL `json:"removed_urls"` Parent *Studio `json:"parent"` AddedChildStudios []*Studio `json:"added_child_studios"` RemovedChildStudios []*Studio `json:"removed_child_studios"` AddedImages []*Image `json:"added_images"` RemovedImages []*Image `json:"removed_images"` }
func (StudioEdit) IsEditDetails ¶
func (StudioEdit) IsEditDetails()
type StudioEditDetailsInput ¶
type StudioEditInput ¶
type StudioEditInput struct { Edit *EditInput `json:"edit"` // Not required for destroy type Details *StudioEditDetailsInput `json:"details"` }
type StudioFilterType ¶
type StudioFilterType struct { // Filter to search name - assumes like query unless quoted Name *string `json:"name"` // Filter to search url - assumes like query unless quoted URL *string `json:"url"` Parent *IDCriterionInput `json:"parent"` }
type StudioFragment ¶
type StudioFragment struct { Name string "json:\"name\" graphql:\"name\"" ID string "json:\"id\" graphql:\"id\"" Urls []*URLFragment "json:\"urls\" graphql:\"urls\"" Images []*ImageFragment "json:\"images\" graphql:\"images\"" }
type StudioUpdateInput ¶
type SubmitFingerprintPayload ¶
type SubmitFingerprintPayload struct {
SubmitFingerprint bool "json:\"submitFingerprint\" graphql:\"submitFingerprint\""
}
type Tag ¶
type Tag struct { ID string `json:"id"` Name string `json:"name"` Description *string `json:"description"` Aliases []string `json:"aliases"` Deleted bool `json:"deleted"` Edits []*Edit `json:"edits"` }
func (Tag) IsEditTarget ¶
func (Tag) IsEditTarget()
type TagCreateInput ¶
type TagDestroyInput ¶
type TagDestroyInput struct {
ID string `json:"id"`
}
type TagEdit ¶
type TagEdit struct { Name *string `json:"name"` Description *string `json:"description"` AddedAliases []string `json:"added_aliases"` RemovedAliases []string `json:"removed_aliases"` }
func (TagEdit) IsEditDetails ¶
func (TagEdit) IsEditDetails()
type TagEditDetailsInput ¶
type TagEditInput ¶
type TagEditInput struct { Edit *EditInput `json:"edit"` // Not required for destroy type Details *TagEditDetailsInput `json:"details"` }
type TagFilterType ¶
type TagFilterType struct { // Filter to search name, aliases and description - assumes like query unless quoted Text *string `json:"text"` // Searches name and aliases - assumes like query unless quoted Names *string `json:"names"` // Filter to search name - assumes like query unless quoted Name *string `json:"name"` }
type TagFragment ¶
type TagUpdateInput ¶
type TargetTypeEnum ¶
type TargetTypeEnum string
const ( TargetTypeEnumScene TargetTypeEnum = "SCENE" TargetTypeEnumStudio TargetTypeEnum = "STUDIO" TargetTypeEnumPerformer TargetTypeEnum = "PERFORMER" TargetTypeEnumTag TargetTypeEnum = "TAG" )
func (TargetTypeEnum) IsValid ¶
func (e TargetTypeEnum) IsValid() bool
func (TargetTypeEnum) MarshalGQL ¶
func (e TargetTypeEnum) MarshalGQL(w io.Writer)
func (TargetTypeEnum) String ¶
func (e TargetTypeEnum) String() string
func (*TargetTypeEnum) UnmarshalGQL ¶
func (e *TargetTypeEnum) UnmarshalGQL(v interface{}) error
type URLFragment ¶
type User ¶
type User struct { ID string `json:"id"` Name string `json:"name"` // Should not be visible to other users Roles []RoleEnum `json:"roles"` // Should not be visible to other users Email *string `json:"email"` // Should not be visible to other users APIKey *string `json:"api_key"` SuccessfulEdits int `json:"successful_edits"` UnsuccessfulEdits int `json:"unsuccessful_edits"` SuccessfulVotes int `json:"successful_votes"` // Votes on unsuccessful edits UnsuccessfulVotes int `json:"unsuccessful_votes"` // Calls to the API from this user over a configurable time period APICalls int `json:"api_calls"` }
type UserChangePasswordInput ¶
type UserCreateInput ¶
type UserDestroyInput ¶
type UserDestroyInput struct {
ID string `json:"id"`
}
type UserFilterType ¶
type UserFilterType struct { // Filter to search user name - assumes like query unless quoted Name *string `json:"name"` // Filter to search email - assumes like query unless quoted Email *string `json:"email"` // Filter by roles Roles *RoleCriterionInput `json:"roles"` // Filter by api key APIKey *string `json:"apiKey"` // Filter by successful edits SuccessfulEdits *IntCriterionInput `json:"successful_edits"` // Filter by unsuccessful edits UnsuccessfulEdits *IntCriterionInput `json:"unsuccessful_edits"` // Filter by votes on successful edits SuccessfulVotes *IntCriterionInput `json:"successful_votes"` // Filter by votes on unsuccessful edits UnsuccessfulVotes *IntCriterionInput `json:"unsuccessful_votes"` // Filter by number of API calls APICalls *IntCriterionInput `json:"api_calls"` }
type UserUpdateInput ¶
type VoteComment ¶
type VoteComment struct { User *User `json:"user"` Date *string `json:"date"` Comment *string `json:"comment"` Type *VoteTypeEnum `json:"type"` }
type VoteStatusEnum ¶
type VoteStatusEnum string
const ( VoteStatusEnumAccepted VoteStatusEnum = "ACCEPTED" VoteStatusEnumRejected VoteStatusEnum = "REJECTED" VoteStatusEnumPending VoteStatusEnum = "PENDING" VoteStatusEnumImmediateAccepted VoteStatusEnum = "IMMEDIATE_ACCEPTED" VoteStatusEnumImmediateRejected VoteStatusEnum = "IMMEDIATE_REJECTED" )
func (VoteStatusEnum) IsValid ¶
func (e VoteStatusEnum) IsValid() bool
func (VoteStatusEnum) MarshalGQL ¶
func (e VoteStatusEnum) MarshalGQL(w io.Writer)
func (VoteStatusEnum) String ¶
func (e VoteStatusEnum) String() string
func (*VoteStatusEnum) UnmarshalGQL ¶
func (e *VoteStatusEnum) UnmarshalGQL(v interface{}) error
type VoteTypeEnum ¶
type VoteTypeEnum string
const ( VoteTypeEnumComment VoteTypeEnum = "COMMENT" VoteTypeEnumAccept VoteTypeEnum = "ACCEPT" VoteTypeEnumReject VoteTypeEnum = "REJECT" // Immediately accepts the edit - bypassing the vote VoteTypeEnumImmediateAccept VoteTypeEnum = "IMMEDIATE_ACCEPT" // Immediately rejects the edit - bypassing the vote VoteTypeEnumImmediateReject VoteTypeEnum = "IMMEDIATE_REJECT" )
func (VoteTypeEnum) IsValid ¶
func (e VoteTypeEnum) IsValid() bool
func (VoteTypeEnum) MarshalGQL ¶
func (e VoteTypeEnum) MarshalGQL(w io.Writer)
func (VoteTypeEnum) String ¶
func (e VoteTypeEnum) String() string
func (*VoteTypeEnum) UnmarshalGQL ¶
func (e *VoteTypeEnum) UnmarshalGQL(v interface{}) error
Click to show internal directories.
Click to hide internal directories.