warehouse

package
v0.0.0-...-9fbc374 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RobotInterface

type RobotInterface interface {
	EnqueueTask(commands string) (
		taskId int64,
		positionChannel chan RobotState,
		errorChannel chan error)
	CancelTask(taskId int64) error
	CurrentState() RobotState
}

func NewRobot

func NewRobot(
	logger *zap.SugaredLogger,
	id int64,
	x int,
	y int,
	boardHeight int,
	boardWidth int,
	eventpublisherService eventpublisher.EventPublisherInterface,
	idGeneratorService idgenerator.IdGeneratorInterface) (
	RobotInterface,
	error)

type RobotState

type RobotState struct {
	X        int
	Y        int
	HasCrate bool
}

Directories

Path Synopsis
Package mock_warehouse is a generated GoMock package.
Package mock_warehouse is a generated GoMock package.

Jump to

Keyboard shortcuts

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