httpsqs

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue struct {
	Url      string
	HttpUtil *httpUtils.HttpUtil
}

func New

func New(url string) *Queue

func (*Queue) InQueue

func (q *Queue) InQueue(queue_name, data string) bool

func (*Queue) OutQueue

func (q *Queue) OutQueue(queue_name string) string

func (*Queue) QueueInfo

func (q *Queue) QueueInfo(queue_name string) *QueueInfo

type QueueInfo

type QueueInfo struct {
	Name     string `json:"name"`
	Maxqueue int    `json:"maxqueue"`
	Putpos   int    `json:"putpos"`
	Putlap   int    `json:"putlap"`
	Getpos   int    `json:"getpos"`
	Getlap   int    `json:"getlap"`
	Unread   int    `json:"unread"`
}

Jump to

Keyboard shortcuts

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