Documentation ¶
Index ¶
- Variables
- func GetShasForMetadatei(m *Metadatei) (shas map[string]*sha.Sha, err error)
- func WriteMetadateiKeyTo(w io.Writer, c FormatterContext, key *catgut.String) (n int64, err error)
- type Format
- type FormatGeneric
- type Formatter
- type FormatterContext
- type Getter
- type Metadatei
- type Options
- type Parser
- type ParserContext
- type Sha
- func GetShaForContext(f FormatGeneric, c FormatterContext) (sh *Sha, err error)
- func GetShaForContextDebug(f FormatGeneric, c FormatterContext) (sh *Sha, err error)
- func GetShaForMetadatei(f FormatGeneric, m *Metadatei) (sh *Sha, err error)
- func WriteMetadatei(w io.Writer, f FormatGeneric, c FormatterContext) (sh *Sha, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Formats formats
View Source
var FormatsGeneric = map[string][]*catgut.String{
"MetadateiSansTai": {keyAkte, keyBezeichnung, keyEtikett, keyTyp},
"Metadatei": {keyAkte, keyBezeichnung, keyEtikett, keyTyp, keyTai},
"MetadateiKennungMutter": {keyAkte, keyBezeichnung, keyEtikett, keyKennung, keyTyp, keyTai, keyShasMutterMetadateiKennungMutter},
}
Functions ¶
func GetShasForMetadatei ¶
Types ¶
type Format ¶
func FormatForVersion ¶
func FormatForVersion(sv schnittstellen.StoreVersion) Format
func FormatForVersions ¶
func FormatForVersions(write, read schnittstellen.StoreVersion) Format
type FormatGeneric ¶
type FormatGeneric struct {
// contains filtered or unexported fields
}
func FormatForKey ¶
func FormatForKey(k string) FormatGeneric
func FormatForKeyError ¶
func FormatForKeyError(k string) (fo FormatGeneric, err error)
func (FormatGeneric) WriteMetadateiTo ¶
func (f FormatGeneric) WriteMetadateiTo( w io.Writer, c FormatterContext, ) (n int64, err error)
type Formatter ¶
type FormatterContext ¶
type FormatterContext interface { metadatei.PersistentFormatterContext GetKennung() kennung.Kennung }
type Options ¶
type Parser ¶
type Parser interface { ParsePersistentMetadatei( *catgut.RingBuffer, ParserContext, Options, ) (int64, error) }
type ParserContext ¶
type ParserContext interface { metadatei.PersistentParserContext SetKennungLike(kennung.Kennung) error }
type Sha ¶
func GetShaForContext ¶
func GetShaForContext(f FormatGeneric, c FormatterContext) (sh *Sha, err error)
func GetShaForContextDebug ¶
func GetShaForContextDebug( f FormatGeneric, c FormatterContext, ) (sh *Sha, err error)
func GetShaForMetadatei ¶
func GetShaForMetadatei(f FormatGeneric, m *Metadatei) (sh *Sha, err error)
func WriteMetadatei ¶
func WriteMetadatei(w io.Writer, f FormatGeneric, c FormatterContext) (sh *Sha, err error)
Click to show internal directories.
Click to hide internal directories.