biz

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	Id, Title, Content, WebsiteId, WebsiteDomain, WebsiteTitle string
	UpdateTime                                                 *timestamppb.Timestamp
}

type ArticleRepo

type ArticleRepo interface {
	ListArticles(ctx context.Context) ([]*Article, error)
	GetArticle(ctx context.Context, id string) (*Article, error)
	SearchArticles(ctx context.Context, keyword ...string) ([]*Article, error)
}

type ArticleUsecase

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

func NewArticleUsecase

func NewArticleUsecase(repo ArticleRepo, logger log.Logger) *ArticleUsecase

Jump to

Keyboard shortcuts

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