Documentation
¶
Index ¶
- func CitationDate(gc *grampsxml.Citation, dp gdate.Parser) (*model.Date, error)
- func EventDate(grev *grampsxml.Event, dp gdate.Parser) (*model.Date, error)
- func ParseDaterange(dr grampsxml.Daterange, dp gdate.Parser) (*model.Date, error)
- func ParseDatespan(ds grampsxml.Datespan, dp gdate.Parser) (*model.Date, error)
- func ParseDateval(dv grampsxml.Dateval, dp gdate.Parser) (*model.Date, error)
- type Loader
- type ModelFinder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDaterange ¶
func ParseDatespan ¶
Types ¶
type Loader ¶
type Loader struct {
DB *grampsxml.Database
ScopeName string
TagsByHandle map[string]*grampsxml.Tag
EventsByHandle map[string]*grampsxml.Event
PeopleByHandle map[string]*grampsxml.Person
FamiliesByHandle map[string]*grampsxml.Family
CitationsByHandle map[string]*grampsxml.Citation
SourcesByHandle map[string]*grampsxml.Source
PlacesByHandle map[string]*grampsxml.Placeobj
ObjectsByHandle map[string]*grampsxml.Object
RepositoriesByHandle map[string]*grampsxml.Repository
NotesByHandle map[string]*grampsxml.Note
// contains filtered or unexported fields
}
type ModelFinder ¶
type ModelFinder interface {
FindPerson(scope string, id string) *model.Person
FindCitation(scope string, id string) (*model.GeneralCitation, bool)
FindSource(scope string, id string) *model.Source
FindRepository(scope string, id string) *model.Repository
FindPlace(name string, id string) *model.Place
FindFamily(scope string, id string) *model.Family
FindFamilyByParents(father *model.Person, mother *model.Person) *model.Family
FindMediaObject(path string) *model.MediaObject
}
Click to show internal directories.
Click to hide internal directories.