mediator

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Colleague

type Colleague interface {
	Mediator
}

colleague

type ConcreteColleague

type ConcreteColleague struct {
}

type ConcreteMediator

type ConcreteMediator struct {
	Colleagues []Colleague
}

func NewConcreteMediator

func NewConcreteMediator() *ConcreteMediator

func (*ConcreteMediator) Operate

func (cm *ConcreteMediator) Operate() error

func (*ConcreteMediator) Register

func (cm *ConcreteMediator) Register(co Colleague)

type Mediator

type Mediator interface {
	Register(Colleague)
	Operate() error
}

Jump to

Keyboard shortcuts

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