repository

package
v0.0.0-...-bb9e844 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUserNotFound = errors.New("user not found")

Functions

This section is empty.

Types

type PostRepository

type PostRepository interface {
	Create(ctx context.Context, user *model.User, title, content string) (*model.Post, error)
	ListByUser(ctx context.Context, user *model.User) ([]*model.Post, error)
}

type UserRepository

type UserRepository interface {
	Create(ctx context.Context, name, email string) (*model.User, error)
	Find(ctx context.Context, id int) (*model.User, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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