repositories

package
v0.0.0-...-08ff5bc Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPost

func GetPost(slug string) models.ExpandedPost

func GetUser

func GetUser(ctx context.Context, user *models.User) error

Gets the user with the given username

func GetUsersAboveLevel

func GetUsersAboveLevel(ctx context.Context, level int8) ([]models.User, error)

Gets all users above and including the given level Will need to be refactored if it might ever return more than a 100 results

func IndexPosts

func IndexPosts() []models.SummarizedPost

func StorePost

func StorePost(context.Context) string

func StoreUser

func StoreUser(ctx context.Context, user *models.User) error

Persists the user to the datastore

Types

This section is empty.

Jump to

Keyboard shortcuts

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