parser

package
v0.0.0-...-1605a13 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyByte []byte = []byte{}

Functions

func Decode

func Decode(payload []byte) (byte, uint32, uint32, uint32)

operation key length ttl - 4 byte payload - 4 byte

func DecodeLength

func DecodeLength(size []byte) int

func Delete

func Delete(key []byte) ([]byte, error)

func Encode

func Encode(operation byte, key, value []byte, ttl int) ([]byte, error)

func Get

func Get(key []byte) ([]byte, error)

func LittleEndianDecode

func LittleEndianDecode(payload []byte) uint32

func LittleEndianEncode

func LittleEndianEncode(payload []byte, num uint32) int

func Set

func Set(key, value []byte, ttl int) ([]byte, error)

func SetDriver

func SetDriver(key, value, reqID []byte, ttl int) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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