Documentation ¶
Index ¶
- func NewDatasetSchemas(datasetSchemas []*dataset.Schema, f scene.IDList) ([]interface{}, []string)
- func NewDatasets(datasets []*dataset.Dataset, f scene.IDList) ([]interface{}, []string)
- func NewLayers(layers layer.List, f scene.IDList) ([]interface{}, []string)
- func NewNLSLayerConfig(c map[string]any) *nlslayer.Config
- func NewNLSLayerGeometry(g nlslayer.Geometry) map[string]any
- func NewNLSLayerType(p string) nlslayer.LayerType
- func NewNLSLayers(layers nlslayer.NLSLayerList, f scene.IDList) ([]interface{}, []string)
- func NewProperties(properties []*property.Property, f scene.IDList) ([]interface{}, []string)
- func NewPropertySchemas(ps []*property.Schema, f scene.IDList) ([]interface{}, []string)
- func NewStorytellings(sl *storytelling.StoryList) ([]any, []string)
- func NewStyleValue(c map[string]any) *scene.StyleValue
- func NewStyles(styles scene.StyleList, f scene.IDList) ([]interface{}, []string)
- func NewTags(tags []*tag.Tag, f scene.IDList) ([]interface{}, []string)
- func ToModelInfobox(ib *LayerInfoboxDocument) (*layer.Infobox, error)
- func ToModelNLSInfobox(ib *NLSLayerInfoboxDocument) (*nlslayer.Infobox, error)
- func ToModelNLSLayerGeometry(g map[string]any) (nlslayer.Geometry, error)
- func ToModelNLSLayerSketchInfo(si *NLSLayerSketchInfoDocument) (*nlslayer.SketchInfo, error)
- func ToModelPropertySchemaField(f *PropertySchemaFieldDocument) (*property.SchemaField, error)
- type AssetConsumer
- type AssetDocument
- type Auth
- type BlockDocument
- type ConfigDocument
- type Consumer
- type DatasetBatchConsumer
- type DatasetConsumer
- type DatasetDocument
- type DatasetExtendedDocument
- type DatasetFieldDocument
- type DatasetMapConsumer
- type DatasetSchemaConsumer
- type DatasetSchemaDocument
- type DatasetSchemaFieldDocument
- type LayerConsumer
- type LayerDocument
- type LayerGroupDocument
- type LayerInfoboxDocument
- type LayerInfoboxFieldDocument
- type LayerItemDocument
- type LayerTagDocument
- type LayerTagListDocument
- type Model
- type NLSLayerConsumer
- type NLSLayerDocument
- type NLSLayerFeatureCollectionDocument
- type NLSLayerFeatureDocument
- type NLSLayerGeometryCollectionDocument
- type NLSLayerGeometryDocument
- type NLSLayerGroupDocument
- type NLSLayerInfoboxBlockDocument
- type NLSLayerInfoboxDocument
- type NLSLayerLineString
- type NLSLayerMultiPolygonDocument
- type NLSLayerPointDocument
- type NLSLayerPolygonDocument
- type NLSLayerSimpleDocument
- type NLSLayerSketchInfoDocument
- type PageDocument
- type PluginConsumer
- type PluginDocument
- type PluginExtensionDocument
- type PolicyConsumer
- type PolicyDocument
- type ProjectConsumer
- type ProjectDocument
- type PropertyBatchConsumer
- type PropertyConditonDocument
- type PropertyConsumer
- type PropertyDocument
- type PropertyFieldDocument
- type PropertyItemDocument
- type PropertyLinkDocument
- type PropertyLinkableFieldsDocument
- type PropertySchemaConsumer
- type PropertySchemaDocument
- type PropertySchemaFieldChoiceDocument
- type PropertySchemaFieldDocument
- type PropertySchemaFieldPointerDocument
- type PropertySchemaGroupDocument
- type SceneClusterDocument
- type SceneConsumer
- type SceneDocument
- type SceneIDConsumer
- type SceneIDDocument
- type SceneLockConsumer
- type SceneLockDocument
- type ScenePluginDocument
- type SceneWidgetDocument
- type StorytellingConsumer
- type StorytellingDocument
- type StyleConsumer
- type StyleDocument
- type TagConsumer
- type TagDocument
- type TagGroupDocument
- type TagItemDocument
- type WidgetAlignSystemDocument
- type WidgetAreaDocument
- type WidgetAreaPaddingDocument
- type WidgetExtendableDocument
- type WidgetLayoutDocument
- type WidgetLocationDocument
- type WidgetSectionDocument
- type WidgetZoneDocument
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDatasetSchemas ¶
func NewDatasets ¶
func NewNLSLayerType ¶
func NewNLSLayers ¶
func NewNLSLayers(layers nlslayer.NLSLayerList, f scene.IDList) ([]interface{}, []string)
func NewProperties ¶
func NewPropertySchemas ¶
func NewStorytellings ¶
func NewStorytellings(sl *storytelling.StoryList) ([]any, []string)
func NewStyleValue ¶
func NewStyleValue(c map[string]any) *scene.StyleValue
func ToModelInfobox ¶
func ToModelInfobox(ib *LayerInfoboxDocument) (*layer.Infobox, error)
func ToModelNLSInfobox ¶
func ToModelNLSInfobox(ib *NLSLayerInfoboxDocument) (*nlslayer.Infobox, error)
func ToModelNLSLayerGeometry ¶
func ToModelNLSLayerSketchInfo ¶
func ToModelNLSLayerSketchInfo(si *NLSLayerSketchInfoDocument) (*nlslayer.SketchInfo, error)
func ToModelPropertySchemaField ¶
func ToModelPropertySchemaField(f *PropertySchemaFieldDocument) (*property.SchemaField, error)
Types ¶
type AssetConsumer ¶
type AssetConsumer = Consumer[*AssetDocument, *asset.Asset]
func NewAssetConsumer ¶
func NewAssetConsumer(workspaces []accountdomain.WorkspaceID) *AssetConsumer
type AssetDocument ¶
type Auth ¶
func NewConfigAuth ¶
type BlockDocument ¶
func (BlockDocument) Model ¶
func (d BlockDocument) Model() (*storytelling.Block, error)
type ConfigDocument ¶
func NewConfig ¶
func NewConfig(c config.Config) ConfigDocument
func (*ConfigDocument) Model ¶
func (c *ConfigDocument) Model() *config.Config
type Consumer ¶
type Consumer[T, K any] struct { Result []K // contains filtered or unexported fields }
type DatasetBatchConsumer ¶
type DatasetConsumer ¶
type DatasetConsumer = Consumer[*DatasetDocument, *dataset.Dataset]
func NewDatasetConsumer ¶
func NewDatasetConsumer(scenes []id.SceneID) *DatasetConsumer
type DatasetDocument ¶
type DatasetDocument struct { ID string Source string Schema string Fields []*DatasetFieldDocument Scene string }
func NewDataset ¶
func NewDataset(dataset *dataset.Dataset) (*DatasetDocument, string)
type DatasetExtendedDocument ¶
type DatasetExtendedDocument struct { DatasetDocument Graph []*DatasetExtendedDocument Depth int }
type DatasetFieldDocument ¶
type DatasetMapConsumer ¶
type DatasetSchemaConsumer ¶
type DatasetSchemaConsumer = Consumer[*DatasetSchemaDocument, *dataset.Schema]
func NewDatasetSchemaConsumer ¶
func NewDatasetSchemaConsumer(scenes []id.SceneID) *DatasetSchemaConsumer
type DatasetSchemaDocument ¶
type DatasetSchemaDocument struct { ID string Source string Name string Fields []*DatasetSchemaFieldDocument RepresentativeField *string Scene string }
func NewDatasetSchema ¶
func NewDatasetSchema(dataset *dataset.Schema) (*DatasetSchemaDocument, string)
type LayerConsumer ¶
type LayerConsumer = Consumer[*LayerDocument, layer.Layer]
func NewLayerConsumer ¶
func NewLayerConsumer(scenes []id.SceneID) *LayerConsumer
type LayerDocument ¶
type LayerDocument struct { ID string Name string Visible bool Scene string Plugin *string Extension *string Property *string Infobox *LayerInfoboxDocument Item *LayerItemDocument Group *LayerGroupDocument Tags LayerTagListDocument }
func (*LayerDocument) ModelGroup ¶
func (d *LayerDocument) ModelGroup() (*layer.Group, error)
type LayerGroupDocument ¶
type LayerInfoboxDocument ¶
type LayerInfoboxDocument struct { Property string Fields []LayerInfoboxFieldDocument }
type LayerItemDocument ¶
type LayerItemDocument struct {
LinkedDataset *string
}
type LayerTagDocument ¶
type LayerTagDocument struct { ID string Group bool Tags []LayerTagDocument }
func NewLayerTag ¶
func NewLayerTag(t layer.Tag) *LayerTagDocument
func (*LayerTagDocument) Model ¶
func (d *LayerTagDocument) Model() layer.Tag
type LayerTagListDocument ¶
type LayerTagListDocument []LayerTagDocument
func NewLayerTagList ¶
func NewLayerTagList(list *layer.TagList) LayerTagListDocument
func (*LayerTagListDocument) Model ¶
func (d *LayerTagListDocument) Model() *layer.TagList
type NLSLayerConsumer ¶
type NLSLayerConsumer = Consumer[*NLSLayerDocument, nlslayer.NLSLayer]
func NewNLSLayerConsumer ¶
func NewNLSLayerConsumer(scenes []id.SceneID) *NLSLayerConsumer
type NLSLayerDocument ¶
type NLSLayerDocument struct { ID string Title string Visible bool Scene string LayerType string Infobox *NLSLayerInfoboxDocument Simple *NLSLayerSimpleDocument Group *NLSLayerGroupDocument IsSketch bool Sketch *NLSLayerSketchInfoDocument }
func NewNLSLayer ¶
func NewNLSLayer(l nlslayer.NLSLayer) (*NLSLayerDocument, string)
func (*NLSLayerDocument) ModelGroup ¶
func (d *NLSLayerDocument) ModelGroup() (*nlslayer.NLSLayerGroup, error)
func (*NLSLayerDocument) ModelSimple ¶
func (d *NLSLayerDocument) ModelSimple() (*nlslayer.NLSLayerSimple, error)
type NLSLayerFeatureCollectionDocument ¶
type NLSLayerFeatureCollectionDocument struct { Type string Features []NLSLayerFeatureDocument }
func NewNLSLayerFeatureCollection ¶
func NewNLSLayerFeatureCollection(fc *nlslayer.FeatureCollection) *NLSLayerFeatureCollectionDocument
type NLSLayerFeatureDocument ¶
type NLSLayerFeatureDocument struct { ID string Type string Geometry map[string]any Properties map[string]any }
func NewNLSLayerFeature ¶
func NewNLSLayerFeature(f nlslayer.Feature) NLSLayerFeatureDocument
type NLSLayerGeometryDocument ¶
type NLSLayerGeometryDocument interface{}
type NLSLayerGroupDocument ¶
type NLSLayerInfoboxDocument ¶
type NLSLayerInfoboxDocument struct { Property string Blocks []NLSLayerInfoboxBlockDocument }
func NewNLSInfobox ¶
func NewNLSInfobox(ib *nlslayer.Infobox) *NLSLayerInfoboxDocument
type NLSLayerLineString ¶
type NLSLayerPointDocument ¶
type NLSLayerPolygonDocument ¶
type NLSLayerSimpleDocument ¶
type NLSLayerSketchInfoDocument ¶
type NLSLayerSketchInfoDocument struct { CustomPropertySchema *map[string]any FeatureCollection *NLSLayerFeatureCollectionDocument }
func NewNLSLayerSketchInfo ¶
func NewNLSLayerSketchInfo(si *nlslayer.SketchInfo) *NLSLayerSketchInfoDocument
type PageDocument ¶
type PageDocument struct { Id string Property string Title string Swipeable bool Layers []string SwipeLayers []string Blocks []BlockDocument }
func (*PageDocument) Model ¶
func (d *PageDocument) Model() (*storytelling.Page, error)
type PluginConsumer ¶
type PluginConsumer = Consumer[*PluginDocument, *plugin.Plugin]
func NewPluginConsumer ¶
func NewPluginConsumer(scenes []id.SceneID) *PluginConsumer
type PluginDocument ¶
type PluginExtensionDocument ¶
type PolicyConsumer ¶
type PolicyConsumer = mongox.SliceFuncConsumer[*PolicyDocument, *policy.Policy]
func NewPolicyConsumer ¶
func NewPolicyConsumer() *PolicyConsumer
type PolicyDocument ¶
type PolicyDocument struct { ID policy.ID Name string `bson:"name,omitempty"` ProjectCount *int PublishedProjectCount *int MemberCount *int LayerCount *int DatasetCount *int DatasetSchemaCount *int AssetStorageSize *int64 }
func (PolicyDocument) Model ¶
func (d PolicyDocument) Model() *policy.Policy
type ProjectConsumer ¶
type ProjectConsumer = Consumer[*ProjectDocument, *project.Project]
func NewProjectConsumer ¶
func NewProjectConsumer(workspaces []accountdomain.WorkspaceID) *ProjectConsumer
type ProjectDocument ¶
type ProjectDocument struct { ID string Archived bool IsBasicAuthActive bool BasicAuthUsername string BasicAuthPassword string UpdatedAt time.Time PublishedAt time.Time Name string Description string Alias string ImageURL string PublicTitle string PublicDescription string PublicImage string PublicNoIndex bool Team string // DON'T CHANGE NAME' Visualizer string PublishmentStatus string CoreSupport bool EnableGA bool TrackingID string }
func NewProject ¶
func NewProject(project *project.Project) (*ProjectDocument, string)
type PropertyBatchConsumer ¶
type PropertyConsumer ¶
type PropertyConsumer = Consumer[*PropertyDocument, *property.Property]
func NewPropertyConsumer ¶
func NewPropertyConsumer(scenes []id.SceneID) *PropertyConsumer
type PropertyDocument ¶
type PropertyDocument struct { ID string Scene string Schema string `bson:",omitempty"` // compatibility SchemaPlugin string SchemaName string Items []*PropertyItemDocument }
func NewProperty ¶
func NewProperty(property *property.Property) (*PropertyDocument, string)
type PropertyFieldDocument ¶
type PropertyFieldDocument struct { Field string Type string Links []*PropertyLinkDocument Value interface{} }
type PropertyItemDocument ¶
type PropertyItemDocument struct { Type string ID string SchemaGroup string Groups []*PropertyItemDocument Fields []*PropertyFieldDocument }
type PropertyLinkDocument ¶
type PropertyLinkableFieldsDocument ¶
type PropertyLinkableFieldsDocument struct { LatLng *PropertySchemaFieldPointerDocument URL *PropertySchemaFieldPointerDocument }
func ToDocPropertyLinkableFields ¶
func ToDocPropertyLinkableFields(l property.LinkableFields) *PropertyLinkableFieldsDocument
type PropertySchemaConsumer ¶
type PropertySchemaConsumer = Consumer[*PropertySchemaDocument, *property.Schema]
func NewPropertySchemaConsumer ¶
func NewPropertySchemaConsumer(scenes []id.SceneID) *PropertySchemaConsumer
type PropertySchemaDocument ¶
type PropertySchemaDocument struct { ID string Scene *string `bson:",omitempty"` Version int Groups []*PropertySchemaGroupDocument LinkableFields *PropertyLinkableFieldsDocument }
func NewPropertySchema ¶
func NewPropertySchema(m *property.Schema) (*PropertySchemaDocument, string)
type PropertySchemaFieldDocument ¶
type PropertySchemaFieldDocument struct { ID string Type string Name map[string]string Description map[string]string Prefix string Suffix string DefaultValue interface{} UI *string Min *float64 Max *float64 Choices []PropertySchemaFieldChoiceDocument IsAvailableIf *PropertyConditonDocument `bson:",omitempty"` }
func NewPropertySchemaField ¶
func NewPropertySchemaField(f *property.SchemaField) *PropertySchemaFieldDocument
type PropertySchemaGroupDocument ¶
type PropertySchemaGroupDocument struct { ID string Fields []*PropertySchemaFieldDocument List bool IsAvailableIf *PropertyConditonDocument Title map[string]string RepresentativeFieldID *string `bson:",omitempty"` }
func (*PropertySchemaGroupDocument) Model ¶
func (d *PropertySchemaGroupDocument) Model() (*property.SchemaGroup, error)
type SceneClusterDocument ¶
type SceneConsumer ¶
type SceneConsumer = Consumer[*SceneDocument, *scene.Scene]
func NewSceneConsumer ¶
func NewSceneConsumer(workspaces []accountdomain.WorkspaceID) *SceneConsumer
type SceneDocument ¶
type SceneDocument struct { ID string Project string Team string // DON'T CHANGE NAME' RootLayer string Widgets []SceneWidgetDocument AlignSystem *WidgetAlignSystemDocument Plugins []ScenePluginDocument UpdateAt time.Time Property string Clusters []SceneClusterDocument }
type SceneIDConsumer ¶
type SceneIDDocument ¶
type SceneIDDocument struct {
ID string
}
type SceneLockConsumer ¶
type SceneLockDocument ¶
func NewSceneLock ¶
func NewSceneLock(sceneID id.SceneID, lock scene.LockMode) *SceneLockDocument
type ScenePluginDocument ¶
type SceneWidgetDocument ¶
type StorytellingConsumer ¶
type StorytellingConsumer = Consumer[*StorytellingDocument, *storytelling.Story]
func NewStorytellingConsumer ¶
func NewStorytellingConsumer(scenes []id.SceneID) *StorytellingConsumer
type StorytellingDocument ¶
type StorytellingDocument struct { Id string Property string Scene string Title string Alias string Pages []PageDocument Status string PublishedAt *time.Time UpdatedAt time.Time Index int PanelPosition string BgColor string IsBasicAuthActive bool BasicAuthUsername string BasicAuthPassword string PublicTitle string PublicDescription string PublicImage string PublicNoIndex bool }
func NewStorytelling ¶
func NewStorytelling(s *storytelling.Story) (*StorytellingDocument, string)
func (*StorytellingDocument) Model ¶
func (d *StorytellingDocument) Model() (*storytelling.Story, error)
type StyleConsumer ¶
type StyleConsumer = Consumer[*StyleDocument, *scene.Style]
func NewStyleConsumer ¶
func NewStyleConsumer(scenes []id.SceneID) *StyleConsumer
type StyleDocument ¶
type TagConsumer ¶
type TagConsumer = Consumer[*TagDocument, tag.Tag]
func NewTagConsumer ¶
func NewTagConsumer(scenes []id.SceneID) *TagConsumer
type TagDocument ¶
type TagDocument struct { ID string Label string Scene string Item *TagItemDocument Group *TagGroupDocument }
func (*TagDocument) ModelGroup ¶
func (d *TagDocument) ModelGroup() (*tag.Group, error)
type TagGroupDocument ¶
type TagGroupDocument struct {
Tags []string
}
type TagItemDocument ¶
type WidgetAlignSystemDocument ¶
type WidgetAlignSystemDocument struct { Inner *WidgetZoneDocument Outer *WidgetZoneDocument }
func NewWidgetAlignSystem ¶
func NewWidgetAlignSystem(was *scene.WidgetAlignSystem) *WidgetAlignSystemDocument
func (*WidgetAlignSystemDocument) Model ¶
func (d *WidgetAlignSystemDocument) Model() *scene.WidgetAlignSystem
type WidgetAreaDocument ¶
type WidgetAreaDocument struct { WidgetIDs []string Align string Padding *WidgetAreaPaddingDocument Gap *int Centered bool Background *string }
func NewWidgetArea ¶
func NewWidgetArea(a *scene.WidgetArea) *WidgetAreaDocument
func (*WidgetAreaDocument) Model ¶
func (a *WidgetAreaDocument) Model() *scene.WidgetArea
type WidgetAreaPaddingDocument ¶
type WidgetAreaPaddingDocument struct {
Top, Bottom, Left, Right int
}
func NewWidgetAreaPadding ¶
func NewWidgetAreaPadding(p *scene.WidgetAreaPadding) *WidgetAreaPaddingDocument
func (*WidgetAreaPaddingDocument) Model ¶
func (a *WidgetAreaPaddingDocument) Model() *scene.WidgetAreaPadding
type WidgetLayoutDocument ¶
type WidgetLayoutDocument struct { Extendable *WidgetExtendableDocument Extended bool Floating bool DefaultLocation *WidgetLocationDocument }
func NewWidgetLayout ¶
func NewWidgetLayout(l *plugin.WidgetLayout) *WidgetLayoutDocument
func (*WidgetLayoutDocument) Model ¶
func (d *WidgetLayoutDocument) Model() *plugin.WidgetLayout
type WidgetLocationDocument ¶
func NewWidgetLocation ¶
func NewWidgetLocation(l *plugin.WidgetLocation) *WidgetLocationDocument
func (*WidgetLocationDocument) Model ¶
func (d *WidgetLocationDocument) Model() *plugin.WidgetLocation
type WidgetSectionDocument ¶
type WidgetSectionDocument struct { Top *WidgetAreaDocument Middle *WidgetAreaDocument Bottom *WidgetAreaDocument }
func NewWidgetSection ¶
func NewWidgetSection(s *scene.WidgetSection) *WidgetSectionDocument
func (*WidgetSectionDocument) Model ¶
func (d *WidgetSectionDocument) Model() *scene.WidgetSection
type WidgetZoneDocument ¶
type WidgetZoneDocument struct { Left *WidgetSectionDocument Center *WidgetSectionDocument Right *WidgetSectionDocument }
func NewWidgetZone ¶
func NewWidgetZone(z *scene.WidgetZone) *WidgetZoneDocument
func (*WidgetZoneDocument) Model ¶
func (d *WidgetZoneDocument) Model() *scene.WidgetZone
Click to show internal directories.
Click to hide internal directories.