apiutil

package
v0.0.0-...-d26fc85 Latest Latest
Warning

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

Go to latest
Published: May 2, 2015 License: BSD-3-Clause Imports: 6 Imported by: 1

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.

func FetchUser

func FetchUser(db *sql.DB, id *int64) *model.User

FetchUser retrieves a user from the database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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