busevent

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package busevent is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Execute(ctx context.Context, dto any) (any, error)
}

type CommandEvent

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

func NewCommandEvent

func NewCommandEvent() *CommandEvent

func (*CommandEvent) Dispatch

func (c *CommandEvent) Dispatch(ctx context.Context, dto ObjectIn, out any) error

func (*CommandEvent) DispatchAsync

func (c *CommandEvent) DispatchAsync(ctx context.Context, dto any) <-chan Envelope

func (*CommandEvent) Register

func (c *CommandEvent) Register(dto ObjectIn, handler Command)

type Envelope

type Envelope struct {
	Result any
	Error  error
}

type MockCommand

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

MockCommand is a mock of Command interface.

func NewMockCommand

func NewMockCommand(ctrl *gomock.Controller) *MockCommand

NewMockCommand creates a new mock instance.

func (*MockCommand) EXPECT

func (m *MockCommand) EXPECT() *MockCommandMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCommand) Execute

func (m *MockCommand) Execute(ctx context.Context, dto any) (any, error)

Invoke mocks base method.

type MockCommandMockRecorder

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

MockCommandMockRecorder is the mock recorder for MockCommand.

func (*MockCommandMockRecorder) Invoke

func (mr *MockCommandMockRecorder) Invoke(ctx, dto any) *gomock.Call

Invoke indicates an expected call of Invoke.

type ObjectIn

type ObjectIn any

Jump to

Keyboard shortcuts

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