redisdatatype

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisDataType

type RedisDataType int
const (
	UNKNOWN RedisDataType = 0
	String  RedisDataType = 1
	Bool    RedisDataType = 2
	Int     RedisDataType = 3
	Int64   RedisDataType = 4
	Float64 RedisDataType = 5
	Bytes   RedisDataType = 6
	Json    RedisDataType = 7
	Time    RedisDataType = 8
)

func (RedisDataType) Caption

func (i RedisDataType) Caption() string

Caption retrieves a RedisDataType enum string caption

func (RedisDataType) CaptionMap

func (i RedisDataType) CaptionMap() map[RedisDataType]string

CaptionMap returns all captions of the enum RedisDataType in a K:RedisDataType,V:caption map

func (RedisDataType) Description

func (i RedisDataType) Description() string

Description retrieves a RedisDataType enum string description

func (RedisDataType) DescriptionMap

func (i RedisDataType) DescriptionMap() map[RedisDataType]string

DescriptionMap returns all descriptions of the enum RedisDataType in a K:RedisDataType,V:description map

func (RedisDataType) IntString

func (i RedisDataType) IntString() string

IntString gets the intrinsic enum integer value represented in string format

func (RedisDataType) IntValue

func (i RedisDataType) IntValue() int

IntValue gets the intrinsic enum integer value

func (RedisDataType) Key

func (i RedisDataType) Key() string

Key retrieves a RedisDataType enum string key

func (RedisDataType) KeyMap

func (i RedisDataType) KeyMap() map[RedisDataType]string

KeyMap returns all keys of the enum RedisDataType in a K:RedisDataType,V:key map

func (RedisDataType) NameMap

func (i RedisDataType) NameMap() map[string]RedisDataType

NameMap returns all names of the enum RedisDataType in a K:name,V:RedisDataType map

func (RedisDataType) ParseByKey

func (i RedisDataType) ParseByKey(s string) (RedisDataType, error)

ParseByKey retrieves a RedisDataType enum value from the enum string key, throws an error if the param is not part of the enum

func (RedisDataType) ParseByName

func (i RedisDataType) ParseByName(s string) (RedisDataType, error)

ParseByName retrieves a RedisDataType enum value from the enum string name, throws an error if the param is not part of the enum

func (RedisDataType) String

func (i RedisDataType) String() string

func (RedisDataType) Valid

func (i RedisDataType) Valid() bool

Valid returns 'true' if the value is listed in the RedisDataType enum map definition, 'false' otherwise

func (RedisDataType) ValueSlice

func (i RedisDataType) ValueSlice() []RedisDataType

ValueSlice returns all values of the enum RedisDataType in a slice

Jump to

Keyboard shortcuts

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