collections

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateQueue

func CreateQueue(fileDetails templates.FileDetails, details QueueTemplateDetails) (err error)

Types

type QueueTemplateDetails

type QueueTemplateDetails struct {
	// Type of queue
	QueueType
	// Type of queue element
	ElementType string
	// Type name (defaults to ElementTypeQueue)
	TypeName string
}

type QueueType

type QueueType int
const (
	QueueTypeNormal      QueueType = iota
	QueueTypeThreadSafe  QueueType = iota // Mutex controlled to allow multiple threads to use queue safely
	QueueTypeMultiThread QueueType = iota // Designed for multi-thread queue processing
)

Jump to

Keyboard shortcuts

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