storage

package
v0.0.0-...-6f6bef0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2019 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 GcsAdapter

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

func (*GcsAdapter) AddPostID

func (s *GcsAdapter) AddPostID(id string)

func (*GcsAdapter) IsPostIDExists

func (s *GcsAdapter) IsPostIDExists(id string) bool

type PostStorer

type PostStorer interface {
	IsPostIDExists(id string) bool
	AddPostID(id string)
}

PostStorer to store posts

func NewGcsAdapter

func NewGcsAdapter(bucketName string) PostStorer

func NewRedisAdapter

func NewRedisAdapter(addr string) PostStorer

type RedisAdapter

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

func (*RedisAdapter) AddPostID

func (s *RedisAdapter) AddPostID(id string)

func (*RedisAdapter) IsPostIDExists

func (s *RedisAdapter) IsPostIDExists(id string) bool

Jump to

Keyboard shortcuts

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