license

package
v0.0.0-...-4436486 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type License

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

func ByID

func ByID(tx *gorm.DB, id int) (*License, error)

ByID finds and returns a License record from DB. It returns error if not found.

type Licenses

type Licenses []License

Licenses is an slice of License swagger:model

func List

func List(p *ign.PaginationRequest, tx *gorm.DB) (*Licenses, *ign.PaginationResult, *ign.ErrMsg)

List returns a paginated list of licenses.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL