controller

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package controller provides a fake controller for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeController

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

FakeController is a fake controller which only stores one key.

func (*FakeController) Enqueue

func (f *FakeController) Enqueue(obj interface{})

Enqueue enqueues a string type key.

func (*FakeController) Key

func (f *FakeController) Key() string

Key returns the key stored in the queue.

func (*FakeController) ResetQueue

func (f *FakeController) ResetQueue()

ResetQueue resets the value in the queue.

func (*FakeController) Run

func (f *FakeController) Run(_ context.Context, _ int) error

Run does nothing.

Jump to

Keyboard shortcuts

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