article

package
v0.0.0-...-d13da26 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleAuthorRepository

type ArticleAuthorRepository interface {
	Create(ctx context.Context, art domain.Article) (int64, error)
	Update(ctx context.Context, art domain.Article) error
}

type ArticleReaderRepository

type ArticleReaderRepository interface {
	// Save 有就更新,没有就新建,即 upsert 的语义
	Save(ctx context.Context, art domain.Article) (int64, error)
}

type ArticleRepository

type ArticleRepository interface {
	Create(ctx context.Context, art domain.Article) (int64, error)
	Update(ctx context.Context, art domain.Article) error
}

func NewArticleRepository

func NewArticleRepository(dao dao.ArticleDAO) ArticleRepository

func NewCachedArticleRepository

func NewCachedArticleRepository(dao dao.ArticleDAO) ArticleRepository

type CachedArticleRepository

type CachedArticleRepository struct {
	// contains filtered or unexported fields
}

func (*CachedArticleRepository) Create

func (*CachedArticleRepository) Update

Directories

Path Synopsis
Package artrepomocks is a generated GoMock package.
Package artrepomocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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