Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(db *gorm.DB) repository_intf.PortRepository
Types ¶
type PortModel ¶
type PortModel struct { Id int `gorm:"column:id"` Project string `gorm:"column:project"` Env string `gorm:"column:env"` Name string `gorm:"column:name"` Ports []byte `gorm:"column:ports"` CreatedBy int `gorm:"column:created_by"` CreatedAt *time.Time `gorm:"column:created_at"` UpdatedAt *time.Time `gorm:"column:updated_at"` }
func (*PortModel) ToPortEntity ¶
type PortTemplateModel ¶
type PortTemplateModel struct { Id int `gorm:"column:id"` TemplateName string `gorm:"column:template_name"` Ports []byte `gorm:"column:ports"` CreatedAt *time.Time `gorm:"column:created_at"` UpdatedAt *time.Time `gorm:"column:updated_at"` }
func (PortTemplateModel) FromPortTemplateEntity ¶
func (PortTemplateModel) FromPortTemplateEntity(p entity.PortTemplate) *PortTemplateModel
func (*PortTemplateModel) ToPortTemplateEntity ¶
func (pm *PortTemplateModel) ToPortTemplateEntity() *entity.PortTemplate
Click to show internal directories.
Click to hide internal directories.