package
Version:
v0.0.0-...-4436486
Opens a new window with list of versions in this module.
Published: Jan 17, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type License struct {
gorm.Model
Name *string `gorm:"not null;unique" json:"name,omitempty"`
ContentURL *string `json:"url,omitempty"`
ImageURL *string `json:"image_url,omitempty"`
}
License is a license name and ID
swagger:model
ByID finds and returns a License record from DB.
It returns error if not found.
Licenses is an slice of License
swagger:model
func List(p *ign.PaginationRequest, tx *gorm.DB) (*Licenses, *ign.PaginationResult, *ign.ErrMsg)
List returns a paginated list of licenses.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.