Documentation ¶
Overview ¶
*
- Copyright (C) 2019 KhronoSync Digital Solutions LLC *
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- any later version. *
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details. *
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>
*
- Copyright (C) 2019 KhronoSync Digital Solutions LLC *
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- any later version. *
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details. *
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DistroModel ¶
type DistroModel struct { Id uuid.UUID `sql:"id,type:uuid,pk"` Name string `sql:"name,type:varchar(100),unique"` Description string `sql:"description"` DescSource string `sql:"description_source"` Homepage string `sql:"homepage,type:varchar(200)"` Tags string `sql:"tags,type:varchar(400)"` LogoImageH string `sql:"logo_image_h,type:varchar(200)"` LogoImageV string `sql:"logo_image_v,type:varchar(200)"` LogoBgColor string `sql:"logo_bg_color,type:varchar(7)"` // contains filtered or unexported fields }
func GetByName ¶
func GetByName(name string) (*DistroModel, error)
func Save ¶
func Save(model DistroModel) (*DistroModel, error)
type DistroModelView ¶
type DistroModelView struct { Id uuid.UUID Name string Description string DescSource string Homepage string Tags string LogoImageH string LogoImageV string LogoBgColor string RatingInfoDesktop ratings.RatingsInfoModel RatingInfoServer ratings.RatingsInfoModel RatingInfoIoT ratings.RatingsInfoModel RatingInfoOverall ratings.RatingsInfoModel }
func GetAll ¶
func GetAll(sortOrder string) ([]DistroModelView, error)
type DistroRepository ¶
type DistroRepository struct {
// contains filtered or unexported fields
}
func (*DistroRepository) Create ¶
func (dr *DistroRepository) Create(dm *DistroModel) (*DistroModel, error)
func (*DistroRepository) Read ¶
func (dr *DistroRepository) Read() ([]DistroModel, error)
func (*DistroRepository) ReadById ¶
func (dr *DistroRepository) ReadById(id uuid.UUID) (*DistroModel, error)
func (*DistroRepository) ReadByName ¶
func (dr *DistroRepository) ReadByName(name string) (*DistroModel, error)
Click to show internal directories.
Click to hide internal directories.