Documentation ¶
Overview ¶
Package metadata provides persistence for any metadata-like data
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertMetadataTx ¶
Types ¶
type Metadata ¶
type Metadata map[string]MetadataEntry
Metadata is a collection of metadata entries
func MetadataByPrimaryDB ¶
func MetadataByPrimaryTx ¶
func MetadataFromValues ¶
MetadataFromValues creates metadata from a key-value map
type MetadataEntry ¶
type MetadataEntry struct { Name string CreatedBy string Value string // contains filtered or unexported fields }
MetadataEntry represents an entry in metadata
func MetadataByPrimaryAndNameDB ¶
func MetadataByPrimaryAndNameDB(db *sql.DB, m MetadataModeler, primary int64, name string) (MetadataEntry, error)
MetadataByPrimaryAndNameDB selects a specific metadata entry
If no such entry with the name exists, it will return an empty entry
func (MetadataEntry) IsEmpty ¶
func (e MetadataEntry) IsEmpty() bool
IsEmpty returns true if this is an empty (non-existent) entry
type MetadataModeler ¶
MetadataModeler describes the construct for a concrete metadata model
Click to show internal directories.
Click to hide internal directories.