redis

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Post

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

Post defines the post struct for a redis implementation, it receives a storage

func GetPost

func GetPost(
	config *viper.Viper,
) *Post

GetPost returns a Post instance

func NewPost

func NewPost(
	config *viper.Viper,
) *Post

NewPost returns a new Post instance

func (*Post) Run

func (p *Post) Run(args map[string]interface{}, store storage.Storage) error

Run runs the configured script and returns the storage

type Pre

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

Pre defines the pre struct for a redis implementation, it returns a memory storage

func GetPre

func GetPre(
	config *viper.Viper,
) *Pre

GetPre returns a Pre instance

func NewPre

func NewPre(
	config *viper.Viper,
) *Pre

NewPre returns a new Pre instance

func (*Pre) Run

func (p *Pre) Run(args map[string]interface{}) (storage.Storage, error)

Run runs the configured script and returns the storage

Jump to

Keyboard shortcuts

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