repository

package
v0.0.0-...-7f9097d Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListPosts

func ListPosts(rows *sql.Rows) []*post.Media

ListPosts list post

Types

type PostRepository

type PostRepository interface {
	GetByAccountID(accountID uuid.UUID) (*model.Post, error)
	Create(post *model.Post) (*model.Post, error)
	List() ([]*post.Media, error)
}

PostRepository post repository interface

func NewPostRepository

func NewPostRepository(db *gorm.DB) PostRepository

NewPostRepository mount post repository

Jump to

Keyboard shortcuts

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