database

package
v0.0.0-...-fd5fe55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInfoBaseString

func GetInfoBaseString(b *BaseInfo) string

func PopulateDatabases

func PopulateDatabases(databases []Database) error

Types

type BaseInfo

type BaseInfo struct {
	NbPersons uint32
	Sosa      uint32
	RootSosa  uint32
	Timestamp int64
}

func ReadInfoBase

func ReadInfoBase(path string) (*BaseInfo, error)

type Database

type Database interface {
	CheckPath() error
	ReadIdx() error
	ReadData() error
	ReadIdxNote() error
	ReadDataNote() error
	GetIdx() []uint32
	GetData() [][]byte
	GetIdxNote() []uint32
	GetNotes() [][]utils.NoteWithTag
	Unmarshal() error
}

type Family

type Family struct {
	// contains filtered or unexported fields
}

func NewFamily

func NewFamily(path string) *Family

func (*Family) CheckPath

func (d *Family) CheckPath() (err error)

func (*Family) GetData

func (d *Family) GetData() [][]byte

func (*Family) GetFamilies

func (f *Family) GetFamilies() []*api.Family

func (*Family) GetIdx

func (d *Family) GetIdx() []uint32

func (*Family) GetIdxNote

func (d *Family) GetIdxNote() []uint32

func (*Family) GetNotes

func (d *Family) GetNotes() [][]utils.NoteWithTag

func (*Family) ReadData

func (d *Family) ReadData() (err error)

func (*Family) ReadDataNote

func (d *Family) ReadDataNote() (err error)

func (*Family) ReadIdx

func (d *Family) ReadIdx() (err error)

func (*Family) ReadIdxNote

func (d *Family) ReadIdxNote() (err error)

func (*Family) Unmarshal

func (f *Family) Unmarshal() error

type Person

type Person struct {
	// contains filtered or unexported fields
}

func NewPerson

func NewPerson(path string) *Person

func (*Person) CheckPath

func (d *Person) CheckPath() (err error)

func (*Person) GetData

func (d *Person) GetData() [][]byte

func (*Person) GetIdx

func (d *Person) GetIdx() []uint32

func (*Person) GetIdxNote

func (d *Person) GetIdxNote() []uint32

func (*Person) GetNotes

func (d *Person) GetNotes() [][]utils.NoteWithTag

func (*Person) GetPersons

func (p *Person) GetPersons() []*api.Person

func (*Person) ReadData

func (d *Person) ReadData() (err error)

func (*Person) ReadDataNote

func (d *Person) ReadDataNote() (err error)

func (*Person) ReadIdx

func (d *Person) ReadIdx() (err error)

func (*Person) ReadIdxNote

func (d *Person) ReadIdxNote() (err error)

func (*Person) Unmarshal

func (p *Person) Unmarshal() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL