repository

package
v0.0.0-...-03f7ad7 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostRepo

type PostRepo interface {
	ViewAllPosts(ctx context.Context, num int32) ([]*model.Post, error)
	ViewPost(ctx context.Context, id int32) (*model.Post, error)
	CreatePost(ctx context.Context, p *model.Post) (int64, error)
	UpdatePost(ctx context.Context, p *model.Post) (*model.Post, error)
}

PostRepo Interface outlining the methods to create within our Http Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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