blogs

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewController

func NewController(
	authMFunc network.AuthenticationProvider,
	authorizeMFunc network.AuthorizationProvider,
	service Service,
) network.Controller

Types

type Service

type Service interface {
	SetSimilarBlogsDtoCache(blogId primitive.ObjectID, blogs []*dto.ItemBlog) error
	GetSimilarBlogsDtoCache(blogId primitive.ObjectID) ([]*dto.ItemBlog, error)
	GetPaginatedLatestBlogs(p *coredto.Pagination) ([]*dto.ItemBlog, error)
	GetPaginatedTaggedBlogs(tag string, p *coredto.Pagination) ([]*dto.ItemBlog, error)
	GetSimilarBlogs(blogId primitive.ObjectID) ([]*dto.ItemBlog, error)
	// contains filtered or unexported methods
}

func NewService

func NewService(db mongo.Database, store redis.Store) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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