common

package
v0.0.0-...-e86600b Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unknown = uint32(iota)
	String
	Hash
	Set
	ZSet
	List
	Stream
)
View Source
const HeadLength = 8

Variables

This section is empty.

Functions

func RedisType

func RedisType(pb proto.Message) uint32

Types

type Header struct {
	Type   uint32
	Length uint32
}

func NewHeader

func NewHeader(t, l uint32) Header

func (*Header) Marshal

func (h *Header) Marshal() []byte

func (*Header) Unmarshal

func (h *Header) Unmarshal(b []byte)

Jump to

Keyboard shortcuts

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