inmem

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueueInMem

type QueueInMem struct {
	// contains filtered or unexported fields
}

QueueInMem represents an in-memory command queue

func New

func New(pubsub pubsub.PublishSubscriber, logger log.Logger) *QueueInMem

New creates a new in-memory command queue

func (*QueueInMem) Clear

func (q *QueueInMem) Clear(_ context.Context, event mdm.CheckinEvent) error

Clear clears a command queue for the enrollment in event

func (*QueueInMem) Next

func (q *QueueInMem) Next(_ context.Context, resp mdm.Response) ([]byte, error)

Next delivers the next command from the command queue for the enrollment in resp

Jump to

Keyboard shortcuts

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