...

Package hscan

import "github.com/redis/go-redis/v9/internal/hscan"
Overview
Index

Overview ▾

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.

type Scanner

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

type Scanner interface {
    ScanRedis(s string) error
}

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