radixutil

package module
v0.0.0-...-c4dc7a7 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2019 License: MIT Imports: 6 Imported by: 0

README

radixutil GoDoc Build Status Go Report Card

A collection of utilities for working with radix.

Installation

radixutil uses go modules and can be installed via go get.

go get github.com/nussjustin/radixutil

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalArray

func UnmarshalArray(br *bufio.Reader, targets ...interface{}) error

UnmarshalArray unmarshals an array with length len(targets) from br into the values in targets.

Types

type Duration

type Duration struct {
	time.Duration

	// Precision that will be used when marshalling to and unmarshalling from RESP format.
	//
	// If Precision is 0, time.Millisecond is used.
	Precision time.Duration
}

Duration wraps a time.Duration with a given Precision for marshalling and unmarshalling for Redis.

func (Duration) MarshalRESP

func (d Duration) MarshalRESP(w io.Writer) error

MarshalRESP implements the resp.Marshaler interface.

func (*Duration) UnmarshalRESP

func (d *Duration) UnmarshalRESP(br *bufio.Reader) error

UnmarshalRESP implements the resp.Unmarshaler interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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