Documentation
¶
Index ¶
- Constants
- func Decode(recorder Recorder, rec *Record) (err error)
- func DumpList(records []*Record)
- func GetDimensions(path, ext string) (width int32, height int32)
- func RecordID(id uuid.UUID) (major, minor int64)
- func RecordUUID(major, minor int64) (id uuid.UUID)
- func SetupRecord(rec *Record, class string, classn int32, vContent any, encoding Encoding)
- func SetupRecorder[T any](gd Recorder, name string, classn int32)
- func SetupResource(res *Resource, path string, classn int32)
- type Encoding
- type JsonSerializer
- type Link
- type Parent
- type Record
- type Recorder
- type RecorderClass
- type Resource
- type Scheme
- type Version
- type YamlSerializer
Constants ¶
View Source
const IN_HOUSE = "018e9522-01c9-77c0-be6c-65526f21ec1a"
Variables ¶
This section is empty.
Functions ¶
func GetDimensions ¶
func RecordUUID ¶
func SetupRecord ¶
func SetupResource ¶
Types ¶
type JsonSerializer ¶
type JsonSerializer struct{}
func (*JsonSerializer) MarshalText ¶
func (jsn *JsonSerializer) MarshalText(r Recorder) ([]byte, error)
type Link ¶
type Record ¶
type Record struct {
Class string
Classn int32
Content string
Encoding Encoding
Major int64
Minor int64
Origin int64
Originn int64
Created time.Time
Updated time.Time
}
func (*Record) UpdateContent ¶
type RecorderClass ¶
func (*RecorderClass[T]) GetItem ¶
func (rr *RecorderClass[T]) GetItem() any
func (*RecorderClass[T]) GetRecord ¶
func (rr *RecorderClass[T]) GetRecord() *Record
type Version ¶
type Version struct {
Item int64
Itemn int64
Major uint16
Minor uint16
Patch uint16
Extension uint16
Created time.Time
Updated time.Time
}
func (*Version) FromUint64 ¶
type YamlSerializer ¶
type YamlSerializer struct{}
func (*YamlSerializer) MarshalText ¶
func (yml *YamlSerializer) MarshalText(obj any) ([]byte, error)
func (*YamlSerializer) UnmarshalText ¶
func (yml *YamlSerializer) UnmarshalText(buffer []byte, obj any) error
Click to show internal directories.
Click to hide internal directories.