Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DB *pop.Connection
DB is a connection to your database to be used throughout your application.
Functions ¶
func ProcessProjects ¶
Types ¶
type License ¶
type License struct { ID uuid.UUID `json:"id" db:"id"` CreatedAt time.Time `json:"created_at" db:"created_at"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` ToolID uuid.UUID `json:"tool_id" db:"tool_id"` Name string `json:"name" db:"name"` Body nulls.String `json:"body" db:"body"` Description nulls.String `json:"description" db:"description"` }
func (*License) Validate ¶
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.
func (*License) ValidateCreate ¶
ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.
func (*License) ValidateUpdate ¶
ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.
type Tool ¶
type Tool struct { ID uuid.UUID `json:"id" db:"id"` CreatedAt time.Time `json:"created_at" db:"created_at"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` Name string `json:"name" db:"name"` NameWithOwner string `json:"name_with_owner" db:"name_with_owner"` URL string `json:"url" db:"url"` DiscoveryService string `json:"discovery" db:"discovery"` Stars int `json:"stars" db:"stars"` Watchers int `json:"watchers" db:"watchers"` Forks int `json:"forks" db:"forks"` Description nulls.String `json:"description" db:"description"` Readme nulls.String `json:"readme" db:"readme"` Topics slices.String `json:"topics" db:"topics"` License License `json:"license" has_one:"license"` }
func (*Tool) Validate ¶
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.
func (*Tool) ValidateCreate ¶
ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.
func (*Tool) ValidateUpdate ¶
ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.