storage

package
v0.0.0-...-f14c619 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 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 Getter

type Getter interface {
	GetQuestion() (string, error)
}

type RedisStorage

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

func NewStorage

func NewStorage(cfg *config.Redis) *RedisStorage

func (*RedisStorage) GetQuestion

func (s *RedisStorage) GetQuestion() (string, error)

func (*RedisStorage) SetQuestion

func (s *RedisStorage) SetQuestion(q string) error

type Setter

type Setter interface {
	SetQuestion(q string) error
}

type Storage

type Storage interface {
	Getter
}

Jump to

Keyboard shortcuts

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