hscan

package
v0.0.0-...-bb56650 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scan

func Scan(dst interface{}, keys []interface{}, vals []interface{}) error

Scan scans the results from a key-value Redis map result set to a destination struct. The Redis keys are matched to the struct's field with the `redis` tag.

Types

type Scanner

type Scanner interface {
	ScanRedis(s string) error
}

Scanner is the interface implemented by themselves, which will override the decoding behavior of decoderFunc.

type StructValue

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

func Struct

func Struct(dst interface{}) (StructValue, error)

func (StructValue) Scan

func (s StructValue) Scan(key string, value string) error

Jump to

Keyboard shortcuts

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