Documentation ¶
Index ¶
- Variables
- func AttachTracer(ctx context.Context, t *Tracer) context.Context
- func DataLoadersKey() interface{}
- func ExitTracer(ctx context.Context)
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type AssetDataLoader
- type AssetLoader
- func (c *AssetLoader) DataLoader(ctx context.Context) AssetDataLoader
- func (c *AssetLoader) Fetch(ctx context.Context, ids []id.AssetID) ([]*gqlmodel.Asset, []error)
- func (c *AssetLoader) FindByTeam(ctx context.Context, teamID id.ID, first *int, last *int, ...) (*gqlmodel.AssetConnection, error)
- func (c *AssetLoader) OrdinaryDataLoader(ctx context.Context) AssetDataLoader
- type AssetResolver
- type ComplexityRoot
- type Config
- type ContextKey
- type DataLoaders
- type DatasetDataLoader
- type DatasetFieldResolver
- type DatasetLoader
- func (c *DatasetLoader) DataLoader(ctx context.Context) DatasetDataLoader
- func (c *DatasetLoader) Fetch(ctx context.Context, ids []id.DatasetID) ([]*gqlmodel.Dataset, []error)
- func (c *DatasetLoader) FetchSchema(ctx context.Context, ids []id.DatasetSchemaID) ([]*gqlmodel.DatasetSchema, []error)
- func (c *DatasetLoader) FindBySchema(ctx context.Context, dsid id.ID, first *int, last *int, before *usecase.Cursor, ...) (*gqlmodel.DatasetConnection, error)
- func (c *DatasetLoader) FindDynamicSchemasByScene(ctx context.Context, sid id.ID) ([]*gqlmodel.DatasetSchema, error)
- func (c *DatasetLoader) FindSchemaByScene(ctx context.Context, i id.ID, first *int, last *int, before *usecase.Cursor, ...) (*gqlmodel.DatasetSchemaConnection, error)
- func (c *DatasetLoader) GraphFetch(ctx context.Context, i id.DatasetID, depth int) ([]*gqlmodel.Dataset, []error)
- func (c *DatasetLoader) GraphFetchSchema(ctx context.Context, i id.ID, depth int) ([]*gqlmodel.DatasetSchema, []error)
- func (c *DatasetLoader) OrdinaryDataLoader(ctx context.Context) DatasetDataLoader
- func (c *DatasetLoader) SchemaDataLoader(ctx context.Context) DatasetSchemaDataLoader
- func (c *DatasetLoader) SchemaOrdinaryDataLoader(ctx context.Context) DatasetSchemaDataLoader
- type DatasetResolver
- type DatasetSchemaDataLoader
- type DatasetSchemaFieldResolver
- type DatasetSchemaResolver
- type DirectiveRoot
- type InfoboxFieldResolver
- type InfoboxResolver
- type LayerDataLoader
- type LayerGroupDataLoader
- type LayerGroupResolver
- type LayerItemDataLoader
- type LayerItemResolver
- type LayerLoader
- func (c *LayerLoader) DataLoader(ctx context.Context) LayerDataLoader
- func (c *LayerLoader) Fetch(ctx context.Context, ids []id.LayerID) ([]*gqlmodel.Layer, []error)
- func (c *LayerLoader) FetchByProperty(ctx context.Context, pid id.PropertyID) (gqlmodel.Layer, error)
- func (c *LayerLoader) FetchGroup(ctx context.Context, ids []id.LayerID) ([]*gqlmodel.LayerGroup, []error)
- func (c *LayerLoader) FetchItem(ctx context.Context, ids []id.LayerID) ([]*gqlmodel.LayerItem, []error)
- func (c *LayerLoader) FetchMerged(ctx context.Context, org id.LayerID, parent *id.LayerID) (*gqlmodel.MergedLayer, error)
- func (c *LayerLoader) FetchParent(ctx context.Context, lid id.LayerID) (*gqlmodel.LayerGroup, error)
- func (c *LayerLoader) FetchParentAndMerged(ctx context.Context, org id.LayerID) (*gqlmodel.MergedLayer, error)
- func (c *LayerLoader) GroupDataLoader(ctx context.Context) LayerGroupDataLoader
- func (c *LayerLoader) GroupOrdinaryDataLoader(ctx context.Context) LayerGroupDataLoader
- func (c *LayerLoader) ItemDataLoader(ctx context.Context) LayerItemDataLoader
- func (c *LayerLoader) ItemOrdinaryDataLoader(ctx context.Context) LayerItemDataLoader
- func (c *LayerLoader) OrdinaryDataLoader(ctx context.Context) LayerDataLoader
- type Loaders
- type MergedInfoboxFieldResolver
- type MergedInfoboxResolver
- type MergedLayerResolver
- type MergedPropertyFieldResolver
- type MergedPropertyGroupResolver
- type MergedPropertyResolver
- type MutationResolver
- type PluginDataLoader
- type PluginExtensionResolver
- type PluginLoader
- func (c *PluginLoader) DataLoader(ctx context.Context) PluginDataLoader
- func (c *PluginLoader) Fetch(ctx context.Context, ids []id.PluginID) ([]*gqlmodel.Plugin, []error)
- func (c *PluginLoader) FetchPluginMetadata(ctx context.Context) ([]*gqlmodel.PluginMetadata, error)
- func (c *PluginLoader) OrdinaryDataLoader(ctx context.Context) PluginDataLoader
- type PluginResolver
- type ProjectDataLoader
- type ProjectLoader
- func (c *ProjectLoader) CheckAlias(ctx context.Context, alias string) (*gqlmodel.ProjectAliasAvailability, error)
- func (c *ProjectLoader) DataLoader(ctx context.Context) ProjectDataLoader
- func (c *ProjectLoader) Fetch(ctx context.Context, ids []id.ProjectID) ([]*gqlmodel.Project, []error)
- func (c *ProjectLoader) FindByTeam(ctx context.Context, teamID id.TeamID, first *int, last *int, ...) (*gqlmodel.ProjectConnection, error)
- func (c *ProjectLoader) OrdinaryDataLoader(ctx context.Context) ProjectDataLoader
- type ProjectResolver
- type PropertyDataLoader
- type PropertyFieldLinkResolver
- type PropertyFieldResolver
- type PropertyGroupListResolver
- type PropertyGroupResolver
- type PropertyLinkableFieldsResolver
- type PropertyLoader
- func (c *PropertyLoader) DataLoader(ctx context.Context) PropertyDataLoader
- func (c *PropertyLoader) Fetch(ctx context.Context, ids []id.PropertyID) ([]*gqlmodel.Property, []error)
- func (c *PropertyLoader) FetchMerged(ctx context.Context, org, parent, linked *id.ID) (*gqlmodel.MergedProperty, error)
- func (c *PropertyLoader) FetchSchema(ctx context.Context, ids []id.PropertySchemaID) ([]*gqlmodel.PropertySchema, []error)
- func (c *PropertyLoader) OrdinaryDataLoader(ctx context.Context) PropertyDataLoader
- func (c *PropertyLoader) SchemaDataLoader(ctx context.Context) PropertySchemaDataLoader
- func (c *PropertyLoader) SchemaOrdinaryDataLoader(ctx context.Context) PropertySchemaDataLoader
- type PropertyResolver
- type PropertySchemaDataLoader
- type PropertySchemaFieldChoiceResolver
- type PropertySchemaFieldResolver
- type PropertySchemaGroupResolver
- type QueryResolver
- type Resolver
- func (r *Resolver) Asset() AssetResolver
- func (r *Resolver) Dataset() DatasetResolver
- func (r *Resolver) DatasetField() DatasetFieldResolver
- func (r *Resolver) DatasetSchema() DatasetSchemaResolver
- func (r *Resolver) DatasetSchemaField() DatasetSchemaFieldResolver
- func (r *Resolver) Infobox() InfoboxResolver
- func (r *Resolver) InfoboxField() InfoboxFieldResolver
- func (r *Resolver) LayerGroup() LayerGroupResolver
- func (r *Resolver) LayerItem() LayerItemResolver
- func (r *Resolver) MergedInfobox() MergedInfoboxResolver
- func (r *Resolver) MergedInfoboxField() MergedInfoboxFieldResolver
- func (r *Resolver) MergedLayer() MergedLayerResolver
- func (r *Resolver) MergedProperty() MergedPropertyResolver
- func (r *Resolver) MergedPropertyField() MergedPropertyFieldResolver
- func (r *Resolver) MergedPropertyGroup() MergedPropertyGroupResolver
- func (r *Resolver) Mutation() MutationResolver
- func (r *Resolver) Plugin() PluginResolver
- func (r *Resolver) PluginExtension() PluginExtensionResolver
- func (r *Resolver) Project() ProjectResolver
- func (r *Resolver) Property() PropertyResolver
- func (r *Resolver) PropertyField() PropertyFieldResolver
- func (r *Resolver) PropertyFieldLink() PropertyFieldLinkResolver
- func (r *Resolver) PropertyGroup() PropertyGroupResolver
- func (r *Resolver) PropertyGroupList() PropertyGroupListResolver
- func (r *Resolver) PropertyLinkableFields() PropertyLinkableFieldsResolver
- func (r *Resolver) PropertySchemaField() PropertySchemaFieldResolver
- func (r *Resolver) PropertySchemaFieldChoice() PropertySchemaFieldChoiceResolver
- func (r *Resolver) PropertySchemaGroup() PropertySchemaGroupResolver
- func (r *Resolver) Query() QueryResolver
- func (r *Resolver) Scene() SceneResolver
- func (r *Resolver) ScenePlugin() ScenePluginResolver
- func (r *Resolver) SceneWidget() SceneWidgetResolver
- func (r *Resolver) TagItem() TagItemResolver
- func (r *Resolver) Team() TeamResolver
- func (r *Resolver) TeamMember() TeamMemberResolver
- func (r *Resolver) User() UserResolver
- type ResolverRoot
- type SceneDataLoader
- type SceneLoader
- func (c *SceneLoader) DataLoader(ctx context.Context) SceneDataLoader
- func (c *SceneLoader) Fetch(ctx context.Context, ids []id.SceneID) ([]*gqlmodel.Scene, []error)
- func (c *SceneLoader) FetchLock(ctx context.Context, sid id.SceneID) (*gqlmodel.SceneLockMode, error)
- func (c *SceneLoader) FetchLockAll(ctx context.Context, sid []id.SceneID) ([]gqlmodel.SceneLockMode, []error)
- func (c *SceneLoader) FindByProject(ctx context.Context, projectID id.ProjectID) (*gqlmodel.Scene, error)
- func (c *SceneLoader) OrdinaryDataLoader(ctx context.Context) SceneDataLoader
- type ScenePluginResolver
- type SceneResolver
- type SceneWidgetResolver
- type TagDataLoader
- type TagGroupDataLoader
- type TagItemDataLoader
- type TagItemResolver
- type TagLoader
- func (c *TagLoader) DataLoader(ctx context.Context) TagDataLoader
- func (c *TagLoader) Fetch(ctx context.Context, ids []id.TagID) ([]*gqlmodel.Tag, []error)
- func (c *TagLoader) FetchGroup(ctx context.Context, ids []id.TagID) ([]*gqlmodel.TagGroup, []error)
- func (c *TagLoader) FetchGroupByLayer(ctx context.Context, lid id.LayerID) ([]*gqlmodel.TagGroup, error)
- func (c *TagLoader) FetchGroupByScene(ctx context.Context, sid id.SceneID) ([]*gqlmodel.TagGroup, error)
- func (c *TagLoader) FetchItem(ctx context.Context, ids []id.TagID) ([]*gqlmodel.TagItem, []error)
- func (c *TagLoader) FetchItemByLayer(ctx context.Context, lid id.LayerID) ([]*gqlmodel.TagItem, error)
- func (c *TagLoader) FetchItemByScene(ctx context.Context, sid id.SceneID) ([]*gqlmodel.TagItem, error)
- func (c *TagLoader) GroupDataLoader(ctx context.Context) TagGroupDataLoader
- func (c *TagLoader) GroupOrdinaryDataLoader(ctx context.Context) TagGroupDataLoader
- func (c *TagLoader) ItemDataLoader(ctx context.Context) TagItemDataLoader
- func (c *TagLoader) ItemOrdinaryDataLoader(ctx context.Context) TagItemDataLoader
- func (c *TagLoader) OrdinaryDataLoader(ctx context.Context) TagDataLoader
- type TeamDataLoader
- type TeamLoader
- func (c *TeamLoader) DataLoader(ctx context.Context) TeamDataLoader
- func (c *TeamLoader) Fetch(ctx context.Context, ids []id.TeamID) ([]*gqlmodel.Team, []error)
- func (c *TeamLoader) FindByUser(ctx context.Context, uid id.UserID) ([]*gqlmodel.Team, error)
- func (c *TeamLoader) OrdinaryDataLoader(ctx context.Context) TeamDataLoader
- type TeamMemberResolver
- type TeamResolver
- type Tracer
- type UserDataLoader
- type UserLoader
- func (c *UserLoader) DataLoader(ctx context.Context) UserDataLoader
- func (c *UserLoader) Fetch(ctx context.Context, ids []id.UserID) ([]*gqlmodel.User, []error)
- func (c *UserLoader) OrdinaryDataLoader(ctx context.Context) UserDataLoader
- func (c *UserLoader) SearchUser(ctx context.Context, nameOrEmail string) (*gqlmodel.SearchedUser, error)
- type UserResolver
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotImplemented = errors.New("not impleneted yet")
Functions ¶
func DataLoadersKey ¶
func DataLoadersKey() interface{}
func ExitTracer ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type AssetDataLoader ¶
type AssetLoader ¶
type AssetLoader struct {
// contains filtered or unexported fields
}
func NewAssetLoader ¶
func NewAssetLoader(usecase interfaces.Asset) *AssetLoader
func (*AssetLoader) DataLoader ¶
func (c *AssetLoader) DataLoader(ctx context.Context) AssetDataLoader
func (*AssetLoader) FindByTeam ¶
func (*AssetLoader) OrdinaryDataLoader ¶
func (c *AssetLoader) OrdinaryDataLoader(ctx context.Context) AssetDataLoader
type AssetResolver ¶
type ComplexityRoot ¶
type ComplexityRoot struct { AddDatasetSchemaPayload struct { DatasetSchema func(childComplexity int) int } AddDynamicDatasetPayload struct { Dataset func(childComplexity int) int DatasetSchema func(childComplexity int) int } AddDynamicDatasetSchemaPayload struct { DatasetSchema func(childComplexity int) int } AddInfoboxFieldPayload struct { InfoboxField func(childComplexity int) int Layer func(childComplexity int) int } AddLayerGroupPayload struct { Index func(childComplexity int) int Layer func(childComplexity int) int ParentLayer func(childComplexity int) int } AddLayerItemPayload struct { Index func(childComplexity int) int Layer func(childComplexity int) int ParentLayer func(childComplexity int) int } AddMemberToTeamPayload struct { Team func(childComplexity int) int } AddWidgetPayload struct { Scene func(childComplexity int) int SceneWidget func(childComplexity int) int } Asset struct { ContentType func(childComplexity int) int CreatedAt func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Size func(childComplexity int) int Team func(childComplexity int) int TeamID func(childComplexity int) int URL func(childComplexity int) int } AssetConnection struct { Edges func(childComplexity int) int Nodes func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } AssetEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } AttachTagItemToGroupPayload struct { Tag func(childComplexity int) int } AttachTagToLayerPayload struct { Layer func(childComplexity int) int } Camera struct { Altitude func(childComplexity int) int Fov func(childComplexity int) int Heading func(childComplexity int) int Lat func(childComplexity int) int Lng func(childComplexity int) int Pitch func(childComplexity int) int Roll func(childComplexity int) int } CreateAssetPayload struct { Asset func(childComplexity int) int } CreateInfoboxPayload struct { Layer func(childComplexity int) int } CreateScenePayload struct { Scene func(childComplexity int) int } CreateTagGroupPayload struct { Tag func(childComplexity int) int } CreateTagItemPayload struct { Tag func(childComplexity int) int } CreateTeamPayload struct { Team func(childComplexity int) int } Dataset struct { Fields func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Schema func(childComplexity int) int SchemaID func(childComplexity int) int Source func(childComplexity int) int } DatasetConnection struct { Edges func(childComplexity int) int Nodes func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } DatasetEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } DatasetField struct { Field func(childComplexity int) int FieldID func(childComplexity int) int Schema func(childComplexity int) int SchemaID func(childComplexity int) int Source func(childComplexity int) int Type func(childComplexity int) int Value func(childComplexity int) int ValueRef func(childComplexity int) int } DatasetSchema struct { Datasets func(childComplexity int, first *int, last *int, after *usecase.Cursor, before *usecase.Cursor) int Dynamic func(childComplexity int) int Fields func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int RepresentativeField func(childComplexity int) int RepresentativeFieldID func(childComplexity int) int Scene func(childComplexity int) int SceneID func(childComplexity int) int Source func(childComplexity int) int } DatasetSchemaConnection struct { Edges func(childComplexity int) int Nodes func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } DatasetSchemaEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } DatasetSchemaField struct { ID func(childComplexity int) int Name func(childComplexity int) int Ref func(childComplexity int) int RefID func(childComplexity int) int Schema func(childComplexity int) int SchemaID func(childComplexity int) int Source func(childComplexity int) int Type func(childComplexity int) int } DeleteMePayload struct { UserID func(childComplexity int) int } DeleteProjectPayload struct { ProjectID func(childComplexity int) int } DeleteTeamPayload struct { TeamID func(childComplexity int) int } DetachTagFromLayerPayload struct { Layer func(childComplexity int) int } DetachTagItemFromGroupPayload struct { Tag func(childComplexity int) int } ImportDatasetPayload struct { DatasetSchema func(childComplexity int) int } ImportLayerPayload struct { Layers func(childComplexity int) int ParentLayer func(childComplexity int) int } Infobox struct { Fields func(childComplexity int) int Layer func(childComplexity int) int LayerID func(childComplexity int) int LinkedDataset func(childComplexity int) int LinkedDatasetID func(childComplexity int) int Merged func(childComplexity int) int Property func(childComplexity int) int PropertyID func(childComplexity int) int Scene func(childComplexity int) int SceneID func(childComplexity int) int } InfoboxField struct { Extension func(childComplexity int) int ExtensionID func(childComplexity int) int ID func(childComplexity int) int Infobox func(childComplexity int) int Layer func(childComplexity int) int LayerID func(childComplexity int) int LinkedDataset func(childComplexity int) int LinkedDatasetID func(childComplexity int) int Merged func(childComplexity int) int Plugin func(childComplexity int) int PluginID func(childComplexity int) int Property func(childComplexity int) int PropertyID func(childComplexity int) int Scene func(childComplexity int) int SceneID func(childComplexity int) int ScenePlugin func(childComplexity int) int } InstallPluginPayload struct { Scene func(childComplexity int) int ScenePlugin func(childComplexity int) int } LatLng struct { Lat func(childComplexity int) int Lng func(childComplexity int) int } LatLngHeight struct { Height func(childComplexity int) int Lat func(childComplexity int) int Lng func(childComplexity int) int } LayerGroup struct { Extension func(childComplexity int) int ExtensionID func(childComplexity int) int ID func(childComplexity int) int Infobox func(childComplexity int) int IsVisible func(childComplexity int) int LayerIds func(childComplexity int) int Layers func(childComplexity int) int LinkedDatasetSchema func(childComplexity int) int LinkedDatasetSchemaID func(childComplexity int) int Name func(childComplexity int) int Parent func(childComplexity int) int ParentID func(childComplexity int) int Plugin func(childComplexity int) int PluginID func(childComplexity int) int Property func(childComplexity int) int PropertyID func(childComplexity int) int Root func(childComplexity int) int Scene func(childComplexity int) int SceneID func(childComplexity int) int ScenePlugin func(childComplexity int) int TagIds func(childComplexity int) int Tags func(childComplexity int) int } LayerItem struct { Extension func(childComplexity int) int ExtensionID func(childComplexity int) int ID func(childComplexity int) int Infobox func(childComplexity int) int IsVisible func(childComplexity int) int LinkedDataset func(childComplexity int) int LinkedDatasetID func(childComplexity int) int Merged func(childComplexity int) int Name func(childComplexity int) int Parent func(childComplexity int) int ParentID func(childComplexity int) int Plugin func(childComplexity int) int PluginID func(childComplexity int) int Property func(childComplexity int) int PropertyID func(childComplexity int) int Scene func(childComplexity int) int SceneID func(childComplexity int) int ScenePlugin func(childComplexity int) int TagIds func(childComplexity int) int Tags func(childComplexity int) int } MergedInfobox struct { Fields func(childComplexity int) int Property func(childComplexity int) int Scene func(childComplexity int) int SceneID func(childComplexity int) int } MergedInfoboxField struct { Extension func(childComplexity int) int ExtensionID func(childComplexity int) int OriginalID func(childComplexity int) int Plugin func(childComplexity int) int PluginID func(childComplexity int) int Property func(childComplexity int) int Scene func(childComplexity int) int SceneID func(childComplexity int) int ScenePlugin func(childComplexity int) int } MergedLayer struct { Infobox func(childComplexity int) int Original func(childComplexity int) int OriginalID func(childComplexity int) int Parent func(childComplexity int) int ParentID func(childComplexity int) int Property func(childComplexity int) int Scene func(childComplexity int) int SceneID func(childComplexity int) int } MergedProperty struct { Groups func(childComplexity int) int LinkedDataset func(childComplexity int) int LinkedDatasetID func(childComplexity int) int Original func(childComplexity int) int OriginalID func(childComplexity int) int Parent func(childComplexity int) int ParentID func(childComplexity int) int Schema func(childComplexity int) int SchemaID func(childComplexity int) int } MergedPropertyField struct { ActualValue func(childComplexity int) int Field func(childComplexity int) int FieldID func(childComplexity int) int Links func(childComplexity int) int Overridden func(childComplexity int) int Schema func(childComplexity int) int SchemaID func(childComplexity int) int Type func(childComplexity int) int Value func(childComplexity int) int } MergedPropertyGroup struct { Fields func(childComplexity int) int Groups func(childComplexity int) int LinkedDataset func(childComplexity int) int LinkedDatasetID func(childComplexity int) int Original func(childComplexity int) int OriginalID func(childComplexity int) int OriginalProperty func(childComplexity int) int OriginalPropertyID func(childComplexity int) int Parent func(childComplexity int) int ParentID func(childComplexity int) int ParentProperty func(childComplexity int) int ParentPropertyID func(childComplexity int) int Schema func(childComplexity int) int SchemaGroupID func(childComplexity int) int SchemaID func(childComplexity int) int } MoveInfoboxFieldPayload struct { Index func(childComplexity int) int InfoboxFieldID func(childComplexity int) int Layer func(childComplexity int) int } MoveLayerPayload struct { FromParentLayer func(childComplexity int) int Index func(childComplexity int) int LayerID func(childComplexity int) int ToParentLayer func(childComplexity int) int } Mutation struct { AddDatasetSchema func(childComplexity int, input gqlmodel.AddDatasetSchemaInput) int AddDynamicDataset func(childComplexity int, input gqlmodel.AddDynamicDatasetInput) int AddDynamicDatasetSchema func(childComplexity int, input gqlmodel.AddDynamicDatasetSchemaInput) int AddInfoboxField func(childComplexity int, input gqlmodel.AddInfoboxFieldInput) int AddLayerGroup func(childComplexity int, input gqlmodel.AddLayerGroupInput) int AddLayerItem func(childComplexity int, input gqlmodel.AddLayerItemInput) int AddMemberToTeam func(childComplexity int, input gqlmodel.AddMemberToTeamInput) int AddPropertyItem func(childComplexity int, input gqlmodel.AddPropertyItemInput) int AddWidget func(childComplexity int, input gqlmodel.AddWidgetInput) int AttachTagItemToGroup func(childComplexity int, input gqlmodel.AttachTagItemToGroupInput) int AttachTagToLayer func(childComplexity int, input gqlmodel.AttachTagToLayerInput) int CreateAsset func(childComplexity int, input gqlmodel.CreateAssetInput) int CreateInfobox func(childComplexity int, input gqlmodel.CreateInfoboxInput) int CreateProject func(childComplexity int, input gqlmodel.CreateProjectInput) int CreateScene func(childComplexity int, input gqlmodel.CreateSceneInput) int CreateTagGroup func(childComplexity int, input gqlmodel.CreateTagGroupInput) int CreateTagItem func(childComplexity int, input gqlmodel.CreateTagItemInput) int CreateTeam func(childComplexity int, input gqlmodel.CreateTeamInput) int DeleteMe func(childComplexity int, input gqlmodel.DeleteMeInput) int DeleteProject func(childComplexity int, input gqlmodel.DeleteProjectInput) int DeleteTeam func(childComplexity int, input gqlmodel.DeleteTeamInput) int DetachTagFromLayer func(childComplexity int, input gqlmodel.DetachTagFromLayerInput) int DetachTagItemFromGroup func(childComplexity int, input gqlmodel.DetachTagItemFromGroupInput) int ImportDataset func(childComplexity int, input gqlmodel.ImportDatasetInput) int ImportDatasetFromGoogleSheet func(childComplexity int, input gqlmodel.ImportDatasetFromGoogleSheetInput) int ImportLayer func(childComplexity int, input gqlmodel.ImportLayerInput) int InstallPlugin func(childComplexity int, input gqlmodel.InstallPluginInput) int LinkDatasetToPropertyValue func(childComplexity int, input gqlmodel.LinkDatasetToPropertyValueInput) int MoveInfoboxField func(childComplexity int, input gqlmodel.MoveInfoboxFieldInput) int MoveLayer func(childComplexity int, input gqlmodel.MoveLayerInput) int MovePropertyItem func(childComplexity int, input gqlmodel.MovePropertyItemInput) int PublishProject func(childComplexity int, input gqlmodel.PublishProjectInput) int RemoveAsset func(childComplexity int, input gqlmodel.RemoveAssetInput) int RemoveDatasetSchema func(childComplexity int, input gqlmodel.RemoveDatasetSchemaInput) int RemoveInfobox func(childComplexity int, input gqlmodel.RemoveInfoboxInput) int RemoveInfoboxField func(childComplexity int, input gqlmodel.RemoveInfoboxFieldInput) int RemoveLayer func(childComplexity int, input gqlmodel.RemoveLayerInput) int RemoveMemberFromTeam func(childComplexity int, input gqlmodel.RemoveMemberFromTeamInput) int RemoveMyAuth func(childComplexity int, input gqlmodel.RemoveMyAuthInput) int RemovePropertyField func(childComplexity int, input gqlmodel.RemovePropertyFieldInput) int RemovePropertyItem func(childComplexity int, input gqlmodel.RemovePropertyItemInput) int RemoveTag func(childComplexity int, input gqlmodel.RemoveTagInput) int RemoveWidget func(childComplexity int, input gqlmodel.RemoveWidgetInput) int Signup func(childComplexity int, input gqlmodel.SignupInput) int SyncDataset func(childComplexity int, input gqlmodel.SyncDatasetInput) int UninstallPlugin func(childComplexity int, input gqlmodel.UninstallPluginInput) int UnlinkPropertyValue func(childComplexity int, input gqlmodel.UnlinkPropertyValueInput) int UpdateDatasetSchema func(childComplexity int, input gqlmodel.UpdateDatasetSchemaInput) int UpdateLayer func(childComplexity int, input gqlmodel.UpdateLayerInput) int UpdateMe func(childComplexity int, input gqlmodel.UpdateMeInput) int UpdateMemberOfTeam func(childComplexity int, input gqlmodel.UpdateMemberOfTeamInput) int UpdateProject func(childComplexity int, input gqlmodel.UpdateProjectInput) int UpdatePropertyItems func(childComplexity int, input gqlmodel.UpdatePropertyItemInput) int UpdatePropertyValue func(childComplexity int, input gqlmodel.UpdatePropertyValueInput) int UpdateTag func(childComplexity int, input gqlmodel.UpdateTagInput) int UpdateTeam func(childComplexity int, input gqlmodel.UpdateTeamInput) int UpdateWidget func(childComplexity int, input gqlmodel.UpdateWidgetInput) int UpdateWidgetAlignSystem func(childComplexity int, input gqlmodel.UpdateWidgetAlignSystemInput) int UpgradePlugin func(childComplexity int, input gqlmodel.UpgradePluginInput) int UploadFileToProperty func(childComplexity int, input gqlmodel.UploadFileToPropertyInput) int UploadPlugin func(childComplexity int, input gqlmodel.UploadPluginInput) int } PageInfo struct { EndCursor func(childComplexity int) int HasNextPage func(childComplexity int) int HasPreviousPage func(childComplexity int) int StartCursor func(childComplexity int) int } Plugin struct { AllTranslatedDescription func(childComplexity int) int AllTranslatedName func(childComplexity int) int Author func(childComplexity int) int Description func(childComplexity int) int Extensions func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int PropertySchema func(childComplexity int) int PropertySchemaID func(childComplexity int) int RepositoryURL func(childComplexity int) int Scene func(childComplexity int) int SceneID func(childComplexity int) int ScenePlugin func(childComplexity int, sceneID *id.ID) int TranslatedDescription func(childComplexity int, lang *string) int TranslatedName func(childComplexity int, lang *string) int Version func(childComplexity int) int } PluginExtension struct { AllTranslatedDescription func(childComplexity int) int AllTranslatedName func(childComplexity int) int Description func(childComplexity int) int ExtensionID func(childComplexity int) int Icon func(childComplexity int) int Name func(childComplexity int) int Plugin func(childComplexity int) int PluginID func(childComplexity int) int PropertySchema func(childComplexity int) int PropertySchemaID func(childComplexity int) int SceneWidget func(childComplexity int, sceneID id.ID) int SingleOnly func(childComplexity int) int TranslatedDescription func(childComplexity int, lang *string) int TranslatedName func(childComplexity int, lang *string) int Type func(childComplexity int) int Visualizer func(childComplexity int) int WidgetLayout func(childComplexity int) int } PluginMetadata struct { Author func(childComplexity int) int CreatedAt func(childComplexity int) int Description func(childComplexity int) int Name func(childComplexity int) int ThumbnailURL func(childComplexity int) int } Project struct { Alias func(childComplexity int) int BasicAuthPassword func(childComplexity int) int BasicAuthUsername func(childComplexity int) int CreatedAt func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int ImageURL func(childComplexity int) int IsArchived func(childComplexity int) int IsBasicAuthActive func(childComplexity int) int Name func(childComplexity int) int PublicDescription func(childComplexity int) int PublicImage func(childComplexity int) int PublicNoIndex func(childComplexity int) int PublicTitle func(childComplexity int) int PublishedAt func(childComplexity int) int PublishmentStatus func(childComplexity int) int Scene func(childComplexity int) int Team func(childComplexity int) int TeamID func(childComplexity int) int UpdatedAt func(childComplexity int) int Visualizer func(childComplexity int) int } ProjectAliasAvailability struct { Alias func(childComplexity int) int Available func(childComplexity int) int } ProjectConnection struct { Edges func(childComplexity int) int Nodes func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } ProjectEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } ProjectPayload struct { Project func(childComplexity int) int } Property struct { ID func(childComplexity int) int Items func(childComplexity int) int Layer func(childComplexity int) int Merged func(childComplexity int) int Schema func(childComplexity int) int SchemaID func(childComplexity int) int } PropertyCondition struct { FieldID func(childComplexity int) int Type func(childComplexity int) int Value func(childComplexity int) int } PropertyField struct { ActualValue func(childComplexity int) int Field func(childComplexity int) int FieldID func(childComplexity int) int ID func(childComplexity int) int Links func(childComplexity int) int Parent func(childComplexity int) int ParentID func(childComplexity int) int Schema func(childComplexity int) int SchemaID func(childComplexity int) int Type func(childComplexity int) int Value func(childComplexity int) int } PropertyFieldLink struct { Dataset func(childComplexity int) int DatasetField func(childComplexity int) int DatasetID func(childComplexity int) int DatasetSchema func(childComplexity int) int DatasetSchemaField func(childComplexity int) int DatasetSchemaFieldID func(childComplexity int) int DatasetSchemaID func(childComplexity int) int } PropertyFieldPayload struct { Property func(childComplexity int) int PropertyField func(childComplexity int) int } PropertyGroup struct { Fields func(childComplexity int) int ID func(childComplexity int) int Schema func(childComplexity int) int SchemaGroup func(childComplexity int) int SchemaGroupID func(childComplexity int) int SchemaID func(childComplexity int) int } PropertyGroupList struct { Groups func(childComplexity int) int ID func(childComplexity int) int Schema func(childComplexity int) int SchemaGroup func(childComplexity int) int SchemaGroupID func(childComplexity int) int SchemaID func(childComplexity int) int } PropertyItemPayload struct { Property func(childComplexity int) int PropertyItem func(childComplexity int) int } PropertyLinkableFields struct { Latlng func(childComplexity int) int LatlngField func(childComplexity int) int Schema func(childComplexity int) int SchemaID func(childComplexity int) int URL func(childComplexity int) int URLField func(childComplexity int) int } PropertySchema struct { Groups func(childComplexity int) int ID func(childComplexity int) int LinkableFields func(childComplexity int) int } PropertySchemaField struct { AllTranslatedDescription func(childComplexity int) int AllTranslatedTitle func(childComplexity int) int Choices func(childComplexity int) int DefaultValue func(childComplexity int) int Description func(childComplexity int) int FieldID func(childComplexity int) int IsAvailableIf func(childComplexity int) int Max func(childComplexity int) int Min func(childComplexity int) int Prefix func(childComplexity int) int Suffix func(childComplexity int) int Title func(childComplexity int) int TranslatedDescription func(childComplexity int, lang *string) int TranslatedTitle func(childComplexity int, lang *string) int Type func(childComplexity int) int UI func(childComplexity int) int } PropertySchemaFieldChoice struct { AllTranslatedTitle func(childComplexity int) int Icon func(childComplexity int) int Key func(childComplexity int) int Title func(childComplexity int) int TranslatedTitle func(childComplexity int, lang *string) int } PropertySchemaGroup struct { AllTranslatedTitle func(childComplexity int) int Fields func(childComplexity int) int IsAvailableIf func(childComplexity int) int IsList func(childComplexity int) int RepresentativeField func(childComplexity int) int RepresentativeFieldID func(childComplexity int) int Schema func(childComplexity int) int SchemaGroupID func(childComplexity int) int SchemaID func(childComplexity int) int Title func(childComplexity int) int TranslatedTitle func(childComplexity int, lang *string) int } Query struct { Assets func(childComplexity int, teamID id.ID, first *int, last *int, after *usecase.Cursor, before *usecase.Cursor) int CheckProjectAlias func(childComplexity int, alias string) int DatasetSchemas func(childComplexity int, sceneID id.ID, first *int, last *int, after *usecase.Cursor, before *usecase.Cursor) int Datasets func(childComplexity int, datasetSchemaID id.ID, first *int, last *int, after *usecase.Cursor, before *usecase.Cursor) int DynamicDatasetSchemas func(childComplexity int, sceneID id.ID) int InstallablePlugins func(childComplexity int) int Layer func(childComplexity int, id id.ID) int Me func(childComplexity int) int Node func(childComplexity int, id id.ID, typeArg gqlmodel.NodeType) int Nodes func(childComplexity int, id []*id.ID, typeArg gqlmodel.NodeType) int Plugin func(childComplexity int, id id.PluginID) int Plugins func(childComplexity int, id []*id.PluginID) int Projects func(childComplexity int, teamID id.ID, includeArchived *bool, first *int, last *int, after *usecase.Cursor, before *usecase.Cursor) int PropertySchema func(childComplexity int, id id.PropertySchemaID) int PropertySchemas func(childComplexity int, id []*id.PropertySchemaID) int Scene func(childComplexity int, projectID id.ID) int SceneLock func(childComplexity int, sceneID id.ID) int SearchUser func(childComplexity int, nameOrEmail string) int } Rect struct { East func(childComplexity int) int North func(childComplexity int) int South func(childComplexity int) int West func(childComplexity int) int } RemoveAssetPayload struct { AssetID func(childComplexity int) int } RemoveDatasetSchemaPayload struct { SchemaID func(childComplexity int) int } RemoveInfoboxFieldPayload struct { InfoboxFieldID func(childComplexity int) int Layer func(childComplexity int) int } RemoveInfoboxPayload struct { Layer func(childComplexity int) int } RemoveLayerPayload struct { LayerID func(childComplexity int) int ParentLayer func(childComplexity int) int } RemoveMemberFromTeamPayload struct { Team func(childComplexity int) int } RemoveTagPayload struct { TagID func(childComplexity int) int } RemoveWidgetPayload struct { Scene func(childComplexity int) int WidgetID func(childComplexity int) int } Scene struct { CreatedAt func(childComplexity int) int DatasetSchemas func(childComplexity int, first *int, last *int, after *usecase.Cursor, before *usecase.Cursor) int DynamicDatasetSchemas func(childComplexity int) int ID func(childComplexity int) int LockMode func(childComplexity int) int Plugins func(childComplexity int) int Project func(childComplexity int) int ProjectID func(childComplexity int) int Property func(childComplexity int) int PropertyID func(childComplexity int) int RootLayer func(childComplexity int) int RootLayerID func(childComplexity int) int TagIds func(childComplexity int) int Tags func(childComplexity int) int Team func(childComplexity int) int TeamID func(childComplexity int) int UpdatedAt func(childComplexity int) int WidgetAlignSystem func(childComplexity int) int Widgets func(childComplexity int) int } ScenePlugin struct { Plugin func(childComplexity int) int PluginID func(childComplexity int) int Property func(childComplexity int) int PropertyID func(childComplexity int) int } SceneWidget struct { Enabled func(childComplexity int) int Extended func(childComplexity int) int Extension func(childComplexity int) int ExtensionID func(childComplexity int) int ID func(childComplexity int) int Plugin func(childComplexity int) int PluginID func(childComplexity int) int Property func(childComplexity int) int PropertyID func(childComplexity int) int } SearchedUser struct { UserEmail func(childComplexity int) int UserID func(childComplexity int) int UserName func(childComplexity int) int } SignupPayload struct { Team func(childComplexity int) int User func(childComplexity int) int } SyncDatasetPayload struct { Dataset func(childComplexity int) int DatasetSchema func(childComplexity int) int SceneID func(childComplexity int) int URL func(childComplexity int) int } TagGroup struct { ID func(childComplexity int) int Label func(childComplexity int) int SceneID func(childComplexity int) int Tags func(childComplexity int) int } TagItem struct { ID func(childComplexity int) int Label func(childComplexity int) int LinkedDataset func(childComplexity int) int LinkedDatasetField func(childComplexity int) int LinkedDatasetFieldID func(childComplexity int) int LinkedDatasetID func(childComplexity int) int LinkedDatasetSchema func(childComplexity int) int LinkedDatasetSchemaID func(childComplexity int) int SceneID func(childComplexity int) int } Team struct { Assets func(childComplexity int, first *int, last *int, after *usecase.Cursor, before *usecase.Cursor) int ID func(childComplexity int) int Members func(childComplexity int) int Name func(childComplexity int) int Personal func(childComplexity int) int Projects func(childComplexity int, includeArchived *bool, first *int, last *int, after *usecase.Cursor, before *usecase.Cursor) int } TeamMember struct { Role func(childComplexity int) int User func(childComplexity int) int UserID func(childComplexity int) int } Typography struct { Bold func(childComplexity int) int Color func(childComplexity int) int FontFamily func(childComplexity int) int FontSize func(childComplexity int) int FontWeight func(childComplexity int) int Italic func(childComplexity int) int TextAlign func(childComplexity int) int Underline func(childComplexity int) int } UninstallPluginPayload struct { PluginID func(childComplexity int) int Scene func(childComplexity int) int } UpdateDatasetSchemaPayload struct { DatasetSchema func(childComplexity int) int } UpdateLayerPayload struct { Layer func(childComplexity int) int } UpdateMePayload struct { User func(childComplexity int) int } UpdateMemberOfTeamPayload struct { Team func(childComplexity int) int } UpdateTagPayload struct { Tag func(childComplexity int) int } UpdateTeamPayload struct { Team func(childComplexity int) int } UpdateWidgetAlignSystemPayload struct { Scene func(childComplexity int) int } UpdateWidgetPayload struct { Scene func(childComplexity int) int SceneWidget func(childComplexity int) int } UpgradePluginPayload struct { Scene func(childComplexity int) int ScenePlugin func(childComplexity int) int } UploadPluginPayload struct { Plugin func(childComplexity int) int Scene func(childComplexity int) int ScenePlugin func(childComplexity int) int } User struct { Auths func(childComplexity int) int Email func(childComplexity int) int ID func(childComplexity int) int Lang func(childComplexity int) int MyTeam func(childComplexity int) int MyTeamID func(childComplexity int) int Name func(childComplexity int) int Teams func(childComplexity int) int Theme func(childComplexity int) int } WidgetAlignSystem struct { Inner func(childComplexity int) int Outer func(childComplexity int) int } WidgetArea struct { Align func(childComplexity int) int WidgetIds func(childComplexity int) int } WidgetExtendable struct { Horizontally func(childComplexity int) int Vertically func(childComplexity int) int } WidgetLayout struct { DefaultLocation func(childComplexity int) int Extendable func(childComplexity int) int Extended func(childComplexity int) int Floating func(childComplexity int) int } WidgetLocation struct { Area func(childComplexity int) int Section func(childComplexity int) int Zone func(childComplexity int) int } WidgetSection struct { Bottom func(childComplexity int) int Middle func(childComplexity int) int Top func(childComplexity int) int } WidgetZone struct { Center func(childComplexity int) int Left func(childComplexity int) int Right func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type ContextKey ¶
type ContextKey string
const ( ContextUser ContextKey = "user" ContextOperator ContextKey = "operator" ContextSub ContextKey = "sub" )
type DataLoaders ¶
type DataLoaders struct { Asset AssetDataLoader Dataset DatasetDataLoader DatasetSchema DatasetSchemaDataLoader LayerItem LayerItemDataLoader LayerGroup LayerGroupDataLoader Layer LayerDataLoader Plugin PluginDataLoader Project ProjectDataLoader Property PropertyDataLoader PropertySchema PropertySchemaDataLoader Scene SceneDataLoader Team TeamDataLoader User UserDataLoader Tag TagDataLoader TagItem TagItemDataLoader TagGroup TagGroupDataLoader }
func DataLoadersFromContext ¶
func DataLoadersFromContext(ctx context.Context) DataLoaders
type DatasetDataLoader ¶
type DatasetFieldResolver ¶
type DatasetFieldResolver interface { Schema(ctx context.Context, obj *gqlmodel.DatasetField) (*gqlmodel.DatasetSchema, error) Field(ctx context.Context, obj *gqlmodel.DatasetField) (*gqlmodel.DatasetSchemaField, error) ValueRef(ctx context.Context, obj *gqlmodel.DatasetField) (*gqlmodel.Dataset, error) }
type DatasetLoader ¶
type DatasetLoader struct {
// contains filtered or unexported fields
}
func NewDatasetLoader ¶
func NewDatasetLoader(usecase interfaces.Dataset) *DatasetLoader
func (*DatasetLoader) DataLoader ¶
func (c *DatasetLoader) DataLoader(ctx context.Context) DatasetDataLoader
func (*DatasetLoader) FetchSchema ¶
func (c *DatasetLoader) FetchSchema(ctx context.Context, ids []id.DatasetSchemaID) ([]*gqlmodel.DatasetSchema, []error)
func (*DatasetLoader) FindBySchema ¶
func (*DatasetLoader) FindDynamicSchemasByScene ¶
func (c *DatasetLoader) FindDynamicSchemasByScene(ctx context.Context, sid id.ID) ([]*gqlmodel.DatasetSchema, error)
func (*DatasetLoader) FindSchemaByScene ¶
func (*DatasetLoader) GraphFetch ¶
func (*DatasetLoader) GraphFetchSchema ¶
func (c *DatasetLoader) GraphFetchSchema(ctx context.Context, i id.ID, depth int) ([]*gqlmodel.DatasetSchema, []error)
func (*DatasetLoader) OrdinaryDataLoader ¶
func (c *DatasetLoader) OrdinaryDataLoader(ctx context.Context) DatasetDataLoader
func (*DatasetLoader) SchemaDataLoader ¶
func (c *DatasetLoader) SchemaDataLoader(ctx context.Context) DatasetSchemaDataLoader
func (*DatasetLoader) SchemaOrdinaryDataLoader ¶
func (c *DatasetLoader) SchemaOrdinaryDataLoader(ctx context.Context) DatasetSchemaDataLoader
type DatasetResolver ¶
type DatasetSchemaDataLoader ¶
type DatasetSchemaDataLoader interface { Load(id.DatasetSchemaID) (*gqlmodel.DatasetSchema, error) LoadAll([]id.DatasetSchemaID) ([]*gqlmodel.DatasetSchema, []error) }
type DatasetSchemaFieldResolver ¶
type DatasetSchemaFieldResolver interface { Schema(ctx context.Context, obj *gqlmodel.DatasetSchemaField) (*gqlmodel.DatasetSchema, error) Ref(ctx context.Context, obj *gqlmodel.DatasetSchemaField) (*gqlmodel.DatasetSchema, error) }
type DatasetSchemaResolver ¶
type DatasetSchemaResolver interface { Datasets(ctx context.Context, obj *gqlmodel.DatasetSchema, first *int, last *int, after *usecase.Cursor, before *usecase.Cursor) (*gqlmodel.DatasetConnection, error) Scene(ctx context.Context, obj *gqlmodel.DatasetSchema) (*gqlmodel.Scene, error) RepresentativeField(ctx context.Context, obj *gqlmodel.DatasetSchema) (*gqlmodel.DatasetSchemaField, error) }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type InfoboxFieldResolver ¶
type InfoboxFieldResolver interface { Layer(ctx context.Context, obj *gqlmodel.InfoboxField) (gqlmodel.Layer, error) Infobox(ctx context.Context, obj *gqlmodel.InfoboxField) (*gqlmodel.Infobox, error) Property(ctx context.Context, obj *gqlmodel.InfoboxField) (*gqlmodel.Property, error) Plugin(ctx context.Context, obj *gqlmodel.InfoboxField) (*gqlmodel.Plugin, error) Extension(ctx context.Context, obj *gqlmodel.InfoboxField) (*gqlmodel.PluginExtension, error) LinkedDataset(ctx context.Context, obj *gqlmodel.InfoboxField) (*gqlmodel.Dataset, error) Merged(ctx context.Context, obj *gqlmodel.InfoboxField) (*gqlmodel.MergedInfoboxField, error) Scene(ctx context.Context, obj *gqlmodel.InfoboxField) (*gqlmodel.Scene, error) ScenePlugin(ctx context.Context, obj *gqlmodel.InfoboxField) (*gqlmodel.ScenePlugin, error) }
type InfoboxResolver ¶
type InfoboxResolver interface { Layer(ctx context.Context, obj *gqlmodel.Infobox) (gqlmodel.Layer, error) Property(ctx context.Context, obj *gqlmodel.Infobox) (*gqlmodel.Property, error) LinkedDataset(ctx context.Context, obj *gqlmodel.Infobox) (*gqlmodel.Dataset, error) Merged(ctx context.Context, obj *gqlmodel.Infobox) (*gqlmodel.MergedInfobox, error) Scene(ctx context.Context, obj *gqlmodel.Infobox) (*gqlmodel.Scene, error) }
type LayerDataLoader ¶
type LayerGroupDataLoader ¶
type LayerGroupDataLoader interface { Load(id.LayerID) (*gqlmodel.LayerGroup, error) LoadAll([]id.LayerID) ([]*gqlmodel.LayerGroup, []error) }
type LayerGroupResolver ¶
type LayerGroupResolver interface { Parent(ctx context.Context, obj *gqlmodel.LayerGroup) (*gqlmodel.LayerGroup, error) Property(ctx context.Context, obj *gqlmodel.LayerGroup) (*gqlmodel.Property, error) Plugin(ctx context.Context, obj *gqlmodel.LayerGroup) (*gqlmodel.Plugin, error) Extension(ctx context.Context, obj *gqlmodel.LayerGroup) (*gqlmodel.PluginExtension, error) LinkedDatasetSchema(ctx context.Context, obj *gqlmodel.LayerGroup) (*gqlmodel.DatasetSchema, error) Layers(ctx context.Context, obj *gqlmodel.LayerGroup) ([]gqlmodel.Layer, error) Scene(ctx context.Context, obj *gqlmodel.LayerGroup) (*gqlmodel.Scene, error) ScenePlugin(ctx context.Context, obj *gqlmodel.LayerGroup) (*gqlmodel.ScenePlugin, error) Tags(ctx context.Context, obj *gqlmodel.LayerGroup) ([]gqlmodel.Tag, error) }
type LayerItemDataLoader ¶
type LayerItemResolver ¶
type LayerItemResolver interface { Parent(ctx context.Context, obj *gqlmodel.LayerItem) (*gqlmodel.LayerGroup, error) Property(ctx context.Context, obj *gqlmodel.LayerItem) (*gqlmodel.Property, error) Plugin(ctx context.Context, obj *gqlmodel.LayerItem) (*gqlmodel.Plugin, error) Extension(ctx context.Context, obj *gqlmodel.LayerItem) (*gqlmodel.PluginExtension, error) LinkedDataset(ctx context.Context, obj *gqlmodel.LayerItem) (*gqlmodel.Dataset, error) Merged(ctx context.Context, obj *gqlmodel.LayerItem) (*gqlmodel.MergedLayer, error) Scene(ctx context.Context, obj *gqlmodel.LayerItem) (*gqlmodel.Scene, error) ScenePlugin(ctx context.Context, obj *gqlmodel.LayerItem) (*gqlmodel.ScenePlugin, error) Tags(ctx context.Context, obj *gqlmodel.LayerItem) ([]gqlmodel.Tag, error) }
type LayerLoader ¶
type LayerLoader struct {
// contains filtered or unexported fields
}
func NewLayerLoader ¶
func NewLayerLoader(usecase interfaces.Layer) *LayerLoader
func (*LayerLoader) DataLoader ¶
func (c *LayerLoader) DataLoader(ctx context.Context) LayerDataLoader
func (*LayerLoader) FetchByProperty ¶
func (c *LayerLoader) FetchByProperty(ctx context.Context, pid id.PropertyID) (gqlmodel.Layer, error)
func (*LayerLoader) FetchGroup ¶
func (c *LayerLoader) FetchGroup(ctx context.Context, ids []id.LayerID) ([]*gqlmodel.LayerGroup, []error)
func (*LayerLoader) FetchMerged ¶
func (c *LayerLoader) FetchMerged(ctx context.Context, org id.LayerID, parent *id.LayerID) (*gqlmodel.MergedLayer, error)
func (*LayerLoader) FetchParent ¶
func (c *LayerLoader) FetchParent(ctx context.Context, lid id.LayerID) (*gqlmodel.LayerGroup, error)
func (*LayerLoader) FetchParentAndMerged ¶
func (c *LayerLoader) FetchParentAndMerged(ctx context.Context, org id.LayerID) (*gqlmodel.MergedLayer, error)
func (*LayerLoader) GroupDataLoader ¶
func (c *LayerLoader) GroupDataLoader(ctx context.Context) LayerGroupDataLoader
func (*LayerLoader) GroupOrdinaryDataLoader ¶
func (c *LayerLoader) GroupOrdinaryDataLoader(ctx context.Context) LayerGroupDataLoader
func (*LayerLoader) ItemDataLoader ¶
func (c *LayerLoader) ItemDataLoader(ctx context.Context) LayerItemDataLoader
func (*LayerLoader) ItemOrdinaryDataLoader ¶
func (c *LayerLoader) ItemOrdinaryDataLoader(ctx context.Context) LayerItemDataLoader
func (*LayerLoader) OrdinaryDataLoader ¶
func (c *LayerLoader) OrdinaryDataLoader(ctx context.Context) LayerDataLoader
type Loaders ¶
type Loaders struct { Asset *AssetLoader Dataset *DatasetLoader Layer *LayerLoader Plugin *PluginLoader Project *ProjectLoader Property *PropertyLoader Scene *SceneLoader Team *TeamLoader User *UserLoader Tag *TagLoader // contains filtered or unexported fields }
func NewLoaders ¶
func NewLoaders(usecases interfaces.Container) Loaders
func (Loaders) DataLoaders ¶
func (l Loaders) DataLoaders(ctx context.Context) DataLoaders
func (Loaders) DataLoadersWith ¶
func (l Loaders) DataLoadersWith(ctx context.Context, enabled bool) DataLoaders
func (Loaders) OrdinaryDataLoaders ¶
func (l Loaders) OrdinaryDataLoaders(ctx context.Context) DataLoaders
type MergedInfoboxFieldResolver ¶
type MergedInfoboxFieldResolver interface { Plugin(ctx context.Context, obj *gqlmodel.MergedInfoboxField) (*gqlmodel.Plugin, error) Extension(ctx context.Context, obj *gqlmodel.MergedInfoboxField) (*gqlmodel.PluginExtension, error) Scene(ctx context.Context, obj *gqlmodel.MergedInfoboxField) (*gqlmodel.Scene, error) ScenePlugin(ctx context.Context, obj *gqlmodel.MergedInfoboxField) (*gqlmodel.ScenePlugin, error) }
type MergedInfoboxResolver ¶
type MergedLayerResolver ¶
type MergedPropertyFieldResolver ¶
type MergedPropertyFieldResolver interface { Schema(ctx context.Context, obj *gqlmodel.MergedPropertyField) (*gqlmodel.PropertySchema, error) Field(ctx context.Context, obj *gqlmodel.MergedPropertyField) (*gqlmodel.PropertySchemaField, error) ActualValue(ctx context.Context, obj *gqlmodel.MergedPropertyField) (interface{}, error) }
type MergedPropertyGroupResolver ¶
type MergedPropertyGroupResolver interface { OriginalProperty(ctx context.Context, obj *gqlmodel.MergedPropertyGroup) (*gqlmodel.Property, error) ParentProperty(ctx context.Context, obj *gqlmodel.MergedPropertyGroup) (*gqlmodel.Property, error) Original(ctx context.Context, obj *gqlmodel.MergedPropertyGroup) (*gqlmodel.PropertyGroup, error) Parent(ctx context.Context, obj *gqlmodel.MergedPropertyGroup) (*gqlmodel.PropertyGroup, error) Schema(ctx context.Context, obj *gqlmodel.MergedPropertyGroup) (*gqlmodel.PropertySchema, error) LinkedDataset(ctx context.Context, obj *gqlmodel.MergedPropertyGroup) (*gqlmodel.Dataset, error) }
type MergedPropertyResolver ¶
type MergedPropertyResolver interface { Original(ctx context.Context, obj *gqlmodel.MergedProperty) (*gqlmodel.Property, error) Parent(ctx context.Context, obj *gqlmodel.MergedProperty) (*gqlmodel.Property, error) Schema(ctx context.Context, obj *gqlmodel.MergedProperty) (*gqlmodel.PropertySchema, error) LinkedDataset(ctx context.Context, obj *gqlmodel.MergedProperty) (*gqlmodel.Dataset, error) Groups(ctx context.Context, obj *gqlmodel.MergedProperty) ([]*gqlmodel.MergedPropertyGroup, error) }
type MutationResolver ¶
type MutationResolver interface { CreateAsset(ctx context.Context, input gqlmodel.CreateAssetInput) (*gqlmodel.CreateAssetPayload, error) RemoveAsset(ctx context.Context, input gqlmodel.RemoveAssetInput) (*gqlmodel.RemoveAssetPayload, error) Signup(ctx context.Context, input gqlmodel.SignupInput) (*gqlmodel.SignupPayload, error) UpdateMe(ctx context.Context, input gqlmodel.UpdateMeInput) (*gqlmodel.UpdateMePayload, error) RemoveMyAuth(ctx context.Context, input gqlmodel.RemoveMyAuthInput) (*gqlmodel.UpdateMePayload, error) DeleteMe(ctx context.Context, input gqlmodel.DeleteMeInput) (*gqlmodel.DeleteMePayload, error) CreateTeam(ctx context.Context, input gqlmodel.CreateTeamInput) (*gqlmodel.CreateTeamPayload, error) DeleteTeam(ctx context.Context, input gqlmodel.DeleteTeamInput) (*gqlmodel.DeleteTeamPayload, error) UpdateTeam(ctx context.Context, input gqlmodel.UpdateTeamInput) (*gqlmodel.UpdateTeamPayload, error) AddMemberToTeam(ctx context.Context, input gqlmodel.AddMemberToTeamInput) (*gqlmodel.AddMemberToTeamPayload, error) RemoveMemberFromTeam(ctx context.Context, input gqlmodel.RemoveMemberFromTeamInput) (*gqlmodel.RemoveMemberFromTeamPayload, error) UpdateMemberOfTeam(ctx context.Context, input gqlmodel.UpdateMemberOfTeamInput) (*gqlmodel.UpdateMemberOfTeamPayload, error) CreateProject(ctx context.Context, input gqlmodel.CreateProjectInput) (*gqlmodel.ProjectPayload, error) UpdateProject(ctx context.Context, input gqlmodel.UpdateProjectInput) (*gqlmodel.ProjectPayload, error) PublishProject(ctx context.Context, input gqlmodel.PublishProjectInput) (*gqlmodel.ProjectPayload, error) DeleteProject(ctx context.Context, input gqlmodel.DeleteProjectInput) (*gqlmodel.DeleteProjectPayload, error) CreateScene(ctx context.Context, input gqlmodel.CreateSceneInput) (*gqlmodel.CreateScenePayload, error) AddWidget(ctx context.Context, input gqlmodel.AddWidgetInput) (*gqlmodel.AddWidgetPayload, error) UpdateWidget(ctx context.Context, input gqlmodel.UpdateWidgetInput) (*gqlmodel.UpdateWidgetPayload, error) UpdateWidgetAlignSystem(ctx context.Context, input gqlmodel.UpdateWidgetAlignSystemInput) (*gqlmodel.UpdateWidgetAlignSystemPayload, error) RemoveWidget(ctx context.Context, input gqlmodel.RemoveWidgetInput) (*gqlmodel.RemoveWidgetPayload, error) InstallPlugin(ctx context.Context, input gqlmodel.InstallPluginInput) (*gqlmodel.InstallPluginPayload, error) UninstallPlugin(ctx context.Context, input gqlmodel.UninstallPluginInput) (*gqlmodel.UninstallPluginPayload, error) UploadPlugin(ctx context.Context, input gqlmodel.UploadPluginInput) (*gqlmodel.UploadPluginPayload, error) UpgradePlugin(ctx context.Context, input gqlmodel.UpgradePluginInput) (*gqlmodel.UpgradePluginPayload, error) UpdateDatasetSchema(ctx context.Context, input gqlmodel.UpdateDatasetSchemaInput) (*gqlmodel.UpdateDatasetSchemaPayload, error) SyncDataset(ctx context.Context, input gqlmodel.SyncDatasetInput) (*gqlmodel.SyncDatasetPayload, error) AddDynamicDatasetSchema(ctx context.Context, input gqlmodel.AddDynamicDatasetSchemaInput) (*gqlmodel.AddDynamicDatasetSchemaPayload, error) AddDynamicDataset(ctx context.Context, input gqlmodel.AddDynamicDatasetInput) (*gqlmodel.AddDynamicDatasetPayload, error) RemoveDatasetSchema(ctx context.Context, input gqlmodel.RemoveDatasetSchemaInput) (*gqlmodel.RemoveDatasetSchemaPayload, error) ImportDataset(ctx context.Context, input gqlmodel.ImportDatasetInput) (*gqlmodel.ImportDatasetPayload, error) ImportDatasetFromGoogleSheet(ctx context.Context, input gqlmodel.ImportDatasetFromGoogleSheetInput) (*gqlmodel.ImportDatasetPayload, error) AddDatasetSchema(ctx context.Context, input gqlmodel.AddDatasetSchemaInput) (*gqlmodel.AddDatasetSchemaPayload, error) UpdatePropertyValue(ctx context.Context, input gqlmodel.UpdatePropertyValueInput) (*gqlmodel.PropertyFieldPayload, error) RemovePropertyField(ctx context.Context, input gqlmodel.RemovePropertyFieldInput) (*gqlmodel.PropertyFieldPayload, error) UploadFileToProperty(ctx context.Context, input gqlmodel.UploadFileToPropertyInput) (*gqlmodel.PropertyFieldPayload, error) LinkDatasetToPropertyValue(ctx context.Context, input gqlmodel.LinkDatasetToPropertyValueInput) (*gqlmodel.PropertyFieldPayload, error) UnlinkPropertyValue(ctx context.Context, input gqlmodel.UnlinkPropertyValueInput) (*gqlmodel.PropertyFieldPayload, error) AddPropertyItem(ctx context.Context, input gqlmodel.AddPropertyItemInput) (*gqlmodel.PropertyItemPayload, error) MovePropertyItem(ctx context.Context, input gqlmodel.MovePropertyItemInput) (*gqlmodel.PropertyItemPayload, error) RemovePropertyItem(ctx context.Context, input gqlmodel.RemovePropertyItemInput) (*gqlmodel.PropertyItemPayload, error) UpdatePropertyItems(ctx context.Context, input gqlmodel.UpdatePropertyItemInput) (*gqlmodel.PropertyItemPayload, error) AddLayerItem(ctx context.Context, input gqlmodel.AddLayerItemInput) (*gqlmodel.AddLayerItemPayload, error) AddLayerGroup(ctx context.Context, input gqlmodel.AddLayerGroupInput) (*gqlmodel.AddLayerGroupPayload, error) RemoveLayer(ctx context.Context, input gqlmodel.RemoveLayerInput) (*gqlmodel.RemoveLayerPayload, error) UpdateLayer(ctx context.Context, input gqlmodel.UpdateLayerInput) (*gqlmodel.UpdateLayerPayload, error) MoveLayer(ctx context.Context, input gqlmodel.MoveLayerInput) (*gqlmodel.MoveLayerPayload, error) CreateInfobox(ctx context.Context, input gqlmodel.CreateInfoboxInput) (*gqlmodel.CreateInfoboxPayload, error) RemoveInfobox(ctx context.Context, input gqlmodel.RemoveInfoboxInput) (*gqlmodel.RemoveInfoboxPayload, error) AddInfoboxField(ctx context.Context, input gqlmodel.AddInfoboxFieldInput) (*gqlmodel.AddInfoboxFieldPayload, error) MoveInfoboxField(ctx context.Context, input gqlmodel.MoveInfoboxFieldInput) (*gqlmodel.MoveInfoboxFieldPayload, error) RemoveInfoboxField(ctx context.Context, input gqlmodel.RemoveInfoboxFieldInput) (*gqlmodel.RemoveInfoboxFieldPayload, error) ImportLayer(ctx context.Context, input gqlmodel.ImportLayerInput) (*gqlmodel.ImportLayerPayload, error) AttachTagToLayer(ctx context.Context, input gqlmodel.AttachTagToLayerInput) (*gqlmodel.AttachTagToLayerPayload, error) DetachTagFromLayer(ctx context.Context, input gqlmodel.DetachTagFromLayerInput) (*gqlmodel.DetachTagFromLayerPayload, error) CreateTagItem(ctx context.Context, input gqlmodel.CreateTagItemInput) (*gqlmodel.CreateTagItemPayload, error) CreateTagGroup(ctx context.Context, input gqlmodel.CreateTagGroupInput) (*gqlmodel.CreateTagGroupPayload, error) AttachTagItemToGroup(ctx context.Context, input gqlmodel.AttachTagItemToGroupInput) (*gqlmodel.AttachTagItemToGroupPayload, error) DetachTagItemFromGroup(ctx context.Context, input gqlmodel.DetachTagItemFromGroupInput) (*gqlmodel.DetachTagItemFromGroupPayload, error) UpdateTag(ctx context.Context, input gqlmodel.UpdateTagInput) (*gqlmodel.UpdateTagPayload, error) RemoveTag(ctx context.Context, input gqlmodel.RemoveTagInput) (*gqlmodel.RemoveTagPayload, error) }
type PluginDataLoader ¶
type PluginExtensionResolver ¶
type PluginExtensionResolver interface { Plugin(ctx context.Context, obj *gqlmodel.PluginExtension) (*gqlmodel.Plugin, error) SceneWidget(ctx context.Context, obj *gqlmodel.PluginExtension, sceneID id.ID) (*gqlmodel.SceneWidget, error) PropertySchema(ctx context.Context, obj *gqlmodel.PluginExtension) (*gqlmodel.PropertySchema, error) TranslatedName(ctx context.Context, obj *gqlmodel.PluginExtension, lang *string) (string, error) TranslatedDescription(ctx context.Context, obj *gqlmodel.PluginExtension, lang *string) (string, error) }
type PluginLoader ¶
type PluginLoader struct {
// contains filtered or unexported fields
}
func NewPluginLoader ¶
func NewPluginLoader(usecase interfaces.Plugin) *PluginLoader
func (*PluginLoader) DataLoader ¶
func (c *PluginLoader) DataLoader(ctx context.Context) PluginDataLoader
func (*PluginLoader) FetchPluginMetadata ¶
func (c *PluginLoader) FetchPluginMetadata(ctx context.Context) ([]*gqlmodel.PluginMetadata, error)
func (*PluginLoader) OrdinaryDataLoader ¶
func (c *PluginLoader) OrdinaryDataLoader(ctx context.Context) PluginDataLoader
type PluginResolver ¶
type PluginResolver interface { Scene(ctx context.Context, obj *gqlmodel.Plugin) (*gqlmodel.Scene, error) TranslatedName(ctx context.Context, obj *gqlmodel.Plugin, lang *string) (string, error) TranslatedDescription(ctx context.Context, obj *gqlmodel.Plugin, lang *string) (string, error) PropertySchema(ctx context.Context, obj *gqlmodel.Plugin) (*gqlmodel.PropertySchema, error) }
type ProjectDataLoader ¶
type ProjectLoader ¶
type ProjectLoader struct {
// contains filtered or unexported fields
}
func NewProjectLoader ¶
func NewProjectLoader(usecase interfaces.Project) *ProjectLoader
func (*ProjectLoader) CheckAlias ¶
func (c *ProjectLoader) CheckAlias(ctx context.Context, alias string) (*gqlmodel.ProjectAliasAvailability, error)
func (*ProjectLoader) DataLoader ¶
func (c *ProjectLoader) DataLoader(ctx context.Context) ProjectDataLoader
func (*ProjectLoader) FindByTeam ¶
func (*ProjectLoader) OrdinaryDataLoader ¶
func (c *ProjectLoader) OrdinaryDataLoader(ctx context.Context) ProjectDataLoader
type ProjectResolver ¶
type PropertyDataLoader ¶
type PropertyDataLoader interface { Load(id.PropertyID) (*gqlmodel.Property, error) LoadAll([]id.PropertyID) ([]*gqlmodel.Property, []error) }
type PropertyFieldLinkResolver ¶
type PropertyFieldLinkResolver interface { Dataset(ctx context.Context, obj *gqlmodel.PropertyFieldLink) (*gqlmodel.Dataset, error) DatasetField(ctx context.Context, obj *gqlmodel.PropertyFieldLink) (*gqlmodel.DatasetField, error) DatasetSchema(ctx context.Context, obj *gqlmodel.PropertyFieldLink) (*gqlmodel.DatasetSchema, error) DatasetSchemaField(ctx context.Context, obj *gqlmodel.PropertyFieldLink) (*gqlmodel.DatasetSchemaField, error) }
type PropertyFieldResolver ¶
type PropertyFieldResolver interface { Parent(ctx context.Context, obj *gqlmodel.PropertyField) (*gqlmodel.Property, error) Schema(ctx context.Context, obj *gqlmodel.PropertyField) (*gqlmodel.PropertySchema, error) Field(ctx context.Context, obj *gqlmodel.PropertyField) (*gqlmodel.PropertySchemaField, error) ActualValue(ctx context.Context, obj *gqlmodel.PropertyField) (interface{}, error) }
type PropertyGroupListResolver ¶
type PropertyGroupListResolver interface { Schema(ctx context.Context, obj *gqlmodel.PropertyGroupList) (*gqlmodel.PropertySchema, error) SchemaGroup(ctx context.Context, obj *gqlmodel.PropertyGroupList) (*gqlmodel.PropertySchemaGroup, error) }
type PropertyGroupResolver ¶
type PropertyGroupResolver interface { Schema(ctx context.Context, obj *gqlmodel.PropertyGroup) (*gqlmodel.PropertySchema, error) SchemaGroup(ctx context.Context, obj *gqlmodel.PropertyGroup) (*gqlmodel.PropertySchemaGroup, error) }
type PropertyLinkableFieldsResolver ¶
type PropertyLinkableFieldsResolver interface { LatlngField(ctx context.Context, obj *gqlmodel.PropertyLinkableFields) (*gqlmodel.PropertySchemaField, error) URLField(ctx context.Context, obj *gqlmodel.PropertyLinkableFields) (*gqlmodel.PropertySchemaField, error) Schema(ctx context.Context, obj *gqlmodel.PropertyLinkableFields) (*gqlmodel.PropertySchema, error) }
type PropertyLoader ¶
type PropertyLoader struct {
// contains filtered or unexported fields
}
func NewPropertyLoader ¶
func NewPropertyLoader(usecase interfaces.Property) *PropertyLoader
func (*PropertyLoader) DataLoader ¶
func (c *PropertyLoader) DataLoader(ctx context.Context) PropertyDataLoader
func (*PropertyLoader) Fetch ¶
func (c *PropertyLoader) Fetch(ctx context.Context, ids []id.PropertyID) ([]*gqlmodel.Property, []error)
func (*PropertyLoader) FetchMerged ¶
func (c *PropertyLoader) FetchMerged(ctx context.Context, org, parent, linked *id.ID) (*gqlmodel.MergedProperty, error)
func (*PropertyLoader) FetchSchema ¶
func (c *PropertyLoader) FetchSchema(ctx context.Context, ids []id.PropertySchemaID) ([]*gqlmodel.PropertySchema, []error)
func (*PropertyLoader) OrdinaryDataLoader ¶
func (c *PropertyLoader) OrdinaryDataLoader(ctx context.Context) PropertyDataLoader
func (*PropertyLoader) SchemaDataLoader ¶
func (c *PropertyLoader) SchemaDataLoader(ctx context.Context) PropertySchemaDataLoader
func (*PropertyLoader) SchemaOrdinaryDataLoader ¶
func (c *PropertyLoader) SchemaOrdinaryDataLoader(ctx context.Context) PropertySchemaDataLoader
type PropertyResolver ¶
type PropertySchemaDataLoader ¶
type PropertySchemaDataLoader interface { Load(id.PropertySchemaID) (*gqlmodel.PropertySchema, error) LoadAll([]id.PropertySchemaID) ([]*gqlmodel.PropertySchema, []error) }
type PropertySchemaGroupResolver ¶
type PropertySchemaGroupResolver interface { Schema(ctx context.Context, obj *gqlmodel.PropertySchemaGroup) (*gqlmodel.PropertySchema, error) TranslatedTitle(ctx context.Context, obj *gqlmodel.PropertySchemaGroup, lang *string) (string, error) }
type QueryResolver ¶
type QueryResolver interface { Me(ctx context.Context) (*gqlmodel.User, error) Node(ctx context.Context, id id.ID, typeArg gqlmodel.NodeType) (gqlmodel.Node, error) Nodes(ctx context.Context, id []*id.ID, typeArg gqlmodel.NodeType) ([]gqlmodel.Node, error) PropertySchema(ctx context.Context, id id.PropertySchemaID) (*gqlmodel.PropertySchema, error) PropertySchemas(ctx context.Context, id []*id.PropertySchemaID) ([]*gqlmodel.PropertySchema, error) Plugin(ctx context.Context, id id.PluginID) (*gqlmodel.Plugin, error) Plugins(ctx context.Context, id []*id.PluginID) ([]*gqlmodel.Plugin, error) Layer(ctx context.Context, id id.ID) (gqlmodel.Layer, error) Scene(ctx context.Context, projectID id.ID) (*gqlmodel.Scene, error) Assets(ctx context.Context, teamID id.ID, first *int, last *int, after *usecase.Cursor, before *usecase.Cursor) (*gqlmodel.AssetConnection, error) Projects(ctx context.Context, teamID id.ID, includeArchived *bool, first *int, last *int, after *usecase.Cursor, before *usecase.Cursor) (*gqlmodel.ProjectConnection, error) DatasetSchemas(ctx context.Context, sceneID id.ID, first *int, last *int, after *usecase.Cursor, before *usecase.Cursor) (*gqlmodel.DatasetSchemaConnection, error) Datasets(ctx context.Context, datasetSchemaID id.ID, first *int, last *int, after *usecase.Cursor, before *usecase.Cursor) (*gqlmodel.DatasetConnection, error) SceneLock(ctx context.Context, sceneID id.ID) (*gqlmodel.SceneLockMode, error) DynamicDatasetSchemas(ctx context.Context, sceneID id.ID) ([]*gqlmodel.DatasetSchema, error) SearchUser(ctx context.Context, nameOrEmail string) (*gqlmodel.SearchedUser, error) CheckProjectAlias(ctx context.Context, alias string) (*gqlmodel.ProjectAliasAvailability, error) InstallablePlugins(ctx context.Context) ([]*gqlmodel.PluginMetadata, error) }
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func (*Resolver) Asset ¶
func (r *Resolver) Asset() AssetResolver
func (*Resolver) Dataset ¶
func (r *Resolver) Dataset() DatasetResolver
func (*Resolver) DatasetField ¶
func (r *Resolver) DatasetField() DatasetFieldResolver
func (*Resolver) DatasetSchema ¶
func (r *Resolver) DatasetSchema() DatasetSchemaResolver
func (*Resolver) DatasetSchemaField ¶
func (r *Resolver) DatasetSchemaField() DatasetSchemaFieldResolver
func (*Resolver) Infobox ¶
func (r *Resolver) Infobox() InfoboxResolver
func (*Resolver) InfoboxField ¶
func (r *Resolver) InfoboxField() InfoboxFieldResolver
func (*Resolver) LayerGroup ¶
func (r *Resolver) LayerGroup() LayerGroupResolver
func (*Resolver) LayerItem ¶
func (r *Resolver) LayerItem() LayerItemResolver
func (*Resolver) MergedInfobox ¶
func (r *Resolver) MergedInfobox() MergedInfoboxResolver
func (*Resolver) MergedInfoboxField ¶
func (r *Resolver) MergedInfoboxField() MergedInfoboxFieldResolver
func (*Resolver) MergedLayer ¶
func (r *Resolver) MergedLayer() MergedLayerResolver
func (*Resolver) MergedProperty ¶
func (r *Resolver) MergedProperty() MergedPropertyResolver
func (*Resolver) MergedPropertyField ¶
func (r *Resolver) MergedPropertyField() MergedPropertyFieldResolver
func (*Resolver) MergedPropertyGroup ¶
func (r *Resolver) MergedPropertyGroup() MergedPropertyGroupResolver
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() MutationResolver
func (*Resolver) Plugin ¶
func (r *Resolver) Plugin() PluginResolver
func (*Resolver) PluginExtension ¶
func (r *Resolver) PluginExtension() PluginExtensionResolver
func (*Resolver) Project ¶
func (r *Resolver) Project() ProjectResolver
func (*Resolver) Property ¶
func (r *Resolver) Property() PropertyResolver
func (*Resolver) PropertyField ¶
func (r *Resolver) PropertyField() PropertyFieldResolver
func (*Resolver) PropertyFieldLink ¶
func (r *Resolver) PropertyFieldLink() PropertyFieldLinkResolver
func (*Resolver) PropertyGroup ¶
func (r *Resolver) PropertyGroup() PropertyGroupResolver
func (*Resolver) PropertyGroupList ¶
func (r *Resolver) PropertyGroupList() PropertyGroupListResolver
func (*Resolver) PropertyLinkableFields ¶
func (r *Resolver) PropertyLinkableFields() PropertyLinkableFieldsResolver
func (*Resolver) PropertySchemaField ¶
func (r *Resolver) PropertySchemaField() PropertySchemaFieldResolver
func (*Resolver) PropertySchemaFieldChoice ¶
func (r *Resolver) PropertySchemaFieldChoice() PropertySchemaFieldChoiceResolver
func (*Resolver) PropertySchemaGroup ¶
func (r *Resolver) PropertySchemaGroup() PropertySchemaGroupResolver
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
func (*Resolver) Scene ¶
func (r *Resolver) Scene() SceneResolver
func (*Resolver) ScenePlugin ¶
func (r *Resolver) ScenePlugin() ScenePluginResolver
func (*Resolver) SceneWidget ¶
func (r *Resolver) SceneWidget() SceneWidgetResolver
func (*Resolver) TagItem ¶
func (r *Resolver) TagItem() TagItemResolver
func (*Resolver) Team ¶
func (r *Resolver) Team() TeamResolver
func (*Resolver) TeamMember ¶
func (r *Resolver) TeamMember() TeamMemberResolver
func (*Resolver) User ¶
func (r *Resolver) User() UserResolver
type ResolverRoot ¶
type ResolverRoot interface { Asset() AssetResolver Dataset() DatasetResolver DatasetField() DatasetFieldResolver DatasetSchema() DatasetSchemaResolver DatasetSchemaField() DatasetSchemaFieldResolver Infobox() InfoboxResolver InfoboxField() InfoboxFieldResolver LayerGroup() LayerGroupResolver LayerItem() LayerItemResolver MergedInfobox() MergedInfoboxResolver MergedInfoboxField() MergedInfoboxFieldResolver MergedLayer() MergedLayerResolver MergedProperty() MergedPropertyResolver MergedPropertyField() MergedPropertyFieldResolver MergedPropertyGroup() MergedPropertyGroupResolver Mutation() MutationResolver Plugin() PluginResolver PluginExtension() PluginExtensionResolver Project() ProjectResolver Property() PropertyResolver PropertyField() PropertyFieldResolver PropertyFieldLink() PropertyFieldLinkResolver PropertyGroup() PropertyGroupResolver PropertyGroupList() PropertyGroupListResolver PropertyLinkableFields() PropertyLinkableFieldsResolver PropertySchemaField() PropertySchemaFieldResolver PropertySchemaFieldChoice() PropertySchemaFieldChoiceResolver PropertySchemaGroup() PropertySchemaGroupResolver Query() QueryResolver Scene() SceneResolver ScenePlugin() ScenePluginResolver SceneWidget() SceneWidgetResolver TagItem() TagItemResolver Team() TeamResolver TeamMember() TeamMemberResolver User() UserResolver }
func NewResolver ¶
func NewResolver(loaders Loaders, debug bool) ResolverRoot
type SceneDataLoader ¶
type SceneLoader ¶
type SceneLoader struct {
// contains filtered or unexported fields
}
func NewSceneLoader ¶
func NewSceneLoader(usecase interfaces.Scene) *SceneLoader
func (*SceneLoader) DataLoader ¶
func (c *SceneLoader) DataLoader(ctx context.Context) SceneDataLoader
func (*SceneLoader) FetchLock ¶
func (c *SceneLoader) FetchLock(ctx context.Context, sid id.SceneID) (*gqlmodel.SceneLockMode, error)
func (*SceneLoader) FetchLockAll ¶
func (c *SceneLoader) FetchLockAll(ctx context.Context, sid []id.SceneID) ([]gqlmodel.SceneLockMode, []error)
func (*SceneLoader) FindByProject ¶
func (*SceneLoader) OrdinaryDataLoader ¶
func (c *SceneLoader) OrdinaryDataLoader(ctx context.Context) SceneDataLoader
type ScenePluginResolver ¶
type SceneResolver ¶
type SceneResolver interface { Project(ctx context.Context, obj *gqlmodel.Scene) (*gqlmodel.Project, error) Team(ctx context.Context, obj *gqlmodel.Scene) (*gqlmodel.Team, error) Property(ctx context.Context, obj *gqlmodel.Scene) (*gqlmodel.Property, error) RootLayer(ctx context.Context, obj *gqlmodel.Scene) (*gqlmodel.LayerGroup, error) LockMode(ctx context.Context, obj *gqlmodel.Scene) (gqlmodel.SceneLockMode, error) DatasetSchemas(ctx context.Context, obj *gqlmodel.Scene, first *int, last *int, after *usecase.Cursor, before *usecase.Cursor) (*gqlmodel.DatasetSchemaConnection, error) Tags(ctx context.Context, obj *gqlmodel.Scene) ([]gqlmodel.Tag, error) }
type SceneWidgetResolver ¶
type TagDataLoader ¶
type TagGroupDataLoader ¶
type TagItemDataLoader ¶
type TagItemResolver ¶
type TagItemResolver interface { LinkedDatasetSchema(ctx context.Context, obj *gqlmodel.TagItem) (*gqlmodel.DatasetSchema, error) LinkedDataset(ctx context.Context, obj *gqlmodel.TagItem) (*gqlmodel.Dataset, error) LinkedDatasetField(ctx context.Context, obj *gqlmodel.TagItem) (*gqlmodel.DatasetField, error) }
type TagLoader ¶
type TagLoader struct {
// contains filtered or unexported fields
}
func NewTagLoader ¶
func NewTagLoader(usecase interfaces.Tag) *TagLoader
func (*TagLoader) DataLoader ¶
func (c *TagLoader) DataLoader(ctx context.Context) TagDataLoader
func (*TagLoader) FetchGroup ¶
func (*TagLoader) FetchGroupByLayer ¶
func (*TagLoader) FetchGroupByScene ¶
func (*TagLoader) FetchItemByLayer ¶
func (*TagLoader) FetchItemByScene ¶
func (*TagLoader) GroupDataLoader ¶
func (c *TagLoader) GroupDataLoader(ctx context.Context) TagGroupDataLoader
func (*TagLoader) GroupOrdinaryDataLoader ¶
func (c *TagLoader) GroupOrdinaryDataLoader(ctx context.Context) TagGroupDataLoader
func (*TagLoader) ItemDataLoader ¶
func (c *TagLoader) ItemDataLoader(ctx context.Context) TagItemDataLoader
func (*TagLoader) ItemOrdinaryDataLoader ¶
func (c *TagLoader) ItemOrdinaryDataLoader(ctx context.Context) TagItemDataLoader
func (*TagLoader) OrdinaryDataLoader ¶
func (c *TagLoader) OrdinaryDataLoader(ctx context.Context) TagDataLoader
type TeamDataLoader ¶
type TeamLoader ¶
type TeamLoader struct {
// contains filtered or unexported fields
}
func NewTeamLoader ¶
func NewTeamLoader(usecase interfaces.Team) *TeamLoader
func (*TeamLoader) DataLoader ¶
func (c *TeamLoader) DataLoader(ctx context.Context) TeamDataLoader
func (*TeamLoader) FindByUser ¶
func (*TeamLoader) OrdinaryDataLoader ¶
func (c *TeamLoader) OrdinaryDataLoader(ctx context.Context) TeamDataLoader
type TeamMemberResolver ¶
type TeamResolver ¶
type TeamResolver interface { Assets(ctx context.Context, obj *gqlmodel.Team, first *int, last *int, after *usecase.Cursor, before *usecase.Cursor) (*gqlmodel.AssetConnection, error) Projects(ctx context.Context, obj *gqlmodel.Team, includeArchived *bool, first *int, last *int, after *usecase.Cursor, before *usecase.Cursor) (*gqlmodel.ProjectConnection, error) }
type UserDataLoader ¶
type UserLoader ¶
type UserLoader struct {
// contains filtered or unexported fields
}
func NewUserLoader ¶
func NewUserLoader(usecase interfaces.User) *UserLoader
func (*UserLoader) DataLoader ¶
func (c *UserLoader) DataLoader(ctx context.Context) UserDataLoader
func (*UserLoader) OrdinaryDataLoader ¶
func (c *UserLoader) OrdinaryDataLoader(ctx context.Context) UserDataLoader
func (*UserLoader) SearchUser ¶
func (c *UserLoader) SearchUser(ctx context.Context, nameOrEmail string) (*gqlmodel.SearchedUser, error)
Source Files ¶
- context.go
- generated.go
- loader.go
- loader_asset.go
- loader_dataset.go
- loader_layer.go
- loader_plugin.go
- loader_project.go
- loader_property.go
- loader_scene.go
- loader_tag.go
- loader_team.go
- loader_user.go
- resolver.go
- resolver_asset.go
- resolver_dataset.go
- resolver_dataset_schema.go
- resolver_layer.go
- resolver_mutation.go
- resolver_mutation_asset.go
- resolver_mutation_dataset.go
- resolver_mutation_layer.go
- resolver_mutation_project.go
- resolver_mutation_property.go
- resolver_mutation_scene.go
- resolver_mutation_tag.go
- resolver_mutation_team.go
- resolver_mutation_user.go
- resolver_plugin.go
- resolver_project.go
- resolver_property.go
- resolver_property_schema.go
- resolver_query.go
- resolver_scene.go
- resolver_tag.go
- resolver_team.go
- resolver_user.go
- tracer.go
Click to show internal directories.
Click to hide internal directories.