queuejson

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pop

func Pop(q blobqueue.Queue, v interface{}) error

Pop removes the tail of the queue and deserialize it as JSON into v. v must be a pointer (see json.Unmarshal).

func Push

func Push(q blobqueue.Queue, v interface{}) error

Push serialize v as JSON and pushes the blob on the queue. See json.Marshal for the accepted values.

func Shift

func Shift(q blobqueue.Queue, v interface{}) error

Shift removes the head of the queue and deserialize it as JSON into v. v must be a pointer (see json.Unmarshal).

func Unshift

func Unshift(q blobqueue.Queue, v interface{}) error

Unshift serialize v as JSON and pushes the blob on the queue. See json.Marshal for the accepted values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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