Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeHosting ¶
type Log ¶
type Log struct { ID string `json:"id" gorm:"primaryKey"` Message string `json:"message" gorm:"not null"` CreatedAt time.Time `json:"createdAt" gorm:"index"` UpdatedAt time.Time `json:"updatedAt"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index"` // Entity this Log entry is about (fe. Publisher, Software, etc.) EntityID string `json:"-"` EntityType string `json:"-"` }
type Publisher ¶
type Publisher struct { ID string `gorm:"primarykey"` Email string `json:"email"` Description string `json:"description"` CodeHosting []CodeHosting `gorm:"constraint:OnUpdate:CASCADE,OnDelete:SET NULL;unique" json:"codeHosting"` CreatedAt time.Time `json:"createdAt" gorm:"index"` UpdatedAt time.Time `json:"updatedAt"` DeletedAt gorm.DeletedAt `gorm:"index"` }
type Software ¶
type Software struct { ID string `json:"id" gorm:"primarykey"` URLs []SoftwareURL `json:"urls"` PubliccodeYml string `json:"publiccodeYml"` Logs []Log `json:"-" gorm:"polymorphic:Entity;"` CreatedAt time.Time `json:"createdAt" gorm:"index"` UpdatedAt time.Time `json:"updatedAt"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index"` }
type SoftwareURL ¶
type SoftwareURL struct { gorm.Model ID string `gorm:"primarykey"` URL string `gorm:"uniqueIndex"` SoftwareID string }
func (SoftwareURL) MarshalJSON ¶
func (su SoftwareURL) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.