vsq

package module
v0.0.0-...-3262bb4 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 10 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestMain

func TestMain(m *testing.M)

func UniqId

func UniqId() string

Types

type VerySimpleQueue

type VerySimpleQueue struct {
	Data     VsqData
	FilePath string
}

func (*VerySimpleQueue) Load

func (vsq *VerySimpleQueue) Load(filePath string) (VsqData, error)

func (*VerySimpleQueue) Pop

func (vsq *VerySimpleQueue) Pop() (string, error)

func (*VerySimpleQueue) Push

func (vsq *VerySimpleQueue) Push(data string) int

func (*VerySimpleQueue) Shift

func (vsq *VerySimpleQueue) Shift() (string, error)

func (VerySimpleQueue) Size

func (vsq VerySimpleQueue) Size() int

func (*VerySimpleQueue) Unshift

func (vsq *VerySimpleQueue) Unshift(data string) int

type VerySimpleQueueLikeSQS

type VerySimpleQueueLikeSQS struct {
	Data     VsqDataLikeSQS
	FilePath string
}

func (*VerySimpleQueueLikeSQS) Delete

func (vsq *VerySimpleQueueLikeSQS) Delete(id string) bool

func (*VerySimpleQueueLikeSQS) Load

func (vsq *VerySimpleQueueLikeSQS) Load(filePath string) (VsqDataLikeSQS, error)

func (VerySimpleQueueLikeSQS) Receive

func (*VerySimpleQueueLikeSQS) Send

func (vsq *VerySimpleQueueLikeSQS) Send(data string, idFunc func() string) string

func (VerySimpleQueueLikeSQS) Size

func (vsq VerySimpleQueueLikeSQS) Size() int

type VsqData

type VsqData struct {
	Name  string
	Value []string
}

type VsqDataLikeSQS

type VsqDataLikeSQS struct {
	Name  string
	Value map[string]string
}

type VsqDataLikeSQSValue

type VsqDataLikeSQSValue struct {
	Id   string
	Body string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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