redisstack

package
v0.0.0-...-aea5cd1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidData = errors.New("invalid data")
View Source
var ErrInvalidType = errors.New("invalid type")

Functions

func ArgsByKeyAndItemAmounts

func ArgsByKeyAndItemAmounts(command string, key string, itemAmounts []ItemAmount) []any

func ArgsByKeyAndItems

func ArgsByKeyAndItems(command string, key string, items []string) []any

func ParseArray

func ParseArray(val any, minLen int) ([]any, error)

func ParseIntBool

func ParseIntBool(val any) (bool, error)

func ParseIntBoolArray

func ParseIntBoolArray(val any, minLen int) ([]bool, error)

func ParseNullableScalarArray

func ParseNullableScalarArray[T any](val any, minLen int) ([]*T, error)

func ParseScalar

func ParseScalar[T any](val any) (T, error)

func ParseScalarArray

func ParseScalarArray[T any](val any, minLen int) ([]T, error)

func ParseStringPairArray

func ParseStringPairArray(val any, minLen int) ([][2]string, error)

func ParseToInterlacedMappedArray

func ParseToInterlacedMappedArray[T any](val any, minLen int, f func(any, any) (T, error)) ([]T, error)

func ParseToMappedArray

func ParseToMappedArray[T any](val any, minLen int, f func(any) (T, error)) ([]T, error)

Types

type ItemAmount

type ItemAmount struct {
	Item   string
	Amount int64
}

func ParseItemAmountInterlacedArray

func ParseItemAmountInterlacedArray(val any, minLen int) ([]ItemAmount, error)

type StringAnyPair

type StringAnyPair struct {
	Key   string
	Value any
}

func ParseStringAnyPairArray

func ParseStringAnyPairArray(val any, minLen int) ([]StringAnyPair, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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