projection

package
v0.0.0-...-da8027b Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package projection is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func (*Controller) HandleEvent

func (c *Controller) HandleEvent(ctx context.Context, e stream.Event) (err error)

func (*Controller) MatchEvent

func (c *Controller) MatchEvent(_ context.Context, et stream.EventType) bool

func (*Controller) Stream

func (c *Controller) Stream(st stream.Type) *Stream

func (*Controller) Subscribe

func (c *Controller) Subscribe(ctx context.Context, sub eventbus.Subscriber) error

func (*Controller) Wrap

func (c *Controller) Wrap(m ...eventbus.HandlerMiddleware)

type Filter

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

func NewFilter

func NewFilter(s *Stream, ets []stream.EventType) *Filter

func (*Filter) Process

func (f *Filter) Process(h Handler, other ...Handler) *Stream

type Handler

type Handler interface {
	Handle(context.Context, stream.Event) error
}

type HandlerFunc

type HandlerFunc func(context.Context, stream.Event) error

func (HandlerFunc) Handle

func (f HandlerFunc) Handle(ctx context.Context, e stream.Event) error

type MockHandler

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

MockHandler is a mock of Handler interface

func NewMockHandler

func NewMockHandler(ctrl *gomock.Controller) *MockHandler

NewMockHandler creates a new mock instance

func (*MockHandler) EXPECT

func (m *MockHandler) EXPECT() *MockHandlerMockRecorder

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

func (*MockHandler) Handle

func (m *MockHandler) Handle(arg0 context.Context, arg1 stream.Event) error

Handle mocks base method

type MockHandlerMockRecorder

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

MockHandlerMockRecorder is the mock recorder for MockHandler

func (*MockHandlerMockRecorder) Handle

func (mr *MockHandlerMockRecorder) Handle(arg0, arg1 interface{}) *gomock.Call

Handle indicates an expected call of Handle

type Stream

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

func NewStream

func NewStream(st stream.Type) *Stream

func (*Stream) When

func (s *Stream) When(et stream.EventType, other ...stream.EventType) *Filter

func (*Stream) WhenAny

func (s *Stream) WhenAny() *Filter

Jump to

Keyboard shortcuts

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