Documentation
¶
Index ¶
- Variables
- type Blob
- type Coder
- func (store Coder) ParseTypedBlob(tipe domain_interfaces.ObjectId, blobId mad_domain_interfaces.MarklId) (common Blob, repool interfaces.FuncRepool, n int64, err error)
- func (store Coder) SaveBlobText(tipe domain_interfaces.ObjectId, blob Blob) (digest mad_domain_interfaces.MarklId, n int64, err error)
- type FieldDefinition
- type ReferencesConfig
- type TomlV0
- type TomlV1
- type TomlV2
- type TypedBlob
- type UTIGroup
- type WithFields
- type WithFormatterUTIGroups
- type WithFormatters
- type WithReferences
- type WithStringLuaHooks
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Default = golf_tb.Default DefaultWithPandocFormatter = golf_tb.DefaultWithPandocFormatter DefaultPandocDefaults = golf_tb.DefaultPandocDefaults DefaultPandocLuaFilter = golf_tb.DefaultPandocLuaFilter DefaultTaskType = golf_tb.DefaultTaskType DefaultChoreType = golf_tb.DefaultChoreType )
View Source
var ( DecodeTomlV0 = golf_tb.DecodeTomlV0 DecodeTomlV1 = golf_tb.DecodeTomlV1 DecodeTomlV2 = golf_tb.DecodeTomlV2 DecodeReferencesConfig = golf_tb.DecodeReferencesConfig )
View Source
var CoderToTypedBlob = hyphence.CoderToTypedBlob[Blob]{ Metadata: hyphence.TypedMetadataCoder[Blob]{}, Blob: hyphence.CoderTypeMapWithoutType[Blob]( map[string]interfaces.CoderBufferedReadWriter[*Blob]{ ids.TypeTomlTypeV0: hyphence.CoderTommy[ Blob, *Blob, ]{ Decode: func(b []byte) (Blob, error) { doc, err := golf_tb.DecodeTomlV0(b) if err != nil { return &TomlV0{}, nil } return doc.Data(), nil }, Encode: func(blob Blob) ([]byte, error) { doc, err := golf_tb.DecodeTomlV0(nil) if err != nil { return nil, err } if v, ok := blob.(*TomlV0); ok { *doc.Data() = *v } return doc.Encode() }, }, ids.TypeTomlTypeV1: hyphence.CoderTommy[ Blob, *Blob, ]{ Decode: func(b []byte) (Blob, error) { doc, err := golf_tb.DecodeTomlV1(b) if err != nil { return &TomlV1{}, nil } return doc.Data(), nil }, Encode: func(blob Blob) ([]byte, error) { doc, err := golf_tb.DecodeTomlV1(nil) if err != nil { return nil, err } if v, ok := blob.(*TomlV1); ok { *doc.Data() = *v } return doc.Encode() }, }, ids.TypeTomlTypeV2: hyphence.CoderTommy[ Blob, *Blob, ]{ Decode: func(b []byte) (Blob, error) { doc, err := golf_tb.DecodeTomlV2(b) if err != nil { return &TomlV2{}, nil } return doc.Data(), nil }, Encode: func(blob Blob) ([]byte, error) { doc, err := golf_tb.DecodeTomlV2(nil) if err != nil { return nil, err } if v, ok := blob.(*TomlV2); ok { *doc.Data() = *v } return doc.Encode() }, }, }, ), }
Functions ¶
This section is empty.
Types ¶
type Coder ¶ added in v0.1.5
type Coder struct {
// contains filtered or unexported fields
}
func (Coder) ParseTypedBlob ¶ added in v0.1.5
func (store Coder) ParseTypedBlob( tipe domain_interfaces.ObjectId, blobId mad_domain_interfaces.MarklId, ) (common Blob, repool interfaces.FuncRepool, n int64, err error)
func (Coder) SaveBlobText ¶ added in v0.1.5
func (store Coder) SaveBlobText( tipe domain_interfaces.ObjectId, blob Blob, ) (digest mad_domain_interfaces.MarklId, n int64, err error)
type FieldDefinition ¶
type FieldDefinition = golf_tb.FieldDefinition
type ReferencesConfig ¶
type ReferencesConfig = golf_tb.ReferencesConfig
type WithFields ¶
type WithFields = golf_tb.WithFields
type WithFormatterUTIGroups ¶
type WithFormatterUTIGroups = golf_tb.WithFormatterUTIGroups
type WithFormatters ¶
type WithFormatters = golf_tb.WithFormatters
type WithReferences ¶
type WithReferences = golf_tb.WithReferences
type WithStringLuaHooks ¶
type WithStringLuaHooks = golf_tb.WithStringLuaHooks
Source Files
¶
- coder.go
- coding.go
- main.go
Click to show internal directories.
Click to hide internal directories.