blogger

package
v0.0.0-...-2b5c0b5 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 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 BloggerProc

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

BloggerProc creates and save blogs

func New

func New(engine Engine) *BloggerProc

New makes BloggerProc

func (BloggerProc) GetPosts

func (p BloggerProc) GetPosts(page int, pageSize int, searchTerm string) (*store.PaginationPostsResult, error)

func (BloggerProc) SavePostsBulk

func (p BloggerProc) SavePostsBulk(postsToSave []*store.PostV1) ([]*store.PostV1, error)

type Engine

type Engine interface {
	GetPosts(page int, pageSize int, partitionKey string) (*store.PaginationPostsResult, error)
	SavePostsBulk(postsToSave []*store.PostV1) ([]*store.PostV1, error)
}

Engine defines interface to save and load data

Jump to

Keyboard shortcuts

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