Documentation ¶
Index ¶
- Variables
- type DatasetFieldID
- type DatasetID
- type DatasetSchemaID
- type Group
- type GroupBuilder
- func (b *GroupBuilder) Build() (*Group, error)
- func (b *GroupBuilder) ID(tid ID) *GroupBuilder
- func (b *GroupBuilder) Label(l string) *GroupBuilder
- func (b *GroupBuilder) MustBuild() *Group
- func (b *GroupBuilder) NewID() *GroupBuilder
- func (b *GroupBuilder) Scene(sid SceneID) *GroupBuilder
- func (b *GroupBuilder) Tags(tl IDList) *GroupBuilder
- type ID
- type IDList
- type Item
- func (t *Item) ID() ID
- func (t *Item) Label() string
- func (i *Item) LinkedDatasetFieldID() *DatasetFieldID
- func (i *Item) LinkedDatasetID() *DatasetID
- func (i *Item) LinkedDatasetSchemaID() *DatasetSchemaID
- func (i *Item) Parent() *ID
- func (t *Item) Rename(s string)
- func (t *Item) Scene() SceneID
- func (i *Item) SetParent(p *ID)
- type ItemBuilder
- func (b *ItemBuilder) Build() (*Item, error)
- func (b *ItemBuilder) ID(tid ID) *ItemBuilder
- func (b *ItemBuilder) Label(l string) *ItemBuilder
- func (b *ItemBuilder) LinkedDatasetFieldID(dfid *DatasetFieldID) *ItemBuilder
- func (b *ItemBuilder) LinkedDatasetID(did *DatasetID) *ItemBuilder
- func (b *ItemBuilder) LinkedDatasetSchemaID(dsid *DatasetSchemaID) *ItemBuilder
- func (b *ItemBuilder) MustBuild() *Item
- func (b *ItemBuilder) NewID() *ItemBuilder
- func (b *ItemBuilder) Parent(p *ID) *ItemBuilder
- func (b *ItemBuilder) Scene(sid SceneID) *ItemBuilder
- type List
- type Loader
- type Map
- type SceneID
- type SceneLoader
- type Tag
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyLabel = errors.New("tag label can't be empty") ErrInvalidSceneID = errors.New("invalid scene ID") )
View Source
var DatasetFieldIDFrom = id.DatasetFieldIDFrom
View Source
var DatasetFieldIDFromRef = id.DatasetFieldIDFromRef
View Source
var DatasetIDFrom = id.DatasetIDFrom
View Source
var DatasetIDFromRef = id.DatasetIDFromRef
View Source
var DatasetSchemaIDFrom = id.DatasetSchemaIDFrom
View Source
var DatasetSchemaIDFromRef = id.DatasetSchemaIDFromRef
View Source
var ErrInvalidID = id.ErrInvalidID
View Source
var IDFrom = id.TagIDFrom
View Source
var IDFromRef = id.TagIDFromRef
View Source
var MustDatasetFieldID = id.MustDatasetFieldID
View Source
var MustDatasetID = id.MustDatasetID
View Source
var MustDatasetSchemaID = id.MustDatasetSchemaID
View Source
var MustID = id.MustTagID
View Source
var MustSceneID = id.MustSceneID
View Source
var NewDatasetFieldID = id.NewDatasetFieldID
View Source
var NewDatasetID = id.NewDatasetID
View Source
var NewDatasetSchemaID = id.NewDatasetSchemaID
View Source
var NewID = id.NewTagID
View Source
var NewSceneID = id.NewSceneID
View Source
var SceneIDFrom = id.SceneIDFrom
View Source
var SceneIDFromRef = id.SceneIDFromRef
Functions ¶
This section is empty.
Types ¶
type DatasetFieldID ¶ added in v0.4.0
type DatasetFieldID = id.DatasetFieldID
type DatasetSchemaID ¶ added in v0.4.0
type DatasetSchemaID = id.DatasetSchemaID
type GroupBuilder ¶
type GroupBuilder struct {
// contains filtered or unexported fields
}
func NewGroup ¶
func NewGroup() *GroupBuilder
func (*GroupBuilder) Build ¶
func (b *GroupBuilder) Build() (*Group, error)
func (*GroupBuilder) ID ¶
func (b *GroupBuilder) ID(tid ID) *GroupBuilder
func (*GroupBuilder) Label ¶
func (b *GroupBuilder) Label(l string) *GroupBuilder
func (*GroupBuilder) MustBuild ¶ added in v0.5.0
func (b *GroupBuilder) MustBuild() *Group
func (*GroupBuilder) NewID ¶
func (b *GroupBuilder) NewID() *GroupBuilder
func (*GroupBuilder) Scene ¶
func (b *GroupBuilder) Scene(sid SceneID) *GroupBuilder
func (*GroupBuilder) Tags ¶
func (b *GroupBuilder) Tags(tl IDList) *GroupBuilder
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
func (*Item) LinkedDatasetFieldID ¶
func (i *Item) LinkedDatasetFieldID() *DatasetFieldID
func (*Item) LinkedDatasetID ¶
func (*Item) LinkedDatasetSchemaID ¶
func (i *Item) LinkedDatasetSchemaID() *DatasetSchemaID
type ItemBuilder ¶
type ItemBuilder struct {
// contains filtered or unexported fields
}
func NewItem ¶
func NewItem() *ItemBuilder
func (*ItemBuilder) Build ¶
func (b *ItemBuilder) Build() (*Item, error)
func (*ItemBuilder) ID ¶
func (b *ItemBuilder) ID(tid ID) *ItemBuilder
func (*ItemBuilder) Label ¶
func (b *ItemBuilder) Label(l string) *ItemBuilder
func (*ItemBuilder) LinkedDatasetFieldID ¶
func (b *ItemBuilder) LinkedDatasetFieldID(dfid *DatasetFieldID) *ItemBuilder
func (*ItemBuilder) LinkedDatasetID ¶
func (b *ItemBuilder) LinkedDatasetID(did *DatasetID) *ItemBuilder
func (*ItemBuilder) LinkedDatasetSchemaID ¶
func (b *ItemBuilder) LinkedDatasetSchemaID(dsid *DatasetSchemaID) *ItemBuilder
func (*ItemBuilder) MustBuild ¶ added in v0.5.0
func (b *ItemBuilder) MustBuild() *Item
func (*ItemBuilder) NewID ¶
func (b *ItemBuilder) NewID() *ItemBuilder
func (*ItemBuilder) Parent ¶ added in v0.3.0
func (b *ItemBuilder) Parent(p *ID) *ItemBuilder
func (*ItemBuilder) Scene ¶
func (b *ItemBuilder) Scene(sid SceneID) *ItemBuilder
type Loader ¶ added in v0.5.0
func LoaderFrom ¶ added in v0.5.0
func LoaderFromMap ¶ added in v0.5.0
type SceneLoader ¶ added in v0.5.0
func SceneLoaderFrom ¶ added in v0.5.0
func SceneLoaderFrom(data List) SceneLoader
Click to show internal directories.
Click to hide internal directories.