storage

package
v0.0.0-...-47b48c1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisArticleStorage

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

func NewRedisArticleStorage

func NewRedisArticleStorage(client *redis.Client) *RedisArticleStorage

func (*RedisArticleStorage) ExistsByTitle

func (r *RedisArticleStorage) ExistsByTitle(ctx context.Context, title string) (bool, error)

func (*RedisArticleStorage) Random

func (*RedisArticleStorage) RawRandom

func (r *RedisArticleStorage) RawRandom(ctx context.Context) ([]byte, error)

func (*RedisArticleStorage) Save

func (r *RedisArticleStorage) Save(ctx context.Context, article floridaman.Article)

Jump to

Keyboard shortcuts

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