redis

package
v1.0.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryPostsLimit

type InMemoryPostsLimit int

type PostRepository

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

func NewPostRepository

func NewPostRepository(
	rdb *redis.Client,
	inmemoryLimit InMemoryPostsLimit,
) *PostRepository

func (PostRepository) GetPosts

func (r PostRepository) GetPosts(
	ctx context.Context,
	followerID uuid.UUID,
	offset, limit int64,
) (posts []domain.Post, err error)

func (PostRepository) UpdateFollowerPosts

func (r PostRepository) UpdateFollowerPosts(
	ctx context.Context,
	followerID uuid.UUID,
	posts []domain.Post,
) (err error)

Jump to

Keyboard shortcuts

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