command

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2015 License: MIT Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
}

type CommandBus

type CommandBus interface {
	Dispatch(cmd Command)
	PushHandler(handler CommandHandler)
}

func NewGenericCommandBus

func NewGenericCommandBus() CommandBus

type CommandHandler

type CommandHandler interface {
	CanHandle(cmd Command) bool
	Handle(cmd Command)
}

type GenericCommandBus

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

func (*GenericCommandBus) Dispatch

func (bus *GenericCommandBus) Dispatch(cmd Command)

func (*GenericCommandBus) PushHandler

func (bus *GenericCommandBus) PushHandler(handler CommandHandler)

Jump to

Keyboard shortcuts

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