Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer struct {
Key string `json:"key"`
Inputs []AnalyzerInput `json:"inputs"`
}
type AnalyzerDto ¶
type AnalyzerDto struct {
Key string `json:"key"`
Name string `json:"name"`
Description string `json:"description"`
ChangeStatus ChangeStatus `json:"changeStatus"`
Inputs []AnalyzerInputDto `json:"inputs"`
}
type AnalyzerInput ¶
type AnalyzerInputDto ¶
type ChangeStatus ¶
type ChangeStatus string
const ( New ChangeStatus = "new" Removed ChangeStatus = "removed" Changed ChangeStatus = "changed" Same ChangeStatus = "same" )
type ReporterDto ¶
type ReporterDto struct {
Threshold float32 `json:"threshold"`
Key string `json:"key"`
Name string `json:"name"`
Description string `json:"description"`
ChangeStatus ChangeStatus `json:"changeStatus"`
}
type Theme ¶
type Theme struct {
Id uuid.UUID `gorm:"column:id;primaryKey;type:uuid;default:gen_random_uuid()"`
UserId uuid.UUID `gorm:"column:user_id"`
Title string `gorm:"column:title"`
Description string `gorm:"column:description"`
Analyzers Analyzers `gorm:"column:analyzers;type:jsonb"`
Reporter Reporter `gorm:"column:reporter;type:jsonb"`
}
type ThemeController ¶
type ThemeController struct {
// contains filtered or unexported fields
}
func NewThemeController ¶
func NewThemeController(group *gin.RouterGroup, s *ThemeService) *ThemeController
type ThemeDto ¶
type ThemeDto struct {
Id uuid.UUID `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
Analyzers []AnalyzerDto `json:"analyzers"`
Reporters []ReporterDto `json:"reporters"`
}
type ThemeRepository ¶
type ThemeRepository struct {
// contains filtered or unexported fields
}
func NewThemeRepository ¶
func NewThemeRepository(db *gorm.DB) *ThemeRepository
type ThemeService ¶
type ThemeService struct {
// contains filtered or unexported fields
}
func NewThemeService ¶
func NewThemeService(ts themeStore) *ThemeService
func (*ThemeService) GetAllThemesByUserId ¶
func (ts *ThemeService) GetAllThemesByUserId(id uuid.UUID) ([]ThemeDto, error)
Click to show internal directories.
Click to hide internal directories.