MCPcopy Create free account

hub / github.com/AlexanderGrom/go-patterns / types & classes

Types & classes99 in github.com/AlexanderGrom/go-patterns

InterfaceAbstractBottle
AbstractBottle provides a bottle interface.
Creational/AbstractFactory/abstract_factory.go:16
InterfaceAbstractFactory
AbstractFactory provides an interface for creating families of related objects.
Creational/AbstractFactory/abstract_factory.go:5
InterfaceAbstractWater
AbstractWater provides a water interface.
Creational/AbstractFactory/abstract_factory.go:11
StructAdaptee
Adaptee implements system to be adapted.
Structural/Adapter/adapter.go:10
StructAdapter
Adapter implements Target interface and is an adapter.
Structural/Adapter/adapter.go:24
InterfaceAggregate
Aggregate provides a collection interface.
Behavioral/Iterator/iterator.go:16
StructAndSpecification
AndSpecification
Unsorted/Specification/specification.go:83
StructBaseSpecification
Invoice BaseSpecification
Unsorted/Specification/specification.go:39
StructBook
Book implements a item of the collection.
Behavioral/Iterator/iterator.go:89
StructBookIterator
BookIterator implements the Iterator interface.
Behavioral/Iterator/iterator.go:21
StructBookShelf
BookShelf implements the Aggregate interface.
Behavioral/Iterator/iterator.go:74
StructBubbleSort
BubbleSort implements bubble sort algorithm.
Behavioral/Strategy/strategy.go:10
InterfaceBuilder
Builder provides a builder interface.
Creational/Builder/builder.go:5
StructBurgerBar
BurgerBar implements the Place interface.
Behavioral/Visitor/visitor.go:83
StructCannery
Cannery implements a Cannery colleague.
Behavioral/Mediator/mediator.go:72
StructCar
Car implementation.
Structural/Bridge/bridge.go:15
InterfaceCarer
Carer provides car interface.
Structural/Bridge/bridge.go:5
StructCaretaker
Caretaker keeps Memento until it is needed by Originator.
Behavioral/Memento/memento.go:30
StructChild
Child implements a subsystem "Child"
Structural/Facade/facade.go:53
StructCity
City implements a collection of places to visit.
Behavioral/Visitor/visitor.go:36
StructCocaColaBottle
CocaColaBottle implements AbstractBottle.
Creational/AbstractFactory/abstract_factory.go:52
StructCocaColaFactory
CocaColaFactory implements AbstractFactory interface.
Creational/AbstractFactory/abstract_factory.go:23
StructCocaColaWater
CocaColaWater implements AbstractWater.
Creational/AbstractFactory/abstract_factory.go:42
InterfaceCommand
Command provides a command interface.
Behavioral/Command/command.go:5
InterfaceComponent
Component provides an interface for a decorator and component.
Structural/Decorator/decorator.go:5
InterfaceComponent
Component provides an interface for branches and leaves of a tree.
Structural/Composite/composite.go:5
StructConcreteBuilder
ConcreteBuilder implements Builder interface.
Creational/Builder/builder.go:24
StructConcreteComponent
ConcreteComponent implements a component.
Structural/Decorator/decorator.go:10
StructConcreteCreator
ConcreteCreator implements Creator interface.
Creational/FactoryMethod/factory_method.go:29
StructConcreteDecorator
ConcreteDecorator implements a decorator.
Structural/Decorator/decorator.go:19
StructConcreteFlyweight
ConcreteFlyweight implements a Flyweighter interface.
Structural/Flyweight/flyweight.go:29
StructConcreteHandlerA
ConcreteHandlerA implements handler "A".
Behavioral/ChainOfResponsibility/chain_of_responsibility.go:10
StructConcreteHandlerB
ConcreteHandlerB implements handler "B".
Behavioral/ChainOfResponsibility/chain_of_responsibility.go:25
StructConcreteHandlerC
ConcreteHandlerC implements handler "C".
Behavioral/ChainOfResponsibility/chain_of_responsibility.go:40
StructConcreteMediator
Тип ConcreteMediator, реализует посредника
Behavioral/Mediator/mediator.go:10
StructConcreteObserver
ConcreteObserver implements the Observer interface.
Behavioral/Observer/observer.go:47
StructConcreteProduct
ConcreteProduct implements product "A"
Creational/Prototype/prototype.go:11
StructConcreteProductA
ConcreteProductA implements product "A".
Creational/FactoryMethod/factory_method.go:55
StructConcreteProductB
ConcreteProductB implements product "B".
Creational/FactoryMethod/factory_method.go:65
StructConcreteProductC
ConcreteProductC implements product "C".
Creational/FactoryMethod/factory_method.go:75
StructConcretePublisher
ConcretePublisher implements the Publisher interface.
Behavioral/Observer/observer.go:18
StructContext
Context provides a context for execution of a strategy.
Behavioral/Strategy/strategy.go:52
InterfaceCreator
Creator provides a factory interface.
Creational/FactoryMethod/factory_method.go:18
StructDirector
Director implements a manager
Creational/Builder/builder.go:12
StructDirectory
Directory implements branches of a tree
Structural/Composite/composite.go:13
StructEngineHonda
EngineHonda implements Honda engine.
Structural/Bridge/bridge.go:41
StructEngineLada
EngineLada implements Lada engine.
Structural/Bridge/bridge.go:50
StructEngineSuzuki
EngineSuzuki implements Suzuki engine.
Structural/Bridge/bridge.go:32
InterfaceEnginer
Enginer provides engine interface.
Structural/Bridge/bridge.go:10
StructFarmer
Farmer implements a Farmer colleague
Behavioral/Mediator/mediator.go:43
StructFile
File implements a leaves of a tree
Structural/Composite/composite.go:43
StructFlyweightFactory
FlyweightFactory implements a factory. If a suitable flyweighter is in pool, then returns it.
Structural/Flyweight/flyweight.go:13
InterfaceFlyweighter
Flyweighter interface
Structural/Flyweight/flyweight.go:7
StructFrenchQuotes
FrenchQuotes implements wrapping the string in French quotes.
Behavioral/TemplateMethod/template_method.go:28
StructGermanQuotes
GermanQuotes implements wrapping the string in German quotes.
Behavioral/TemplateMethod/template_method.go:42
InterfaceHandler
Handler provides a handler interface.
Behavioral/ChainOfResponsibility/chain_of_responsibility.go:5
StructHouse
House implements a subsystem "House"
Structural/Facade/facade.go:35
StructInCollectionSpecification
Invoice has already been sent to the collection agency.
Unsorted/Specification/specification.go:155
StructInsertionSort
InsertionSort implements insertion sort algorithm.
Behavioral/Strategy/strategy.go:29
StructInvoice
Data for analysis
Unsorted/Specification/specification.go:19
StructInvoker
Invoker implementation.
Behavioral/Command/command.go:44
InterfaceIterator
Iterator provides a iterator interface.
Behavioral/Iterator/iterator.go:5
StructMan
Man implements man and facade.
Structural/Facade/facade.go:18
InterfaceMediator
Mediator provides a mediator interface.
Behavioral/Mediator/mediator.go:5
StructMemento
Memento implements storage for the state of Originator
Behavioral/Memento/memento.go:20
StructMobileAlert
MobileAlert implements an alert depending on its state.
Behavioral/State/state.go:10
StructMobileAlertSong
MobileAlertSong implements beep alert
Behavioral/State/state.go:39
InterfaceMobileAlertStater
MobileAlertStater provides a common interface for various states.
Behavioral/State/state.go:5
StructMobileAlertVibration
MobileAlertVibration implements vibration alert
Behavioral/State/state.go:30
StructNotSpecification
NotSpecification
Unsorted/Specification/specification.go:109
StructNoticeSentSpecification
Three notices have been sent to the customer
Unsorted/Specification/specification.go:138
InterfaceObserver
Observer provides a subscriber interface.
Behavioral/Observer/observer.go:13
StructOrSpecification
OrSpecification
Unsorted/Specification/specification.go:96
StructOriginator
Originator implements a state master.
Behavioral/Memento/memento.go:5
StructOverDueSpecification
Invoice's due date is 30 days or older
Unsorted/Specification/specification.go:121
StructPeople
People implements the Visitor interface.
Behavioral/Visitor/visitor.go:17
StructPizzeria
Pizzeria implements the Place interface.
Behavioral/Visitor/visitor.go:69
InterfacePlace
Place provides an interface for place that the visitor should visit.
Behavioral/Visitor/visitor.go:12
InterfaceProduct
Product provides a product interface. All products returned by factory must provide a single interface.
Creational/FactoryMethod/factory_method.go:24
StructProduct
Product implementation.
Creational/Builder/builder.go:44
InterfacePrototyper
Prototyper provides a cloning interface.
Creational/Prototype/prototype.go:5
StructProxy
Proxy implements a surrogate.
Structural/Proxy/proxy.go:10
InterfacePublisher
Publisher interface.
Behavioral/Observer/observer.go:6
StructQuotes
Quotes implements a Template Method.
Behavioral/TemplateMethod/template_method.go:13
InterfaceQuotesInterface
QuotesInterface provides an interface for setting different quotes.
Behavioral/TemplateMethod/template_method.go:7
StructRealSubject
RealSubject implements a real subject
Structural/Proxy/proxy.go:23
StructReceiver
Receiver implementation.
Behavioral/Command/command.go:30
StructShop
Shop implements a Shop colleague.
Behavioral/Mediator/mediator.go:100
StructSingleton
Singleton implementation.
Creational/Singleton/singleton.go:9
InterfaceSpecification
Invoice Specification Interface
Unsorted/Specification/specification.go:28
InterfaceStrategySort
StrategySort provides an interface for sort algorithms.
Behavioral/Strategy/strategy.go:5
InterfaceSubject
Subject provides an interface for a real subject and its surrogate.
Structural/Proxy/proxy.go:5
StructSushiBar
SushiBar implements the Place interface.
Behavioral/Visitor/visitor.go:55
InterfaceTarget
Target provides an interface with which the system should work.
Structural/Adapter/adapter.go:5
StructToggleOffCommand
ToggleOffCommand implements the Command interface.
Behavioral/Command/command.go:20
StructToggleOnCommand
ToggleOnCommand implements the Command interface.
Behavioral/Command/command.go:10
StructTree
Tree implements a subsystem "Tree"
Structural/Facade/facade.go:44
InterfaceVisitor
Visitor provides a visitor interface.
Behavioral/Visitor/visitor.go:5
TypeAliasaction
action helps clients to find out available actions.
Creational/FactoryMethod/factory_method.go:9