id

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidID = errors.New("invalid ID")
)
View Source
var (
	OfficialPluginID = PluginID{/* contains filtered or unexported fields */}
)

Functions

func AssetIDsToStrings added in v0.4.0

func AssetIDsToStrings(ids []AssetID) []string

AssetIDsToStrings converts IDs into a string slice.

func AuthRequestIDToKeys added in v0.6.0

func AuthRequestIDToKeys(ids []AuthRequestID) []string

AuthRequestIDToKeys converts IDs into a string slice.

func ClusterIDsToStrings added in v0.4.0

func ClusterIDsToStrings(ids []ClusterID) []string

ClusterIDsToStrings converts IDs into a string slice.

func DatasetIDsToStrings added in v0.4.0

func DatasetIDsToStrings(ids []DatasetID) []string

DatasetIDsToStrings converts IDs into a string slice.

func DatasetSchemaFieldIDsToStrings added in v0.4.0

func DatasetSchemaFieldIDsToStrings(ids []DatasetSchemaFieldID) []string

DatasetSchemaFieldIDsToStrings converts IDs into a string slice.

func DatasetSchemaIDsToStrings added in v0.4.0

func DatasetSchemaIDsToStrings(ids []DatasetSchemaID) []string

DatasetSchemaIDsToStrings converts IDs into a string slice.

func InfoboxFieldIDsToStrings added in v0.4.0

func InfoboxFieldIDsToStrings(ids []InfoboxFieldID) []string

InfoboxFieldIDsToStrings converts IDs into a string slice.

func LayerIDsToStrings added in v0.4.0

func LayerIDsToStrings(ids []LayerID) []string

LayerIDsToStrings converts IDs into a string slice.

func PluginIDsToStrings added in v0.4.0

func PluginIDsToStrings(ids []PluginID) []string

PluginIDToKeys converts IDs into a string slice.

func ProjectIDsToStrings added in v0.4.0

func ProjectIDsToStrings(ids []ProjectID) []string

ProjectIDsToStrings converts IDs into a string slice.

func PropertyIDsToStrings added in v0.4.0

func PropertyIDsToStrings(ids []PropertyID) []string

PropertyIDsToStrings converts IDs into a string slice.

func PropertyItemIDsToStrings added in v0.4.0

func PropertyItemIDsToStrings(ids []PropertyItemID) []string

PropertyItemIDsToStrings converts IDs into a string slice.

func PropertySchemaIDsToStrings added in v0.4.0

func PropertySchemaIDsToStrings(ids []PropertySchemaID) []string

PropertySchemaIDToKeys converts IDs into a string slice.

func SceneIDsToStrings added in v0.4.0

func SceneIDsToStrings(ids []SceneID) []string

SceneIDsToStrings converts IDs into a string slice.

func TagIDsToStrings added in v0.4.0

func TagIDsToStrings(ids []TagID) []string

TagIDsToStrings converts IDs into a string slice.

func TeamIDsToStrings added in v0.4.0

func TeamIDsToStrings(ids []TeamID) []string

TeamIDsToStrings converts IDs into a string slice.

func UserIDsToStrings added in v0.4.0

func UserIDsToStrings(ids []UserID) []string

UserIDsToStrings converts IDs into a string slice.

func WidgetIDsToStrings added in v0.4.0

func WidgetIDsToStrings(ids []WidgetID) []string

WidgetIDsToStrings converts IDs into a string slice.

Types

type AssetID

type AssetID ID

AssetID is an ID for Asset.

func AssetIDFrom

func AssetIDFrom(i string) (nid AssetID, err error)

AssetIDFrom generates a new AssetID from a string.

func AssetIDFromRef

func AssetIDFromRef(i *string) *AssetID

AssetIDFromRef generates a new AssetID from a string ref.

func AssetIDFromRefID

func AssetIDFromRefID(i *ID) *AssetID

AssetIDFromRefID generates a new AssetID from a ref of a generic ID.

func AssetIDsFrom

func AssetIDsFrom(ids []string) ([]AssetID, error)

AssetIDsFrom converts a string slice into a ID slice.

func AssetIDsFromID

func AssetIDsFromID(ids []ID) []AssetID

AssetIDsFromID converts a generic ID slice into a ID slice.

func AssetIDsFromIDRef

func AssetIDsFromIDRef(ids []*ID) []AssetID

AssetIDsFromIDRef converts a ref of a generic ID slice into a ID slice.

func MustAssetID

func MustAssetID(i string) AssetID

MustAssetID generates a new AssetID from a string, but panics if the string cannot be parsed.

func NewAssetID

func NewAssetID() AssetID

NewAssetID generates a new AssetId.

func (AssetID) Contains

func (d AssetID) Contains(ids []AssetID) bool

Contains returns whether the id is contained in the slice.

func (*AssetID) CopyRef

func (d *AssetID) CopyRef() *AssetID

CopyRef returns a copy of a reference.

func (AssetID) GoString

func (d AssetID) GoString() string

GoString implements fmt.GoStringer interface.

func (AssetID) ID

func (d AssetID) ID() ID

ID returns a domain ID.

func (*AssetID) IDRef

func (d *AssetID) IDRef() *ID

IDRef returns a reference of a domain id.

func (AssetID) IsNil

func (d AssetID) IsNil() bool

IsNil returns true if a ID is zero-value

func (*AssetID) IsNilRef added in v0.4.0

func (d *AssetID) IsNilRef() bool

IsNilRef returns true if a ID is nil or zero-value

func (*AssetID) MarhsalJSON

func (d *AssetID) MarhsalJSON() ([]byte, error)

MarhsalJSON implements json.Marhsaler interface

func (*AssetID) MarshalText

func (d *AssetID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (AssetID) Ref

func (d AssetID) Ref() *AssetID

Ref returns a reference.

func (AssetID) RefString

func (d AssetID) RefString() *string

StringRef returns a reference of the string representation.

func (AssetID) String

func (d AssetID) String() string

String returns a string representation.

func (*AssetID) StringRef

func (d *AssetID) StringRef() *string

StringRef returns a reference of a string representation.

func (*AssetID) UnmarhsalJSON

func (d *AssetID) UnmarhsalJSON(bs []byte) (err error)

UnmarhsalJSON implements json.Unmarshaler interface

func (*AssetID) UnmarshalText

func (d *AssetID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

type AssetIDSet

type AssetIDSet struct {
	// contains filtered or unexported fields
}

AssetIDSet represents a set of AssetIDs

func NewAssetIDSet

func NewAssetIDSet() *AssetIDSet

NewAssetIDSet creates a new AssetIDSet

func (*AssetIDSet) Add

func (s *AssetIDSet) Add(p ...AssetID)

Add adds a new ID if it does not exists in the set

func (*AssetIDSet) AddRef

func (s *AssetIDSet) AddRef(p *AssetID)

AddRef adds a new ID ref if it does not exists in the set

func (*AssetIDSet) All

func (s *AssetIDSet) All() []AssetID

All returns stored all IDs as a slice

func (*AssetIDSet) Clear

func (s *AssetIDSet) Clear()

Clear clears all stored IDs

func (*AssetIDSet) Clone

func (s *AssetIDSet) Clone() *AssetIDSet

Clone returns a cloned set

func (*AssetIDSet) Has

func (s *AssetIDSet) Has(p AssetID) bool

Has checks if the ID exists in the set

func (*AssetIDSet) Merge

func (s *AssetIDSet) Merge(s2 *AssetIDSet) *AssetIDSet

Merge returns a merged set

type AuthRequestID added in v0.6.0

type AuthRequestID ID

AuthRequestID is an ID for AuthRequest.

func AuthRequestIDFrom added in v0.6.0

func AuthRequestIDFrom(i string) (nid AuthRequestID, err error)

AuthRequestIDFrom generates a new AuthRequestID from a string.

func AuthRequestIDFromRef added in v0.6.0

func AuthRequestIDFromRef(i *string) *AuthRequestID

AuthRequestIDFromRef generates a new AuthRequestID from a string ref.

func AuthRequestIDFromRefID added in v0.6.0

func AuthRequestIDFromRefID(i *ID) *AuthRequestID

AuthRequestIDFromRefID generates a new AuthRequestID from a ref of a generic ID.

func AuthRequestIDsFrom added in v0.6.0

func AuthRequestIDsFrom(ids []string) ([]AuthRequestID, error)

AuthRequestIDsFrom converts a string slice into a ID slice.

func AuthRequestIDsFromID added in v0.6.0

func AuthRequestIDsFromID(ids []ID) []AuthRequestID

AuthRequestIDsFromID converts a generic ID slice into a ID slice.

func AuthRequestIDsFromIDRef added in v0.6.0

func AuthRequestIDsFromIDRef(ids []*ID) []AuthRequestID

AuthRequestIDsFromIDRef converts a ref of a generic ID slice into a ID slice.

func MustAuthRequestID added in v0.6.0

func MustAuthRequestID(i string) AuthRequestID

MustAuthRequestID generates a new AuthRequestID from a string, but panics if the string cannot be parsed.

func NewAuthRequestID added in v0.6.0

func NewAuthRequestID() AuthRequestID

NewAuthRequestID generates a new AuthRequestId.

func (AuthRequestID) Contains added in v0.6.0

func (d AuthRequestID) Contains(ids []AuthRequestID) bool

Contains returns whether the id is contained in the slice.

func (*AuthRequestID) CopyRef added in v0.6.0

func (d *AuthRequestID) CopyRef() *AuthRequestID

CopyRef returns a copy of a reference.

func (AuthRequestID) GoString added in v0.6.0

func (d AuthRequestID) GoString() string

GoString implements fmt.GoStringer interface.

func (AuthRequestID) ID added in v0.6.0

func (d AuthRequestID) ID() ID

ID returns a domain ID.

func (*AuthRequestID) IDRef added in v0.6.0

func (d *AuthRequestID) IDRef() *ID

IDRef returns a reference of a domain id.

func (AuthRequestID) IsNil added in v0.6.0

func (d AuthRequestID) IsNil() bool

Ref returns true if a ID is nil or zero-value

func (*AuthRequestID) MarhsalJSON added in v0.6.0

func (d *AuthRequestID) MarhsalJSON() ([]byte, error)

MarhsalJSON implements json.Marhsaler interface

func (*AuthRequestID) MarshalText added in v0.6.0

func (d *AuthRequestID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (AuthRequestID) Ref added in v0.6.0

func (d AuthRequestID) Ref() *AuthRequestID

Ref returns a reference.

func (AuthRequestID) RefString added in v0.6.0

func (d AuthRequestID) RefString() *string

RefString returns a reference of string representation.

func (AuthRequestID) String added in v0.6.0

func (d AuthRequestID) String() string

String returns a string representation.

func (*AuthRequestID) StringRef added in v0.6.0

func (d *AuthRequestID) StringRef() *string

StringRef returns a reference of a string representation.

func (*AuthRequestID) UnmarhsalJSON added in v0.6.0

func (d *AuthRequestID) UnmarhsalJSON(bs []byte) (err error)

UnmarhsalJSON implements json.Unmarshaler interface

func (*AuthRequestID) UnmarshalText added in v0.6.0

func (d *AuthRequestID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

type AuthRequestIDSet added in v0.6.0

type AuthRequestIDSet struct {
	// contains filtered or unexported fields
}

AuthRequestIDSet represents a set of AuthRequestIDs

func NewAuthRequestIDSet added in v0.6.0

func NewAuthRequestIDSet() *AuthRequestIDSet

NewAuthRequestIDSet creates a new AuthRequestIDSet

func (*AuthRequestIDSet) Add added in v0.6.0

func (s *AuthRequestIDSet) Add(p ...AuthRequestID)

Add adds a new ID if it does not exists in the set

func (*AuthRequestIDSet) AddRef added in v0.6.0

func (s *AuthRequestIDSet) AddRef(p *AuthRequestID)

AddRef adds a new ID ref if it does not exists in the set

func (*AuthRequestIDSet) All added in v0.6.0

func (s *AuthRequestIDSet) All() []AuthRequestID

All returns stored all IDs as a slice

func (*AuthRequestIDSet) Clear added in v0.6.0

func (s *AuthRequestIDSet) Clear()

Clear clears all stored IDs

func (*AuthRequestIDSet) Clone added in v0.6.0

func (s *AuthRequestIDSet) Clone() *AuthRequestIDSet

Clone returns a cloned set

func (*AuthRequestIDSet) Has added in v0.6.0

Has checks if the ID exists in the set

func (*AuthRequestIDSet) Merge added in v0.6.0

Merge returns a merged set

type ClusterID added in v0.3.0

type ClusterID ID

ClusterID is an ID for Cluster.

func ClusterIDFrom added in v0.3.0

func ClusterIDFrom(i string) (nid ClusterID, err error)

ClusterIDFrom generates a new ClusterID from a string.

func ClusterIDFromRef added in v0.3.0

func ClusterIDFromRef(i *string) *ClusterID

ClusterIDFromRef generates a new ClusterID from a string ref.

func ClusterIDFromRefID added in v0.3.0

func ClusterIDFromRefID(i *ID) *ClusterID

ClusterIDFromRefID generates a new ClusterID from a ref of a generic ID.

func ClusterIDsFrom added in v0.3.0

func ClusterIDsFrom(ids []string) ([]ClusterID, error)

ClusterIDsFrom converts a string slice into a ID slice.

func ClusterIDsFromID added in v0.3.0

func ClusterIDsFromID(ids []ID) []ClusterID

ClusterIDsFromID converts a generic ID slice into a ID slice.

func ClusterIDsFromIDRef added in v0.3.0

func ClusterIDsFromIDRef(ids []*ID) []ClusterID

ClusterIDsFromIDRef converts a ref of a generic ID slice into a ID slice.

func MustClusterID added in v0.3.0

func MustClusterID(i string) ClusterID

MustClusterID generates a new ClusterID from a string, but panics if the string cannot be parsed.

func NewClusterID added in v0.3.0

func NewClusterID() ClusterID

NewClusterID generates a new ClusterId.

func (ClusterID) Contains added in v0.3.0

func (d ClusterID) Contains(ids []ClusterID) bool

Contains returns whether the id is contained in the slice.

func (*ClusterID) CopyRef added in v0.3.0

func (d *ClusterID) CopyRef() *ClusterID

CopyRef returns a copy of a reference.

func (ClusterID) GoString added in v0.3.0

func (d ClusterID) GoString() string

GoString implements fmt.GoStringer interface.

func (ClusterID) ID added in v0.3.0

func (d ClusterID) ID() ID

ID returns a domain ID.

func (*ClusterID) IDRef added in v0.3.0

func (d *ClusterID) IDRef() *ID

IDRef returns a reference of a domain id.

func (ClusterID) IsNil added in v0.3.0

func (d ClusterID) IsNil() bool

IsNil returns true if a ID is zero-value

func (*ClusterID) IsNilRef added in v0.4.0

func (d *ClusterID) IsNilRef() bool

IsNilRef returns true if a ID is nil or zero-value

func (*ClusterID) MarhsalJSON added in v0.3.0

func (d *ClusterID) MarhsalJSON() ([]byte, error)

MarhsalJSON implements json.Marhsaler interface

func (*ClusterID) MarshalText added in v0.3.0

func (d *ClusterID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (ClusterID) Ref added in v0.3.0

func (d ClusterID) Ref() *ClusterID

Ref returns a reference.

func (ClusterID) RefString added in v0.3.0

func (d ClusterID) RefString() *string

StringRef returns a reference of the string representation.

func (ClusterID) String added in v0.3.0

func (d ClusterID) String() string

String returns a string representation.

func (*ClusterID) StringRef added in v0.3.0

func (d *ClusterID) StringRef() *string

StringRef returns a reference of a string representation.

func (*ClusterID) UnmarhsalJSON added in v0.3.0

func (d *ClusterID) UnmarhsalJSON(bs []byte) (err error)

UnmarhsalJSON implements json.Unmarshaler interface

func (*ClusterID) UnmarshalText added in v0.3.0

func (d *ClusterID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

type ClusterIDSet added in v0.3.0

type ClusterIDSet struct {
	// contains filtered or unexported fields
}

ClusterIDSet represents a set of ClusterIDs

func NewClusterIDSet added in v0.3.0

func NewClusterIDSet() *ClusterIDSet

NewClusterIDSet creates a new ClusterIDSet

func (*ClusterIDSet) Add added in v0.3.0

func (s *ClusterIDSet) Add(p ...ClusterID)

Add adds a new ID if it does not exists in the set

func (*ClusterIDSet) AddRef added in v0.3.0

func (s *ClusterIDSet) AddRef(p *ClusterID)

AddRef adds a new ID ref if it does not exists in the set

func (*ClusterIDSet) All added in v0.3.0

func (s *ClusterIDSet) All() []ClusterID

All returns stored all IDs as a slice

func (*ClusterIDSet) Clear added in v0.3.0

func (s *ClusterIDSet) Clear()

Clear clears all stored IDs

func (*ClusterIDSet) Clone added in v0.3.0

func (s *ClusterIDSet) Clone() *ClusterIDSet

Clone returns a cloned set

func (*ClusterIDSet) Has added in v0.3.0

func (s *ClusterIDSet) Has(p ClusterID) bool

Has checks if the ID exists in the set

func (*ClusterIDSet) Merge added in v0.3.0

func (s *ClusterIDSet) Merge(s2 *ClusterIDSet) *ClusterIDSet

Merge returns a merged set

type DatasetID

type DatasetID ID

DatasetID is an ID for Dataset.

func DatasetIDFrom

func DatasetIDFrom(i string) (nid DatasetID, err error)

DatasetIDFrom generates a new DatasetID from a string.

func DatasetIDFromRef

func DatasetIDFromRef(i *string) *DatasetID

DatasetIDFromRef generates a new DatasetID from a string ref.

func DatasetIDFromRefID

func DatasetIDFromRefID(i *ID) *DatasetID

DatasetIDFromRefID generates a new DatasetID from a ref of a generic ID.

func DatasetIDsFrom

func DatasetIDsFrom(ids []string) ([]DatasetID, error)

DatasetIDsFrom converts a string slice into a ID slice.

func DatasetIDsFromID

func DatasetIDsFromID(ids []ID) []DatasetID

DatasetIDsFromID converts a generic ID slice into a ID slice.

func DatasetIDsFromIDRef

func DatasetIDsFromIDRef(ids []*ID) []DatasetID

DatasetIDsFromIDRef converts a ref of a generic ID slice into a ID slice.

func MustDatasetID

func MustDatasetID(i string) DatasetID

MustDatasetID generates a new DatasetID from a string, but panics if the string cannot be parsed.

func NewDatasetID

func NewDatasetID() DatasetID

NewDatasetID generates a new DatasetId.

func (DatasetID) Contains

func (d DatasetID) Contains(ids []DatasetID) bool

Contains returns whether the id is contained in the slice.

func (*DatasetID) CopyRef

func (d *DatasetID) CopyRef() *DatasetID

CopyRef returns a copy of a reference.

func (DatasetID) GoString

func (d DatasetID) GoString() string

GoString implements fmt.GoStringer interface.

func (DatasetID) ID

func (d DatasetID) ID() ID

ID returns a domain ID.

func (*DatasetID) IDRef

func (d *DatasetID) IDRef() *ID

IDRef returns a reference of a domain id.

func (DatasetID) IsNil

func (d DatasetID) IsNil() bool

IsNil returns true if a ID is zero-value

func (*DatasetID) IsNilRef added in v0.4.0

func (d *DatasetID) IsNilRef() bool

IsNilRef returns true if a ID is nil or zero-value

func (*DatasetID) MarhsalJSON

func (d *DatasetID) MarhsalJSON() ([]byte, error)

MarhsalJSON implements json.Marhsaler interface

func (*DatasetID) MarshalText

func (d *DatasetID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (DatasetID) Ref

func (d DatasetID) Ref() *DatasetID

Ref returns a reference.

func (DatasetID) RefString

func (d DatasetID) RefString() *string

StringRef returns a reference of the string representation.

func (DatasetID) String

func (d DatasetID) String() string

String returns a string representation.

func (*DatasetID) StringRef

func (d *DatasetID) StringRef() *string

StringRef returns a reference of a string representation.

func (*DatasetID) UnmarhsalJSON

func (d *DatasetID) UnmarhsalJSON(bs []byte) (err error)

UnmarhsalJSON implements json.Unmarshaler interface

func (*DatasetID) UnmarshalText

func (d *DatasetID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

type DatasetIDSet

type DatasetIDSet struct {
	// contains filtered or unexported fields
}

DatasetIDSet represents a set of DatasetIDs

func NewDatasetIDSet

func NewDatasetIDSet() *DatasetIDSet

NewDatasetIDSet creates a new DatasetIDSet

func (*DatasetIDSet) Add

func (s *DatasetIDSet) Add(p ...DatasetID)

Add adds a new ID if it does not exists in the set

func (*DatasetIDSet) AddRef

func (s *DatasetIDSet) AddRef(p *DatasetID)

AddRef adds a new ID ref if it does not exists in the set

func (*DatasetIDSet) All

func (s *DatasetIDSet) All() []DatasetID

All returns stored all IDs as a slice

func (*DatasetIDSet) Clear

func (s *DatasetIDSet) Clear()

Clear clears all stored IDs

func (*DatasetIDSet) Clone

func (s *DatasetIDSet) Clone() *DatasetIDSet

Clone returns a cloned set

func (*DatasetIDSet) Has

func (s *DatasetIDSet) Has(p DatasetID) bool

Has checks if the ID exists in the set

func (*DatasetIDSet) Merge

func (s *DatasetIDSet) Merge(s2 *DatasetIDSet) *DatasetIDSet

Merge returns a merged set

type DatasetSchemaFieldID

type DatasetSchemaFieldID ID

DatasetSchemaFieldID is an ID for DatasetSchemaField.

func DatasetSchemaFieldIDFrom

func DatasetSchemaFieldIDFrom(i string) (nid DatasetSchemaFieldID, err error)

DatasetSchemaFieldIDFrom generates a new DatasetSchemaFieldID from a string.

func DatasetSchemaFieldIDFromRef

func DatasetSchemaFieldIDFromRef(i *string) *DatasetSchemaFieldID

DatasetSchemaFieldIDFromRef generates a new DatasetSchemaFieldID from a string ref.

func DatasetSchemaFieldIDFromRefID

func DatasetSchemaFieldIDFromRefID(i *ID) *DatasetSchemaFieldID

DatasetSchemaFieldIDFromRefID generates a new DatasetSchemaFieldID from a ref of a generic ID.

func DatasetSchemaFieldIDsFrom

func DatasetSchemaFieldIDsFrom(ids []string) ([]DatasetSchemaFieldID, error)

DatasetSchemaFieldIDsFrom converts a string slice into a ID slice.

func DatasetSchemaFieldIDsFromID

func DatasetSchemaFieldIDsFromID(ids []ID) []DatasetSchemaFieldID

DatasetSchemaFieldIDsFromID converts a generic ID slice into a ID slice.

func DatasetSchemaFieldIDsFromIDRef

func DatasetSchemaFieldIDsFromIDRef(ids []*ID) []DatasetSchemaFieldID

DatasetSchemaFieldIDsFromIDRef converts a ref of a generic ID slice into a ID slice.

func MustDatasetSchemaFieldID

func MustDatasetSchemaFieldID(i string) DatasetSchemaFieldID

MustDatasetSchemaFieldID generates a new DatasetSchemaFieldID from a string, but panics if the string cannot be parsed.

func NewDatasetSchemaFieldID

func NewDatasetSchemaFieldID() DatasetSchemaFieldID

NewDatasetSchemaFieldID generates a new DatasetSchemaFieldId.

func (DatasetSchemaFieldID) Contains

Contains returns whether the id is contained in the slice.

func (*DatasetSchemaFieldID) CopyRef

CopyRef returns a copy of a reference.

func (DatasetSchemaFieldID) GoString

func (d DatasetSchemaFieldID) GoString() string

GoString implements fmt.GoStringer interface.

func (DatasetSchemaFieldID) ID

func (d DatasetSchemaFieldID) ID() ID

ID returns a domain ID.

func (*DatasetSchemaFieldID) IDRef

func (d *DatasetSchemaFieldID) IDRef() *ID

IDRef returns a reference of a domain id.

func (DatasetSchemaFieldID) IsNil

func (d DatasetSchemaFieldID) IsNil() bool

IsNil returns true if a ID is zero-value

func (*DatasetSchemaFieldID) IsNilRef added in v0.4.0

func (d *DatasetSchemaFieldID) IsNilRef() bool

IsNilRef returns true if a ID is nil or zero-value

func (*DatasetSchemaFieldID) MarhsalJSON

func (d *DatasetSchemaFieldID) MarhsalJSON() ([]byte, error)

MarhsalJSON implements json.Marhsaler interface

func (*DatasetSchemaFieldID) MarshalText

func (d *DatasetSchemaFieldID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (DatasetSchemaFieldID) Ref

Ref returns a reference.

func (DatasetSchemaFieldID) RefString

func (d DatasetSchemaFieldID) RefString() *string

StringRef returns a reference of the string representation.

func (DatasetSchemaFieldID) String

func (d DatasetSchemaFieldID) String() string

String returns a string representation.

func (*DatasetSchemaFieldID) StringRef

func (d *DatasetSchemaFieldID) StringRef() *string

StringRef returns a reference of a string representation.

func (*DatasetSchemaFieldID) UnmarhsalJSON

func (d *DatasetSchemaFieldID) UnmarhsalJSON(bs []byte) (err error)

UnmarhsalJSON implements json.Unmarshaler interface

func (*DatasetSchemaFieldID) UnmarshalText

func (d *DatasetSchemaFieldID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

type DatasetSchemaFieldIDSet

type DatasetSchemaFieldIDSet struct {
	// contains filtered or unexported fields
}

DatasetSchemaFieldIDSet represents a set of DatasetSchemaFieldIDs

func NewDatasetSchemaFieldIDSet

func NewDatasetSchemaFieldIDSet() *DatasetSchemaFieldIDSet

NewDatasetSchemaFieldIDSet creates a new DatasetSchemaFieldIDSet

func (*DatasetSchemaFieldIDSet) Add

Add adds a new ID if it does not exists in the set

func (*DatasetSchemaFieldIDSet) AddRef

AddRef adds a new ID ref if it does not exists in the set

func (*DatasetSchemaFieldIDSet) All

All returns stored all IDs as a slice

func (*DatasetSchemaFieldIDSet) Clear

func (s *DatasetSchemaFieldIDSet) Clear()

Clear clears all stored IDs

func (*DatasetSchemaFieldIDSet) Clone

Clone returns a cloned set

func (*DatasetSchemaFieldIDSet) Has

Has checks if the ID exists in the set

func (*DatasetSchemaFieldIDSet) Merge

Merge returns a merged set

type DatasetSchemaID

type DatasetSchemaID ID

DatasetSchemaID is an ID for DatasetSchema.

func DatasetSchemaIDFrom

func DatasetSchemaIDFrom(i string) (nid DatasetSchemaID, err error)

DatasetSchemaIDFrom generates a new DatasetSchemaID from a string.

func DatasetSchemaIDFromRef

func DatasetSchemaIDFromRef(i *string) *DatasetSchemaID

DatasetSchemaIDFromRef generates a new DatasetSchemaID from a string ref.

func DatasetSchemaIDFromRefID

func DatasetSchemaIDFromRefID(i *ID) *DatasetSchemaID

DatasetSchemaIDFromRefID generates a new DatasetSchemaID from a ref of a generic ID.

func DatasetSchemaIDsFrom

func DatasetSchemaIDsFrom(ids []string) ([]DatasetSchemaID, error)

DatasetSchemaIDsFrom converts a string slice into a ID slice.

func DatasetSchemaIDsFromID

func DatasetSchemaIDsFromID(ids []ID) []DatasetSchemaID

DatasetSchemaIDsFromID converts a generic ID slice into a ID slice.

func DatasetSchemaIDsFromIDRef

func DatasetSchemaIDsFromIDRef(ids []*ID) []DatasetSchemaID

DatasetSchemaIDsFromIDRef converts a ref of a generic ID slice into a ID slice.

func MustDatasetSchemaID

func MustDatasetSchemaID(i string) DatasetSchemaID

MustDatasetSchemaID generates a new DatasetSchemaID from a string, but panics if the string cannot be parsed.

func NewDatasetSchemaID

func NewDatasetSchemaID() DatasetSchemaID

NewDatasetSchemaID generates a new DatasetSchemaId.

func (DatasetSchemaID) Contains

func (d DatasetSchemaID) Contains(ids []DatasetSchemaID) bool

Contains returns whether the id is contained in the slice.

func (*DatasetSchemaID) CopyRef

func (d *DatasetSchemaID) CopyRef() *DatasetSchemaID

CopyRef returns a copy of a reference.

func (DatasetSchemaID) GoString

func (d DatasetSchemaID) GoString() string

GoString implements fmt.GoStringer interface.

func (DatasetSchemaID) ID

func (d DatasetSchemaID) ID() ID

ID returns a domain ID.

func (*DatasetSchemaID) IDRef

func (d *DatasetSchemaID) IDRef() *ID

IDRef returns a reference of a domain id.

func (DatasetSchemaID) IsNil

func (d DatasetSchemaID) IsNil() bool

IsNil returns true if a ID is zero-value

func (*DatasetSchemaID) IsNilRef added in v0.4.0

func (d *DatasetSchemaID) IsNilRef() bool

IsNilRef returns true if a ID is nil or zero-value

func (*DatasetSchemaID) MarhsalJSON

func (d *DatasetSchemaID) MarhsalJSON() ([]byte, error)

MarhsalJSON implements json.Marhsaler interface

func (*DatasetSchemaID) MarshalText

func (d *DatasetSchemaID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (DatasetSchemaID) Ref

Ref returns a reference.

func (DatasetSchemaID) RefString

func (d DatasetSchemaID) RefString() *string

StringRef returns a reference of the string representation.

func (DatasetSchemaID) String

func (d DatasetSchemaID) String() string

String returns a string representation.

func (*DatasetSchemaID) StringRef

func (d *DatasetSchemaID) StringRef() *string

StringRef returns a reference of a string representation.

func (*DatasetSchemaID) UnmarhsalJSON

func (d *DatasetSchemaID) UnmarhsalJSON(bs []byte) (err error)

UnmarhsalJSON implements json.Unmarshaler interface

func (*DatasetSchemaID) UnmarshalText

func (d *DatasetSchemaID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

type DatasetSchemaIDSet

type DatasetSchemaIDSet struct {
	// contains filtered or unexported fields
}

DatasetSchemaIDSet represents a set of DatasetSchemaIDs

func NewDatasetSchemaIDSet

func NewDatasetSchemaIDSet() *DatasetSchemaIDSet

NewDatasetSchemaIDSet creates a new DatasetSchemaIDSet

func (*DatasetSchemaIDSet) Add

func (s *DatasetSchemaIDSet) Add(p ...DatasetSchemaID)

Add adds a new ID if it does not exists in the set

func (*DatasetSchemaIDSet) AddRef

func (s *DatasetSchemaIDSet) AddRef(p *DatasetSchemaID)

AddRef adds a new ID ref if it does not exists in the set

func (*DatasetSchemaIDSet) All

All returns stored all IDs as a slice

func (*DatasetSchemaIDSet) Clear

func (s *DatasetSchemaIDSet) Clear()

Clear clears all stored IDs

func (*DatasetSchemaIDSet) Clone

Clone returns a cloned set

func (*DatasetSchemaIDSet) Has

Has checks if the ID exists in the set

func (*DatasetSchemaIDSet) Merge

Merge returns a merged set

type ID

type ID struct {
	// contains filtered or unexported fields
}

func AssetIDsToID

func AssetIDsToID(ids []AssetID) []ID

AssetIDsToID converts a ID slice into a generic ID slice.

func AssetIDsToIDRef

func AssetIDsToIDRef(ids []*AssetID) []*ID

AssetIDsToIDRef converts a ID ref slice into a generic ID ref slice.

func AuthRequestIDsToID added in v0.6.0

func AuthRequestIDsToID(ids []AuthRequestID) []ID

AuthRequestIDsToID converts a ID slice into a generic ID slice.

func AuthRequestIDsToIDRef added in v0.6.0

func AuthRequestIDsToIDRef(ids []*AuthRequestID) []*ID

AuthRequestIDsToIDRef converts a ID ref slice into a generic ID ref slice.

func ClusterIDsToID added in v0.3.0

func ClusterIDsToID(ids []ClusterID) []ID

ClusterIDsToID converts a ID slice into a generic ID slice.

func ClusterIDsToIDRef added in v0.3.0

func ClusterIDsToIDRef(ids []*ClusterID) []*ID

ClusterIDsToIDRef converts a ID ref slice into a generic ID ref slice.

func DatasetIDsToID

func DatasetIDsToID(ids []DatasetID) []ID

DatasetIDsToID converts a ID slice into a generic ID slice.

func DatasetIDsToIDRef

func DatasetIDsToIDRef(ids []*DatasetID) []*ID

DatasetIDsToIDRef converts a ID ref slice into a generic ID ref slice.

func DatasetSchemaFieldIDsToID

func DatasetSchemaFieldIDsToID(ids []DatasetSchemaFieldID) []ID

DatasetSchemaFieldIDsToID converts a ID slice into a generic ID slice.

func DatasetSchemaFieldIDsToIDRef

func DatasetSchemaFieldIDsToIDRef(ids []*DatasetSchemaFieldID) []*ID

DatasetSchemaFieldIDsToIDRef converts a ID ref slice into a generic ID ref slice.

func DatasetSchemaIDsToID

func DatasetSchemaIDsToID(ids []DatasetSchemaID) []ID

DatasetSchemaIDsToID converts a ID slice into a generic ID slice.

func DatasetSchemaIDsToIDRef

func DatasetSchemaIDsToIDRef(ids []*DatasetSchemaID) []*ID

DatasetSchemaIDsToIDRef converts a ID ref slice into a generic ID ref slice.

func FromID

func FromID(id string) (ID, error)

func FromIDRef

func FromIDRef(id *string) *ID

func InfoboxFieldIDsToID

func InfoboxFieldIDsToID(ids []InfoboxFieldID) []ID

InfoboxFieldIDsToID converts a ID slice into a generic ID slice.

func InfoboxFieldIDsToIDRef

func InfoboxFieldIDsToIDRef(ids []*InfoboxFieldID) []*ID

InfoboxFieldIDsToIDRef converts a ID ref slice into a generic ID ref slice.

func LayerIDsToID

func LayerIDsToID(ids []LayerID) []ID

LayerIDsToID converts a ID slice into a generic ID slice.

func LayerIDsToIDRef

func LayerIDsToIDRef(ids []*LayerID) []*ID

LayerIDsToIDRef converts a ID ref slice into a generic ID ref slice.

func MustBeID

func MustBeID(id string) ID

func New

func New() ID

func NewAllID

func NewAllID(n int) []ID

func NewIDWith

func NewIDWith(id string) (ID, error)

func ProjectIDsToID

func ProjectIDsToID(ids []ProjectID) []ID

ProjectIDsToID converts a ID slice into a generic ID slice.

func ProjectIDsToIDRef

func ProjectIDsToIDRef(ids []*ProjectID) []*ID

ProjectIDsToIDRef converts a ID ref slice into a generic ID ref slice.

func PropertyIDsToID

func PropertyIDsToID(ids []PropertyID) []ID

PropertyIDsToID converts a ID slice into a generic ID slice.

func PropertyIDsToIDRef

func PropertyIDsToIDRef(ids []*PropertyID) []*ID

PropertyIDsToIDRef converts a ID ref slice into a generic ID ref slice.

func PropertyItemIDsToID

func PropertyItemIDsToID(ids []PropertyItemID) []ID

PropertyItemIDsToID converts a ID slice into a generic ID slice.

func PropertyItemIDsToIDRef

func PropertyItemIDsToIDRef(ids []*PropertyItemID) []*ID

PropertyItemIDsToIDRef converts a ID ref slice into a generic ID ref slice.

func SceneIDsToID

func SceneIDsToID(ids []SceneID) []ID

SceneIDsToID converts a ID slice into a generic ID slice.

func SceneIDsToIDRef

func SceneIDsToIDRef(ids []*SceneID) []*ID

SceneIDsToIDRef converts a ID ref slice into a generic ID ref slice.

func TagIDsToID

func TagIDsToID(ids []TagID) []ID

TagIDsToID converts a ID slice into a generic ID slice.

func TagIDsToIDRef

func TagIDsToIDRef(ids []*TagID) []*ID

TagIDsToIDRef converts a ID ref slice into a generic ID ref slice.

func TeamIDsToID

func TeamIDsToID(ids []TeamID) []ID

TeamIDsToID converts a ID slice into a generic ID slice.

func TeamIDsToIDRef

func TeamIDsToIDRef(ids []*TeamID) []*ID

TeamIDsToIDRef converts a ID ref slice into a generic ID ref slice.

func UserIDsToID

func UserIDsToID(ids []UserID) []ID

UserIDsToID converts a ID slice into a generic ID slice.

func UserIDsToIDRef

func UserIDsToIDRef(ids []*UserID) []*ID

UserIDsToIDRef converts a ID ref slice into a generic ID ref slice.

func WidgetIDsToID

func WidgetIDsToID(ids []WidgetID) []ID

WidgetIDsToID converts a ID slice into a generic ID slice.

func WidgetIDsToIDRef

func WidgetIDsToIDRef(ids []*WidgetID) []*ID

WidgetIDsToIDRef converts a ID ref slice into a generic ID ref slice.

func (ID) Compare

func (i ID) Compare(i2 ID) int

func (ID) Copy

func (i ID) Copy() ID

func (ID) Equal

func (i ID) Equal(i2 ID) bool

func (ID) GoString

func (i ID) GoString() string

GoString implements fmt.GoStringer interface.

func (*ID) IsEmpty

func (i *ID) IsEmpty() bool

func (ID) IsNil

func (i ID) IsNil() bool

func (ID) String

func (i ID) String() string

String implements fmt.Stringer interface.

func (ID) Timestamp

func (i ID) Timestamp() time.Time

type InfoboxFieldID

type InfoboxFieldID ID

InfoboxFieldID is an ID for InfoboxField.

func InfoboxFieldIDFrom

func InfoboxFieldIDFrom(i string) (nid InfoboxFieldID, err error)

InfoboxFieldIDFrom generates a new InfoboxFieldID from a string.

func InfoboxFieldIDFromRef

func InfoboxFieldIDFromRef(i *string) *InfoboxFieldID

InfoboxFieldIDFromRef generates a new InfoboxFieldID from a string ref.

func InfoboxFieldIDFromRefID

func InfoboxFieldIDFromRefID(i *ID) *InfoboxFieldID

InfoboxFieldIDFromRefID generates a new InfoboxFieldID from a ref of a generic ID.

func InfoboxFieldIDsFrom

func InfoboxFieldIDsFrom(ids []string) ([]InfoboxFieldID, error)

InfoboxFieldIDsFrom converts a string slice into a ID slice.

func InfoboxFieldIDsFromID

func InfoboxFieldIDsFromID(ids []ID) []InfoboxFieldID

InfoboxFieldIDsFromID converts a generic ID slice into a ID slice.

func InfoboxFieldIDsFromIDRef

func InfoboxFieldIDsFromIDRef(ids []*ID) []InfoboxFieldID

InfoboxFieldIDsFromIDRef converts a ref of a generic ID slice into a ID slice.

func MustInfoboxFieldID

func MustInfoboxFieldID(i string) InfoboxFieldID

MustInfoboxFieldID generates a new InfoboxFieldID from a string, but panics if the string cannot be parsed.

func NewInfoboxFieldID

func NewInfoboxFieldID() InfoboxFieldID

NewInfoboxFieldID generates a new InfoboxFieldId.

func (InfoboxFieldID) Contains

func (d InfoboxFieldID) Contains(ids []InfoboxFieldID) bool

Contains returns whether the id is contained in the slice.

func (*InfoboxFieldID) CopyRef

func (d *InfoboxFieldID) CopyRef() *InfoboxFieldID

CopyRef returns a copy of a reference.

func (InfoboxFieldID) GoString

func (d InfoboxFieldID) GoString() string

GoString implements fmt.GoStringer interface.

func (InfoboxFieldID) ID

func (d InfoboxFieldID) ID() ID

ID returns a domain ID.

func (*InfoboxFieldID) IDRef

func (d *InfoboxFieldID) IDRef() *ID

IDRef returns a reference of a domain id.

func (InfoboxFieldID) IsNil

func (d InfoboxFieldID) IsNil() bool

IsNil returns true if a ID is zero-value

func (*InfoboxFieldID) IsNilRef added in v0.4.0

func (d *InfoboxFieldID) IsNilRef() bool

IsNilRef returns true if a ID is nil or zero-value

func (*InfoboxFieldID) MarhsalJSON

func (d *InfoboxFieldID) MarhsalJSON() ([]byte, error)

MarhsalJSON implements json.Marhsaler interface

func (*InfoboxFieldID) MarshalText

func (d *InfoboxFieldID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (InfoboxFieldID) Ref

func (d InfoboxFieldID) Ref() *InfoboxFieldID

Ref returns a reference.

func (InfoboxFieldID) RefString

func (d InfoboxFieldID) RefString() *string

StringRef returns a reference of the string representation.

func (InfoboxFieldID) String

func (d InfoboxFieldID) String() string

String returns a string representation.

func (*InfoboxFieldID) StringRef

func (d *InfoboxFieldID) StringRef() *string

StringRef returns a reference of a string representation.

func (*InfoboxFieldID) UnmarhsalJSON

func (d *InfoboxFieldID) UnmarhsalJSON(bs []byte) (err error)

UnmarhsalJSON implements json.Unmarshaler interface

func (*InfoboxFieldID) UnmarshalText

func (d *InfoboxFieldID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

type InfoboxFieldIDSet

type InfoboxFieldIDSet struct {
	// contains filtered or unexported fields
}

InfoboxFieldIDSet represents a set of InfoboxFieldIDs

func NewInfoboxFieldIDSet

func NewInfoboxFieldIDSet() *InfoboxFieldIDSet

NewInfoboxFieldIDSet creates a new InfoboxFieldIDSet

func (*InfoboxFieldIDSet) Add

func (s *InfoboxFieldIDSet) Add(p ...InfoboxFieldID)

Add adds a new ID if it does not exists in the set

func (*InfoboxFieldIDSet) AddRef

func (s *InfoboxFieldIDSet) AddRef(p *InfoboxFieldID)

AddRef adds a new ID ref if it does not exists in the set

func (*InfoboxFieldIDSet) All

func (s *InfoboxFieldIDSet) All() []InfoboxFieldID

All returns stored all IDs as a slice

func (*InfoboxFieldIDSet) Clear

func (s *InfoboxFieldIDSet) Clear()

Clear clears all stored IDs

func (*InfoboxFieldIDSet) Clone

Clone returns a cloned set

func (*InfoboxFieldIDSet) Has

Has checks if the ID exists in the set

func (*InfoboxFieldIDSet) Merge

Merge returns a merged set

type LayerID

type LayerID ID

LayerID is an ID for Layer.

func LayerIDFrom

func LayerIDFrom(i string) (nid LayerID, err error)

LayerIDFrom generates a new LayerID from a string.

func LayerIDFromRef

func LayerIDFromRef(i *string) *LayerID

LayerIDFromRef generates a new LayerID from a string ref.

func LayerIDFromRefID

func LayerIDFromRefID(i *ID) *LayerID

LayerIDFromRefID generates a new LayerID from a ref of a generic ID.

func LayerIDsFrom

func LayerIDsFrom(ids []string) ([]LayerID, error)

LayerIDsFrom converts a string slice into a ID slice.

func LayerIDsFromID

func LayerIDsFromID(ids []ID) []LayerID

LayerIDsFromID converts a generic ID slice into a ID slice.

func LayerIDsFromIDRef

func LayerIDsFromIDRef(ids []*ID) []LayerID

LayerIDsFromIDRef converts a ref of a generic ID slice into a ID slice.

func MustLayerID

func MustLayerID(i string) LayerID

MustLayerID generates a new LayerID from a string, but panics if the string cannot be parsed.

func NewLayerID

func NewLayerID() LayerID

NewLayerID generates a new LayerId.

func (LayerID) Contains

func (d LayerID) Contains(ids []LayerID) bool

Contains returns whether the id is contained in the slice.

func (*LayerID) CopyRef

func (d *LayerID) CopyRef() *LayerID

CopyRef returns a copy of a reference.

func (LayerID) GoString

func (d LayerID) GoString() string

GoString implements fmt.GoStringer interface.

func (LayerID) ID

func (d LayerID) ID() ID

ID returns a domain ID.

func (*LayerID) IDRef

func (d *LayerID) IDRef() *ID

IDRef returns a reference of a domain id.

func (LayerID) IsNil

func (d LayerID) IsNil() bool

IsNil returns true if a ID is zero-value

func (*LayerID) IsNilRef added in v0.4.0

func (d *LayerID) IsNilRef() bool

IsNilRef returns true if a ID is nil or zero-value

func (*LayerID) MarhsalJSON

func (d *LayerID) MarhsalJSON() ([]byte, error)

MarhsalJSON implements json.Marhsaler interface

func (*LayerID) MarshalText

func (d *LayerID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (LayerID) Ref

func (d LayerID) Ref() *LayerID

Ref returns a reference.

func (LayerID) RefString

func (d LayerID) RefString() *string

StringRef returns a reference of the string representation.

func (LayerID) String

func (d LayerID) String() string

String returns a string representation.

func (*LayerID) StringRef

func (d *LayerID) StringRef() *string

StringRef returns a reference of a string representation.

func (*LayerID) UnmarhsalJSON

func (d *LayerID) UnmarhsalJSON(bs []byte) (err error)

UnmarhsalJSON implements json.Unmarshaler interface

func (*LayerID) UnmarshalText

func (d *LayerID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

type LayerIDSet

type LayerIDSet struct {
	// contains filtered or unexported fields
}

LayerIDSet represents a set of LayerIDs

func NewLayerIDSet

func NewLayerIDSet() *LayerIDSet

NewLayerIDSet creates a new LayerIDSet

func (*LayerIDSet) Add

func (s *LayerIDSet) Add(p ...LayerID)

Add adds a new ID if it does not exists in the set

func (*LayerIDSet) AddRef

func (s *LayerIDSet) AddRef(p *LayerID)

AddRef adds a new ID ref if it does not exists in the set

func (*LayerIDSet) All

func (s *LayerIDSet) All() []LayerID

All returns stored all IDs as a slice

func (*LayerIDSet) Clear

func (s *LayerIDSet) Clear()

Clear clears all stored IDs

func (*LayerIDSet) Clone

func (s *LayerIDSet) Clone() *LayerIDSet

Clone returns a cloned set

func (*LayerIDSet) Has

func (s *LayerIDSet) Has(p LayerID) bool

Has checks if the ID exists in the set

func (*LayerIDSet) Merge

func (s *LayerIDSet) Merge(s2 *LayerIDSet) *LayerIDSet

Merge returns a merged set

type PluginExtensionID

type PluginExtensionID string

func PluginExtensionIDFromRef

func PluginExtensionIDFromRef(id *string) *PluginExtensionID

func (*PluginExtensionID) CopyRef

func (id *PluginExtensionID) CopyRef() *PluginExtensionID

func (PluginExtensionID) Ref

func (PluginExtensionID) String

func (id PluginExtensionID) String() string

func (*PluginExtensionID) StringRef

func (id *PluginExtensionID) StringRef() *string

type PluginID

type PluginID struct {
	// contains filtered or unexported fields
}

PluginID is an ID for Plugin.

func MustPluginID

func MustPluginID(id string) PluginID

MustPluginID generates a new id.PluginID from a string, but panics if the string cannot be parsed.

func NewPluginID

func NewPluginID(name string, version string, scene *SceneID) (PluginID, error)

func PluginIDFrom

func PluginIDFrom(id string) (PluginID, error)

PluginIDFrom generates a new id.PluginID from a string.

func PluginIDFromRef

func PluginIDFromRef(id *string) *PluginID

PluginIDFromRef generates a new id.PluginID from a string ref.

func PluginIDsFrom

func PluginIDsFrom(ids []string) ([]PluginID, error)

PluginIDsFrom converts a string slice into a ID slice.

func (PluginID) Clone added in v0.4.0

func (d PluginID) Clone() PluginID

Clone duplicates the PluginID

func (*PluginID) CopyRef

func (d *PluginID) CopyRef() *PluginID

func (PluginID) Equal

func (d PluginID) Equal(d2 PluginID) bool

Equal returns true if two IDs are equal.

func (PluginID) IsNil added in v0.4.0

func (d PluginID) IsNil() bool

IsNil checks if ID is empty or not.

func (*PluginID) MarshalText

func (d *PluginID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (PluginID) Name

func (d PluginID) Name() string

Name returns a name.

func (PluginID) Ref

func (d PluginID) Ref() *PluginID

Ref returns a reference.

func (PluginID) Scene

func (d PluginID) Scene() *SceneID

Scene returns a scene ID of the plugin. It indicates this plugin is private and available for only the specific scene.

func (PluginID) String

func (d PluginID) String() (s string)

String returns a string representation.

func (*PluginID) StringRef

func (d *PluginID) StringRef() *string

StringRef returns a reference of a string representation.

func (PluginID) System

func (d PluginID) System() bool

System returns if the ID is built-in.

func (*PluginID) UnmarshalText

func (d *PluginID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

func (PluginID) Validate

func (d PluginID) Validate() bool

Validate returns true if id is valid.

func (PluginID) Version

func (d PluginID) Version() semver.Version

Version returns a version.

func (PluginID) WithScene added in v0.5.0

func (d PluginID) WithScene(sid *SceneID) PluginID

type ProjectID

type ProjectID ID

ProjectID is an ID for Project.

func MustProjectID

func MustProjectID(i string) ProjectID

MustProjectID generates a new ProjectID from a string, but panics if the string cannot be parsed.

func NewProjectID

func NewProjectID() ProjectID

NewProjectID generates a new ProjectId.

func ProjectIDFrom

func ProjectIDFrom(i string) (nid ProjectID, err error)

ProjectIDFrom generates a new ProjectID from a string.

func ProjectIDFromRef

func ProjectIDFromRef(i *string) *ProjectID

ProjectIDFromRef generates a new ProjectID from a string ref.

func ProjectIDFromRefID

func ProjectIDFromRefID(i *ID) *ProjectID

ProjectIDFromRefID generates a new ProjectID from a ref of a generic ID.

func ProjectIDsFrom

func ProjectIDsFrom(ids []string) ([]ProjectID, error)

ProjectIDsFrom converts a string slice into a ID slice.

func ProjectIDsFromID

func ProjectIDsFromID(ids []ID) []ProjectID

ProjectIDsFromID converts a generic ID slice into a ID slice.

func ProjectIDsFromIDRef

func ProjectIDsFromIDRef(ids []*ID) []ProjectID

ProjectIDsFromIDRef converts a ref of a generic ID slice into a ID slice.

func (ProjectID) Contains

func (d ProjectID) Contains(ids []ProjectID) bool

Contains returns whether the id is contained in the slice.

func (*ProjectID) CopyRef

func (d *ProjectID) CopyRef() *ProjectID

CopyRef returns a copy of a reference.

func (ProjectID) GoString

func (d ProjectID) GoString() string

GoString implements fmt.GoStringer interface.

func (ProjectID) ID

func (d ProjectID) ID() ID

ID returns a domain ID.

func (*ProjectID) IDRef

func (d *ProjectID) IDRef() *ID

IDRef returns a reference of a domain id.

func (ProjectID) IsNil

func (d ProjectID) IsNil() bool

IsNil returns true if a ID is zero-value

func (*ProjectID) IsNilRef added in v0.4.0

func (d *ProjectID) IsNilRef() bool

IsNilRef returns true if a ID is nil or zero-value

func (*ProjectID) MarhsalJSON

func (d *ProjectID) MarhsalJSON() ([]byte, error)

MarhsalJSON implements json.Marhsaler interface

func (*ProjectID) MarshalText

func (d *ProjectID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (ProjectID) Ref

func (d ProjectID) Ref() *ProjectID

Ref returns a reference.

func (ProjectID) RefString

func (d ProjectID) RefString() *string

StringRef returns a reference of the string representation.

func (ProjectID) String

func (d ProjectID) String() string

String returns a string representation.

func (*ProjectID) StringRef

func (d *ProjectID) StringRef() *string

StringRef returns a reference of a string representation.

func (*ProjectID) UnmarhsalJSON

func (d *ProjectID) UnmarhsalJSON(bs []byte) (err error)

UnmarhsalJSON implements json.Unmarshaler interface

func (*ProjectID) UnmarshalText

func (d *ProjectID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

type ProjectIDSet

type ProjectIDSet struct {
	// contains filtered or unexported fields
}

ProjectIDSet represents a set of ProjectIDs

func NewProjectIDSet

func NewProjectIDSet() *ProjectIDSet

NewProjectIDSet creates a new ProjectIDSet

func (*ProjectIDSet) Add

func (s *ProjectIDSet) Add(p ...ProjectID)

Add adds a new ID if it does not exists in the set

func (*ProjectIDSet) AddRef

func (s *ProjectIDSet) AddRef(p *ProjectID)

AddRef adds a new ID ref if it does not exists in the set

func (*ProjectIDSet) All

func (s *ProjectIDSet) All() []ProjectID

All returns stored all IDs as a slice

func (*ProjectIDSet) Clear

func (s *ProjectIDSet) Clear()

Clear clears all stored IDs

func (*ProjectIDSet) Clone

func (s *ProjectIDSet) Clone() *ProjectIDSet

Clone returns a cloned set

func (*ProjectIDSet) Has

func (s *ProjectIDSet) Has(p ProjectID) bool

Has checks if the ID exists in the set

func (*ProjectIDSet) Merge

func (s *ProjectIDSet) Merge(s2 *ProjectIDSet) *ProjectIDSet

Merge returns a merged set

type PropertyID

type PropertyID ID

PropertyID is an ID for Property.

func MustPropertyID

func MustPropertyID(i string) PropertyID

MustPropertyID generates a new PropertyID from a string, but panics if the string cannot be parsed.

func NewPropertyID

func NewPropertyID() PropertyID

NewPropertyID generates a new PropertyId.

func PropertyIDFrom

func PropertyIDFrom(i string) (nid PropertyID, err error)

PropertyIDFrom generates a new PropertyID from a string.

func PropertyIDFromRef

func PropertyIDFromRef(i *string) *PropertyID

PropertyIDFromRef generates a new PropertyID from a string ref.

func PropertyIDFromRefID

func PropertyIDFromRefID(i *ID) *PropertyID

PropertyIDFromRefID generates a new PropertyID from a ref of a generic ID.

func PropertyIDsFrom

func PropertyIDsFrom(ids []string) ([]PropertyID, error)

PropertyIDsFrom converts a string slice into a ID slice.

func PropertyIDsFromID

func PropertyIDsFromID(ids []ID) []PropertyID

PropertyIDsFromID converts a generic ID slice into a ID slice.

func PropertyIDsFromIDRef

func PropertyIDsFromIDRef(ids []*ID) []PropertyID

PropertyIDsFromIDRef converts a ref of a generic ID slice into a ID slice.

func (PropertyID) Contains

func (d PropertyID) Contains(ids []PropertyID) bool

Contains returns whether the id is contained in the slice.

func (*PropertyID) CopyRef

func (d *PropertyID) CopyRef() *PropertyID

CopyRef returns a copy of a reference.

func (PropertyID) GoString

func (d PropertyID) GoString() string

GoString implements fmt.GoStringer interface.

func (PropertyID) ID

func (d PropertyID) ID() ID

ID returns a domain ID.

func (*PropertyID) IDRef

func (d *PropertyID) IDRef() *ID

IDRef returns a reference of a domain id.

func (PropertyID) IsNil

func (d PropertyID) IsNil() bool

IsNil returns true if a ID is zero-value

func (*PropertyID) IsNilRef added in v0.4.0

func (d *PropertyID) IsNilRef() bool

IsNilRef returns true if a ID is nil or zero-value

func (*PropertyID) MarhsalJSON

func (d *PropertyID) MarhsalJSON() ([]byte, error)

MarhsalJSON implements json.Marhsaler interface

func (*PropertyID) MarshalText

func (d *PropertyID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (PropertyID) Ref

func (d PropertyID) Ref() *PropertyID

Ref returns a reference.

func (PropertyID) RefString

func (d PropertyID) RefString() *string

StringRef returns a reference of the string representation.

func (PropertyID) String

func (d PropertyID) String() string

String returns a string representation.

func (*PropertyID) StringRef

func (d *PropertyID) StringRef() *string

StringRef returns a reference of a string representation.

func (*PropertyID) UnmarhsalJSON

func (d *PropertyID) UnmarhsalJSON(bs []byte) (err error)

UnmarhsalJSON implements json.Unmarshaler interface

func (*PropertyID) UnmarshalText

func (d *PropertyID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

type PropertyIDSet

type PropertyIDSet struct {
	// contains filtered or unexported fields
}

PropertyIDSet represents a set of PropertyIDs

func NewPropertyIDSet

func NewPropertyIDSet() *PropertyIDSet

NewPropertyIDSet creates a new PropertyIDSet

func (*PropertyIDSet) Add

func (s *PropertyIDSet) Add(p ...PropertyID)

Add adds a new ID if it does not exists in the set

func (*PropertyIDSet) AddRef

func (s *PropertyIDSet) AddRef(p *PropertyID)

AddRef adds a new ID ref if it does not exists in the set

func (*PropertyIDSet) All

func (s *PropertyIDSet) All() []PropertyID

All returns stored all IDs as a slice

func (*PropertyIDSet) Clear

func (s *PropertyIDSet) Clear()

Clear clears all stored IDs

func (*PropertyIDSet) Clone

func (s *PropertyIDSet) Clone() *PropertyIDSet

Clone returns a cloned set

func (*PropertyIDSet) Has

func (s *PropertyIDSet) Has(p PropertyID) bool

Has checks if the ID exists in the set

func (*PropertyIDSet) Merge

func (s *PropertyIDSet) Merge(s2 *PropertyIDSet) *PropertyIDSet

Merge returns a merged set

type PropertyItemID

type PropertyItemID ID

PropertyItemID is an ID for PropertyItem.

func MustPropertyItemID

func MustPropertyItemID(i string) PropertyItemID

MustPropertyItemID generates a new PropertyItemID from a string, but panics if the string cannot be parsed.

func NewPropertyItemID

func NewPropertyItemID() PropertyItemID

NewPropertyItemID generates a new PropertyItemId.

func PropertyItemIDFrom

func PropertyItemIDFrom(i string) (nid PropertyItemID, err error)

PropertyItemIDFrom generates a new PropertyItemID from a string.

func PropertyItemIDFromRef

func PropertyItemIDFromRef(i *string) *PropertyItemID

PropertyItemIDFromRef generates a new PropertyItemID from a string ref.

func PropertyItemIDFromRefID

func PropertyItemIDFromRefID(i *ID) *PropertyItemID

PropertyItemIDFromRefID generates a new PropertyItemID from a ref of a generic ID.

func PropertyItemIDsFrom

func PropertyItemIDsFrom(ids []string) ([]PropertyItemID, error)

PropertyItemIDsFrom converts a string slice into a ID slice.

func PropertyItemIDsFromID

func PropertyItemIDsFromID(ids []ID) []PropertyItemID

PropertyItemIDsFromID converts a generic ID slice into a ID slice.

func PropertyItemIDsFromIDRef

func PropertyItemIDsFromIDRef(ids []*ID) []PropertyItemID

PropertyItemIDsFromIDRef converts a ref of a generic ID slice into a ID slice.

func (PropertyItemID) Contains

func (d PropertyItemID) Contains(ids []PropertyItemID) bool

Contains returns whether the id is contained in the slice.

func (*PropertyItemID) CopyRef

func (d *PropertyItemID) CopyRef() *PropertyItemID

CopyRef returns a copy of a reference.

func (PropertyItemID) GoString

func (d PropertyItemID) GoString() string

GoString implements fmt.GoStringer interface.

func (PropertyItemID) ID

func (d PropertyItemID) ID() ID

ID returns a domain ID.

func (*PropertyItemID) IDRef

func (d *PropertyItemID) IDRef() *ID

IDRef returns a reference of a domain id.

func (PropertyItemID) IsNil

func (d PropertyItemID) IsNil() bool

IsNil returns true if a ID is zero-value

func (*PropertyItemID) IsNilRef added in v0.4.0

func (d *PropertyItemID) IsNilRef() bool

IsNilRef returns true if a ID is nil or zero-value

func (*PropertyItemID) MarhsalJSON

func (d *PropertyItemID) MarhsalJSON() ([]byte, error)

MarhsalJSON implements json.Marhsaler interface

func (*PropertyItemID) MarshalText

func (d *PropertyItemID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (PropertyItemID) Ref

func (d PropertyItemID) Ref() *PropertyItemID

Ref returns a reference.

func (PropertyItemID) RefString

func (d PropertyItemID) RefString() *string

StringRef returns a reference of the string representation.

func (PropertyItemID) String

func (d PropertyItemID) String() string

String returns a string representation.

func (*PropertyItemID) StringRef

func (d *PropertyItemID) StringRef() *string

StringRef returns a reference of a string representation.

func (*PropertyItemID) UnmarhsalJSON

func (d *PropertyItemID) UnmarhsalJSON(bs []byte) (err error)

UnmarhsalJSON implements json.Unmarshaler interface

func (*PropertyItemID) UnmarshalText

func (d *PropertyItemID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

type PropertyItemIDSet

type PropertyItemIDSet struct {
	// contains filtered or unexported fields
}

PropertyItemIDSet represents a set of PropertyItemIDs

func NewPropertyItemIDSet

func NewPropertyItemIDSet() *PropertyItemIDSet

NewPropertyItemIDSet creates a new PropertyItemIDSet

func (*PropertyItemIDSet) Add

func (s *PropertyItemIDSet) Add(p ...PropertyItemID)

Add adds a new ID if it does not exists in the set

func (*PropertyItemIDSet) AddRef

func (s *PropertyItemIDSet) AddRef(p *PropertyItemID)

AddRef adds a new ID ref if it does not exists in the set

func (*PropertyItemIDSet) All

func (s *PropertyItemIDSet) All() []PropertyItemID

All returns stored all IDs as a slice

func (*PropertyItemIDSet) Clear

func (s *PropertyItemIDSet) Clear()

Clear clears all stored IDs

func (*PropertyItemIDSet) Clone

Clone returns a cloned set

func (*PropertyItemIDSet) Has

Has checks if the ID exists in the set

func (*PropertyItemIDSet) Merge

Merge returns a merged set

type PropertySchemaFieldID

type PropertySchemaFieldID string

func PropertySchemaFieldIDFrom

func PropertySchemaFieldIDFrom(str *string) *PropertySchemaFieldID

func (*PropertySchemaFieldID) CopyRef

func (PropertySchemaFieldID) Ref

func (PropertySchemaFieldID) String

func (id PropertySchemaFieldID) String() string

func (*PropertySchemaFieldID) StringRef

func (id *PropertySchemaFieldID) StringRef() *string

type PropertySchemaGroupID added in v0.2.0

type PropertySchemaGroupID string

func PropertySchemaGroupIDFrom added in v0.2.0

func PropertySchemaGroupIDFrom(str *string) *PropertySchemaGroupID

func (*PropertySchemaGroupID) CopyRef added in v0.2.0

func (PropertySchemaGroupID) Ref added in v0.2.0

func (PropertySchemaGroupID) String added in v0.2.0

func (id PropertySchemaGroupID) String() string

func (*PropertySchemaGroupID) StringRef added in v0.2.0

func (id *PropertySchemaGroupID) StringRef() *string

type PropertySchemaID

type PropertySchemaID struct {
	// contains filtered or unexported fields
}

PropertySchemaID is an ID for PropertySchema.

func MustPropertySchemaID

func MustPropertySchemaID(id string) PropertySchemaID

MustPropertySchemaID generates a new PropertySchemaID from a string, but panics if the string cannot be parsed.

func NewPropertySchemaID added in v0.5.0

func NewPropertySchemaID(p PluginID, name string) PropertySchemaID

NewPropertySchemaID generates a new PropertySchemaID from a plugin ID and name.

func PropertySchemaIDFrom

func PropertySchemaIDFrom(id string) (PropertySchemaID, error)

PropertySchemaIDFrom generates a new PropertySchemaID from a string.

func PropertySchemaIDFromRef

func PropertySchemaIDFromRef(id *string) *PropertySchemaID

PropertySchemaIDFromRef generates a new PropertySchemaID from a string ref.

func PropertySchemaIDsFrom

func PropertySchemaIDsFrom(ids []string) ([]PropertySchemaID, error)

PropertySchemaIDsFrom converts a string slice into a ID slice.

func (PropertySchemaID) Clone added in v0.4.0

Clone duplicates the PropertySchemaID

func (*PropertySchemaID) CopyRef

func (d *PropertySchemaID) CopyRef() *PropertySchemaID

CopyRef returns a copy of a reference.

func (PropertySchemaID) Equal

Equal returns true if two IDs are equal.

func (PropertySchemaID) ID

func (d PropertySchemaID) ID() string

ID returns a fragment of just ID.

func (PropertySchemaID) IsNil

func (d PropertySchemaID) IsNil() bool

IsNil checks if ID is empty or not.

func (*PropertySchemaID) MarshalText

func (d *PropertySchemaID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (PropertySchemaID) Plugin

func (d PropertySchemaID) Plugin() PluginID

Plugin returns a fragment of plugin ID.

func (PropertySchemaID) Ref

Ref returns a reference.

func (PropertySchemaID) String

func (d PropertySchemaID) String() string

String returns a string representation.

func (*PropertySchemaID) StringRef

func (d *PropertySchemaID) StringRef() *string

StringRef returns a reference of a string representation.

func (*PropertySchemaID) UnmarshalText

func (d *PropertySchemaID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

func (PropertySchemaID) WithPlugin added in v0.5.0

func (d PropertySchemaID) WithPlugin(plugin PluginID) PropertySchemaID

WithPlugin duplicates the PropertySchemaID but its plugin ID is changed

type SceneID

type SceneID ID

SceneID is an ID for Scene.

func MustSceneID

func MustSceneID(i string) SceneID

MustSceneID generates a new SceneID from a string, but panics if the string cannot be parsed.

func NewSceneID

func NewSceneID() SceneID

NewSceneID generates a new SceneId.

func SceneIDFrom

func SceneIDFrom(i string) (nid SceneID, err error)

SceneIDFrom generates a new SceneID from a string.

func SceneIDFromRef

func SceneIDFromRef(i *string) *SceneID

SceneIDFromRef generates a new SceneID from a string ref.

func SceneIDFromRefID

func SceneIDFromRefID(i *ID) *SceneID

SceneIDFromRefID generates a new SceneID from a ref of a generic ID.

func SceneIDsFrom

func SceneIDsFrom(ids []string) ([]SceneID, error)

SceneIDsFrom converts a string slice into a ID slice.

func SceneIDsFromID

func SceneIDsFromID(ids []ID) []SceneID

SceneIDsFromID converts a generic ID slice into a ID slice.

func SceneIDsFromIDRef

func SceneIDsFromIDRef(ids []*ID) []SceneID

SceneIDsFromIDRef converts a ref of a generic ID slice into a ID slice.

func (SceneID) Contains

func (d SceneID) Contains(ids []SceneID) bool

Contains returns whether the id is contained in the slice.

func (*SceneID) CopyRef

func (d *SceneID) CopyRef() *SceneID

CopyRef returns a copy of a reference.

func (SceneID) GoString

func (d SceneID) GoString() string

GoString implements fmt.GoStringer interface.

func (SceneID) ID

func (d SceneID) ID() ID

ID returns a domain ID.

func (*SceneID) IDRef

func (d *SceneID) IDRef() *ID

IDRef returns a reference of a domain id.

func (SceneID) IsNil

func (d SceneID) IsNil() bool

IsNil returns true if a ID is zero-value

func (*SceneID) IsNilRef added in v0.4.0

func (d *SceneID) IsNilRef() bool

IsNilRef returns true if a ID is nil or zero-value

func (*SceneID) MarhsalJSON

func (d *SceneID) MarhsalJSON() ([]byte, error)

MarhsalJSON implements json.Marhsaler interface

func (*SceneID) MarshalText

func (d *SceneID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (SceneID) Ref

func (d SceneID) Ref() *SceneID

Ref returns a reference.

func (SceneID) RefString

func (d SceneID) RefString() *string

StringRef returns a reference of the string representation.

func (SceneID) String

func (d SceneID) String() string

String returns a string representation.

func (*SceneID) StringRef

func (d *SceneID) StringRef() *string

StringRef returns a reference of a string representation.

func (*SceneID) UnmarhsalJSON

func (d *SceneID) UnmarhsalJSON(bs []byte) (err error)

UnmarhsalJSON implements json.Unmarshaler interface

func (*SceneID) UnmarshalText

func (d *SceneID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

type SceneIDSet

type SceneIDSet struct {
	// contains filtered or unexported fields
}

SceneIDSet represents a set of SceneIDs

func NewSceneIDSet

func NewSceneIDSet() *SceneIDSet

NewSceneIDSet creates a new SceneIDSet

func (*SceneIDSet) Add

func (s *SceneIDSet) Add(p ...SceneID)

Add adds a new ID if it does not exists in the set

func (*SceneIDSet) AddRef

func (s *SceneIDSet) AddRef(p *SceneID)

AddRef adds a new ID ref if it does not exists in the set

func (*SceneIDSet) All

func (s *SceneIDSet) All() []SceneID

All returns stored all IDs as a slice

func (*SceneIDSet) Clear

func (s *SceneIDSet) Clear()

Clear clears all stored IDs

func (*SceneIDSet) Clone

func (s *SceneIDSet) Clone() *SceneIDSet

Clone returns a cloned set

func (*SceneIDSet) Has

func (s *SceneIDSet) Has(p SceneID) bool

Has checks if the ID exists in the set

func (*SceneIDSet) Merge

func (s *SceneIDSet) Merge(s2 *SceneIDSet) *SceneIDSet

Merge returns a merged set

type TagID

type TagID ID

TagID is an ID for Tag.

func MustTagID

func MustTagID(i string) TagID

MustTagID generates a new TagID from a string, but panics if the string cannot be parsed.

func NewTagID

func NewTagID() TagID

NewTagID generates a new TagId.

func TagIDFrom

func TagIDFrom(i string) (nid TagID, err error)

TagIDFrom generates a new TagID from a string.

func TagIDFromRef

func TagIDFromRef(i *string) *TagID

TagIDFromRef generates a new TagID from a string ref.

func TagIDFromRefID

func TagIDFromRefID(i *ID) *TagID

TagIDFromRefID generates a new TagID from a ref of a generic ID.

func TagIDsFrom

func TagIDsFrom(ids []string) ([]TagID, error)

TagIDsFrom converts a string slice into a ID slice.

func TagIDsFromID

func TagIDsFromID(ids []ID) []TagID

TagIDsFromID converts a generic ID slice into a ID slice.

func TagIDsFromIDRef

func TagIDsFromIDRef(ids []*ID) []TagID

TagIDsFromIDRef converts a ref of a generic ID slice into a ID slice.

func (TagID) Contains

func (d TagID) Contains(ids []TagID) bool

Contains returns whether the id is contained in the slice.

func (*TagID) CopyRef

func (d *TagID) CopyRef() *TagID

CopyRef returns a copy of a reference.

func (TagID) GoString

func (d TagID) GoString() string

GoString implements fmt.GoStringer interface.

func (TagID) ID

func (d TagID) ID() ID

ID returns a domain ID.

func (*TagID) IDRef

func (d *TagID) IDRef() *ID

IDRef returns a reference of a domain id.

func (TagID) IsNil

func (d TagID) IsNil() bool

IsNil returns true if a ID is zero-value

func (*TagID) IsNilRef added in v0.4.0

func (d *TagID) IsNilRef() bool

IsNilRef returns true if a ID is nil or zero-value

func (*TagID) MarhsalJSON

func (d *TagID) MarhsalJSON() ([]byte, error)

MarhsalJSON implements json.Marhsaler interface

func (*TagID) MarshalText

func (d *TagID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (TagID) Ref

func (d TagID) Ref() *TagID

Ref returns a reference.

func (TagID) RefString

func (d TagID) RefString() *string

StringRef returns a reference of the string representation.

func (TagID) String

func (d TagID) String() string

String returns a string representation.

func (*TagID) StringRef

func (d *TagID) StringRef() *string

StringRef returns a reference of a string representation.

func (*TagID) UnmarhsalJSON

func (d *TagID) UnmarhsalJSON(bs []byte) (err error)

UnmarhsalJSON implements json.Unmarshaler interface

func (*TagID) UnmarshalText

func (d *TagID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

type TagIDSet

type TagIDSet struct {
	// contains filtered or unexported fields
}

TagIDSet represents a set of TagIDs

func NewTagIDSet

func NewTagIDSet() *TagIDSet

NewTagIDSet creates a new TagIDSet

func (*TagIDSet) Add

func (s *TagIDSet) Add(p ...TagID)

Add adds a new ID if it does not exists in the set

func (*TagIDSet) AddRef

func (s *TagIDSet) AddRef(p *TagID)

AddRef adds a new ID ref if it does not exists in the set

func (*TagIDSet) All

func (s *TagIDSet) All() []TagID

All returns stored all IDs as a slice

func (*TagIDSet) Clear

func (s *TagIDSet) Clear()

Clear clears all stored IDs

func (*TagIDSet) Clone

func (s *TagIDSet) Clone() *TagIDSet

Clone returns a cloned set

func (*TagIDSet) Has

func (s *TagIDSet) Has(p TagID) bool

Has checks if the ID exists in the set

func (*TagIDSet) Merge

func (s *TagIDSet) Merge(s2 *TagIDSet) *TagIDSet

Merge returns a merged set

type TeamID

type TeamID ID

TeamID is an ID for Team.

func MustTeamID

func MustTeamID(i string) TeamID

MustTeamID generates a new TeamID from a string, but panics if the string cannot be parsed.

func NewTeamID

func NewTeamID() TeamID

NewTeamID generates a new TeamId.

func TeamIDFrom

func TeamIDFrom(i string) (nid TeamID, err error)

TeamIDFrom generates a new TeamID from a string.

func TeamIDFromRef

func TeamIDFromRef(i *string) *TeamID

TeamIDFromRef generates a new TeamID from a string ref.

func TeamIDFromRefID

func TeamIDFromRefID(i *ID) *TeamID

TeamIDFromRefID generates a new TeamID from a ref of a generic ID.

func TeamIDsFrom

func TeamIDsFrom(ids []string) ([]TeamID, error)

TeamIDsFrom converts a string slice into a ID slice.

func TeamIDsFromID

func TeamIDsFromID(ids []ID) []TeamID

TeamIDsFromID converts a generic ID slice into a ID slice.

func TeamIDsFromIDRef

func TeamIDsFromIDRef(ids []*ID) []TeamID

TeamIDsFromIDRef converts a ref of a generic ID slice into a ID slice.

func (TeamID) Contains

func (d TeamID) Contains(ids []TeamID) bool

Contains returns whether the id is contained in the slice.

func (*TeamID) CopyRef

func (d *TeamID) CopyRef() *TeamID

CopyRef returns a copy of a reference.

func (TeamID) GoString

func (d TeamID) GoString() string

GoString implements fmt.GoStringer interface.

func (TeamID) ID

func (d TeamID) ID() ID

ID returns a domain ID.

func (*TeamID) IDRef

func (d *TeamID) IDRef() *ID

IDRef returns a reference of a domain id.

func (TeamID) IsNil

func (d TeamID) IsNil() bool

IsNil returns true if a ID is zero-value

func (*TeamID) IsNilRef added in v0.4.0

func (d *TeamID) IsNilRef() bool

IsNilRef returns true if a ID is nil or zero-value

func (*TeamID) MarhsalJSON

func (d *TeamID) MarhsalJSON() ([]byte, error)

MarhsalJSON implements json.Marhsaler interface

func (*TeamID) MarshalText

func (d *TeamID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (TeamID) Ref

func (d TeamID) Ref() *TeamID

Ref returns a reference.

func (TeamID) RefString

func (d TeamID) RefString() *string

StringRef returns a reference of the string representation.

func (TeamID) String

func (d TeamID) String() string

String returns a string representation.

func (*TeamID) StringRef

func (d *TeamID) StringRef() *string

StringRef returns a reference of a string representation.

func (*TeamID) UnmarhsalJSON

func (d *TeamID) UnmarhsalJSON(bs []byte) (err error)

UnmarhsalJSON implements json.Unmarshaler interface

func (*TeamID) UnmarshalText

func (d *TeamID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

type TeamIDSet

type TeamIDSet struct {
	// contains filtered or unexported fields
}

TeamIDSet represents a set of TeamIDs

func NewTeamIDSet

func NewTeamIDSet() *TeamIDSet

NewTeamIDSet creates a new TeamIDSet

func (*TeamIDSet) Add

func (s *TeamIDSet) Add(p ...TeamID)

Add adds a new ID if it does not exists in the set

func (*TeamIDSet) AddRef

func (s *TeamIDSet) AddRef(p *TeamID)

AddRef adds a new ID ref if it does not exists in the set

func (*TeamIDSet) All

func (s *TeamIDSet) All() []TeamID

All returns stored all IDs as a slice

func (*TeamIDSet) Clear

func (s *TeamIDSet) Clear()

Clear clears all stored IDs

func (*TeamIDSet) Clone

func (s *TeamIDSet) Clone() *TeamIDSet

Clone returns a cloned set

func (*TeamIDSet) Has

func (s *TeamIDSet) Has(p TeamID) bool

Has checks if the ID exists in the set

func (*TeamIDSet) Merge

func (s *TeamIDSet) Merge(s2 *TeamIDSet) *TeamIDSet

Merge returns a merged set

type UserID

type UserID ID

UserID is an ID for User.

func MustUserID

func MustUserID(i string) UserID

MustUserID generates a new UserID from a string, but panics if the string cannot be parsed.

func NewUserID

func NewUserID() UserID

NewUserID generates a new UserId.

func UserIDFrom

func UserIDFrom(i string) (nid UserID, err error)

UserIDFrom generates a new UserID from a string.

func UserIDFromRef

func UserIDFromRef(i *string) *UserID

UserIDFromRef generates a new UserID from a string ref.

func UserIDFromRefID

func UserIDFromRefID(i *ID) *UserID

UserIDFromRefID generates a new UserID from a ref of a generic ID.

func UserIDsFrom

func UserIDsFrom(ids []string) ([]UserID, error)

UserIDsFrom converts a string slice into a ID slice.

func UserIDsFromID

func UserIDsFromID(ids []ID) []UserID

UserIDsFromID converts a generic ID slice into a ID slice.

func UserIDsFromIDRef

func UserIDsFromIDRef(ids []*ID) []UserID

UserIDsFromIDRef converts a ref of a generic ID slice into a ID slice.

func (UserID) Contains

func (d UserID) Contains(ids []UserID) bool

Contains returns whether the id is contained in the slice.

func (*UserID) CopyRef

func (d *UserID) CopyRef() *UserID

CopyRef returns a copy of a reference.

func (UserID) GoString

func (d UserID) GoString() string

GoString implements fmt.GoStringer interface.

func (UserID) ID

func (d UserID) ID() ID

ID returns a domain ID.

func (*UserID) IDRef

func (d *UserID) IDRef() *ID

IDRef returns a reference of a domain id.

func (UserID) IsNil

func (d UserID) IsNil() bool

IsNil returns true if a ID is zero-value

func (*UserID) IsNilRef added in v0.4.0

func (d *UserID) IsNilRef() bool

IsNilRef returns true if a ID is nil or zero-value

func (*UserID) MarhsalJSON

func (d *UserID) MarhsalJSON() ([]byte, error)

MarhsalJSON implements json.Marhsaler interface

func (*UserID) MarshalText

func (d *UserID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (UserID) Ref

func (d UserID) Ref() *UserID

Ref returns a reference.

func (UserID) RefString

func (d UserID) RefString() *string

StringRef returns a reference of the string representation.

func (UserID) String

func (d UserID) String() string

String returns a string representation.

func (*UserID) StringRef

func (d *UserID) StringRef() *string

StringRef returns a reference of a string representation.

func (*UserID) UnmarhsalJSON

func (d *UserID) UnmarhsalJSON(bs []byte) (err error)

UnmarhsalJSON implements json.Unmarshaler interface

func (*UserID) UnmarshalText

func (d *UserID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

type UserIDSet

type UserIDSet struct {
	// contains filtered or unexported fields
}

UserIDSet represents a set of UserIDs

func NewUserIDSet

func NewUserIDSet() *UserIDSet

NewUserIDSet creates a new UserIDSet

func (*UserIDSet) Add

func (s *UserIDSet) Add(p ...UserID)

Add adds a new ID if it does not exists in the set

func (*UserIDSet) AddRef

func (s *UserIDSet) AddRef(p *UserID)

AddRef adds a new ID ref if it does not exists in the set

func (*UserIDSet) All

func (s *UserIDSet) All() []UserID

All returns stored all IDs as a slice

func (*UserIDSet) Clear

func (s *UserIDSet) Clear()

Clear clears all stored IDs

func (*UserIDSet) Clone

func (s *UserIDSet) Clone() *UserIDSet

Clone returns a cloned set

func (*UserIDSet) Has

func (s *UserIDSet) Has(p UserID) bool

Has checks if the ID exists in the set

func (*UserIDSet) Merge

func (s *UserIDSet) Merge(s2 *UserIDSet) *UserIDSet

Merge returns a merged set

type WidgetID

type WidgetID ID

WidgetID is an ID for Widget.

func MustWidgetID

func MustWidgetID(i string) WidgetID

MustWidgetID generates a new WidgetID from a string, but panics if the string cannot be parsed.

func NewWidgetID

func NewWidgetID() WidgetID

NewWidgetID generates a new WidgetId.

func WidgetIDFrom

func WidgetIDFrom(i string) (nid WidgetID, err error)

WidgetIDFrom generates a new WidgetID from a string.

func WidgetIDFromRef

func WidgetIDFromRef(i *string) *WidgetID

WidgetIDFromRef generates a new WidgetID from a string ref.

func WidgetIDFromRefID

func WidgetIDFromRefID(i *ID) *WidgetID

WidgetIDFromRefID generates a new WidgetID from a ref of a generic ID.

func WidgetIDsFrom

func WidgetIDsFrom(ids []string) ([]WidgetID, error)

WidgetIDsFrom converts a string slice into a ID slice.

func WidgetIDsFromID

func WidgetIDsFromID(ids []ID) []WidgetID

WidgetIDsFromID converts a generic ID slice into a ID slice.

func WidgetIDsFromIDRef

func WidgetIDsFromIDRef(ids []*ID) []WidgetID

WidgetIDsFromIDRef converts a ref of a generic ID slice into a ID slice.

func (WidgetID) Contains

func (d WidgetID) Contains(ids []WidgetID) bool

Contains returns whether the id is contained in the slice.

func (*WidgetID) CopyRef

func (d *WidgetID) CopyRef() *WidgetID

CopyRef returns a copy of a reference.

func (WidgetID) GoString

func (d WidgetID) GoString() string

GoString implements fmt.GoStringer interface.

func (WidgetID) ID

func (d WidgetID) ID() ID

ID returns a domain ID.

func (*WidgetID) IDRef

func (d *WidgetID) IDRef() *ID

IDRef returns a reference of a domain id.

func (WidgetID) IsNil

func (d WidgetID) IsNil() bool

IsNil returns true if a ID is zero-value

func (*WidgetID) IsNilRef added in v0.4.0

func (d *WidgetID) IsNilRef() bool

IsNilRef returns true if a ID is nil or zero-value

func (*WidgetID) MarhsalJSON

func (d *WidgetID) MarhsalJSON() ([]byte, error)

MarhsalJSON implements json.Marhsaler interface

func (*WidgetID) MarshalText

func (d *WidgetID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface

func (WidgetID) Ref

func (d WidgetID) Ref() *WidgetID

Ref returns a reference.

func (WidgetID) RefString

func (d WidgetID) RefString() *string

StringRef returns a reference of the string representation.

func (WidgetID) String

func (d WidgetID) String() string

String returns a string representation.

func (*WidgetID) StringRef

func (d *WidgetID) StringRef() *string

StringRef returns a reference of a string representation.

func (*WidgetID) UnmarhsalJSON

func (d *WidgetID) UnmarhsalJSON(bs []byte) (err error)

UnmarhsalJSON implements json.Unmarshaler interface

func (*WidgetID) UnmarshalText

func (d *WidgetID) UnmarshalText(text []byte) (err error)

UnmarshalText implements encoding.TextUnmarshaler interface

type WidgetIDSet

type WidgetIDSet struct {
	// contains filtered or unexported fields
}

WidgetIDSet represents a set of WidgetIDs

func NewWidgetIDSet

func NewWidgetIDSet() *WidgetIDSet

NewWidgetIDSet creates a new WidgetIDSet

func (*WidgetIDSet) Add

func (s *WidgetIDSet) Add(p ...WidgetID)

Add adds a new ID if it does not exists in the set

func (*WidgetIDSet) AddRef

func (s *WidgetIDSet) AddRef(p *WidgetID)

AddRef adds a new ID ref if it does not exists in the set

func (*WidgetIDSet) All

func (s *WidgetIDSet) All() []WidgetID

All returns stored all IDs as a slice

func (*WidgetIDSet) Clear

func (s *WidgetIDSet) Clear()

Clear clears all stored IDs

func (*WidgetIDSet) Clone

func (s *WidgetIDSet) Clone() *WidgetIDSet

Clone returns a cloned set

func (*WidgetIDSet) Has

func (s *WidgetIDSet) Has(p WidgetID) bool

Has checks if the ID exists in the set

func (*WidgetIDSet) Merge

func (s *WidgetIDSet) Merge(s2 *WidgetIDSet) *WidgetIDSet

Merge returns a merged set

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL