repository

package
v0.0.0-...-657c97c Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2018 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 BlogRepository

type BlogRepository interface {
	Create(ctx context.Context, blog *model.Blog) (*model.Blog, error)
	CreateMulti(ctx context.Context, blogs []*model.Blog) ([]*model.Blog, error)
	NewQuery() Query
}

type Query

type Query interface {
	Limit(limit int) Query
	Offset(offset int) Query
	Order(filedName string) Query
	Filter(filterStr string, value interface{}) Query
	GetAll(ctx context.Context) (*model.BlogList, error)
}

type UserRepository

type UserRepository interface {
	Create(ctx context.Context, user *model.User) (*model.User, error)
	CreateMulti(ctx context.Context, users []*model.User) ([]*model.User, error)
	Get(ctx context.Context, strID string) (*model.User, error)
	GetMulti(ctx context.Context, strIDs []string) ([]*model.User, error)
}

Jump to

Keyboard shortcuts

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