testutil

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMockTasks

func GenerateMockTasks(ctx context.Context, cliCtx *cli.Context) error

GenerateMockTasks generates mock tasks for the mockbot -- this will not not work with a real dealbot

Types

type MockDaemon

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

MockDaemon mimics a running daemon by pulling tasks of the queue and returning results

func NewMockDaemon

func NewMockDaemon(ctx context.Context, cliCtx *cli.Context) (srv *MockDaemon)

NewMockDaemon initializes a new mocked out daemon

func (*MockDaemon) Serve

func (md *MockDaemon) Serve() error

func (*MockDaemon) Shutdown

func (md *MockDaemon) Shutdown(ctx context.Context) error

Shutdown all workers

Jump to

Keyboard shortcuts

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