types

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marshallable

type Marshallable interface {
	fmt.Stringer
	New() Marshallable
	Marshal() ([]byte, error)
	Unmarshal([]byte) error
}

Marshallable is an interface that defines the necessary methods to be (un)marshalled.

type Queue

type Queue[T Marshallable] interface {
	Push(T) (string, error)
	Receive() (string, T, bool)
	ReceiveMany(num int32) ([]string, []T, error)
	Delete(string) error
	Len() int
}

Queue defines the interaction with a queue.

Jump to

Keyboard shortcuts

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