Documentation ¶
Overview ¶
Package apiutil provides various functions meant to be used by handlers from the api package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGhOrgsFromPGArray ¶
func CreateGhOrgsFromPGArray(pgArray string) []*model.GhOrganization
CreateGhOrgsFromPGArray generates a slice of GhOrganization from a PostgresSQL array from gh_organizations table. Elements MUST be in table order. FIXME Find a safer way to deal with this
func FetchRepository ¶
func FetchRepository(db *sql.DB, id *int64) *model.Repository
FetchRepository retrieves a repository from the database.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.