Documentation ¶
Index ¶
- func CarByEmail(email string) (car model.Car, err error)
- func CarByID(id string) (car model.Car, err error)
- func CarCount() int
- func Cars(all bool) (cars []model.Car, err error)
- func CielToDto(ciel model.Ciel) model.CielDto
- func CreateToken(userid string) string
- func DtoCiele(person model.Person) (tasks []model.CielDto)
- func DtoVisits(person model.Person) (visits []model.VisitDto)
- func GetCode6(key string) (value model.Code6)
- func GetDiagnozy(filter string, max int) []model.Diagnoza
- func GetDiagnozyAll() []model.TextValueDto
- func GetLieky(filterBy string, max int) (lieky []model.Liek)
- func ImportCache(dir string)
- func InitDB()
- func Login(email string, password string) (user model.User, token string, err error)
- func PasswordCheck(user model.User, password string) bool
- func PersonByID(id string) (person model.Person, err error)
- func Persons() (persons []model.Person, err error)
- func PersonsCount() int
- func PersonsFiltered(filter model.PersonFilter) (persons []model.Person, err error)
- func RelationByID(id string) (relation model.PersonRelation, err error)
- func RelationDelete(id string, authorID string) error
- func Relatives(person model.Person) ([]model.PersonRelation, []model.PersonRelation, error)
- func SaveCar(car *model.Car, authorID string) error
- func SaveCiel(ciel *model.Ciel, authorID string) error
- func SavePerson(person *model.Person, authorID string) error
- func SaveRelation(person, relative model.Person, relationship enum.Relationship, authorID string) error
- func SaveSession(session *model.Session, authorID string) error
- func SaveUser(user *model.User, authorID string) error
- func SaveVisitCall(visit *model.VisitCall, authorID string) (err error)
- func SaveVisitHome(visit *model.VisitHome, authorID string) (err error)
- func Sessions() (sessions []model.Session, err error)
- func SetCode6(key string, value model.Code6)
- func SetNewPassword(user model.User, password string)
- func UserByEmail(email string) (user model.User, err error)
- func UserByID(id string) (user model.User, err error)
- func UserCount() int
- func Users(all bool) (users []model.User, err error)
- func ValidToken(tokenKey string) (user model.User, err error)
- func VisitCallByID(id string) (visit model.VisitCall, err error)
- func VisitCalls() (visits []model.VisitCall, err error)
- func VisitCount() int
- func VisitHomeByID(id string) (visit model.VisitHome, err error)
- func VisitHomes() (visits []model.VisitHome, err error)
- type DiagnozyCache
- type LiekyCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateToken ¶
func GetDiagnozyAll ¶
func GetDiagnozyAll() []model.TextValueDto
func ImportCache ¶
func ImportCache(dir string)
func PersonsCount ¶
func PersonsCount() int
func PersonsFiltered ¶
func PersonsFiltered(filter model.PersonFilter) (persons []model.Person, err error)
func RelationByID ¶
func RelationByID(id string) (relation model.PersonRelation, err error)
func RelationDelete ¶
func Relatives ¶
func Relatives(person model.Person) ([]model.PersonRelation, []model.PersonRelation, error)
func SaveRelation ¶
func SetNewPassword ¶
func VisitCalls ¶
func VisitCount ¶
func VisitCount() int
func VisitHomes ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.