pipeerr

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package pipeerr is the one reading of a go-redis pipeline result that misses no command's error (Glenn 2026-09-26: no verb fails silently).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(ctx context.Context, p redis.Pipeliner) error

Exec runs the pipeline and answers First over its commands: the one call a reader of absent-able fields makes in place of a bare Exec.

func First

func First(cmds []redis.Cmder, execErr error) error

First is the error of a pipeline whose commands may answer redis.Nil (an HGET of an absent field). go-redis's Exec returns the FIRST failed command's error, and a Nil counts: a pipeline whose first absent field comes before a NOPERM, a WRONGTYPE or a lost connection on a later command reports the Nil, the caller ignores it, and the later failure is never seen (its Val() reads as empty or zero). First walks every command instead: the first error that is not redis.Nil is the pipeline's error; with none, a non-Nil execErr (the transport) is; else nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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