Documentation
¶
Index ¶
- Constants
- type Format
- func (f Format) IsBanner() bool
- func (f Format) IsDirect() bool
- func (f *Format) IsFixed() bool
- func (f Format) IsNative() bool
- func (f Format) IsProxy() bool
- func (f *Format) IsStretch() bool
- func (f Format) IsVideo() bool
- func (f *Format) RBACResourceName() string
- func (f *Format) TableName() string
Constants ¶
View Source
const ( FormatTypeDirect = `direct` FormatTypeVideo = `video` FormatTypeProxy = `proxy` FormatTypeNative = `native` FormatTypeBanner = `banner` )
Format types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Format ¶
type Format struct {
ID uint64 `json:"id" gorm:"primaryKey"`
Codename string `json:"codename"`
Type string `json:"type"`
Title string `json:"title"`
Description string `json:"description"`
Active types.ActiveStatus `gorm:"type:ActiveStatus" json:"active,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
MinWidth int `json:"min_width,omitempty"`
MinHeight int `json:"min_height,omitempty"`
Config gosql.NullableJSON[types.FormatConfig] `gorm:"type:JSONB" json:"config,omitempty"`
// Time marks
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `json:"deleted_at,omitempty"`
}
Format model description
func (*Format) RBACResourceName ¶
RBACResourceName returns the name of the resource for the RBAC
Click to show internal directories.
Click to hide internal directories.