Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Hands-On-Software-Architecture-with-Golang
/ types & classes
Types & classes
101 in github.com/PacktPublishing/Hands-On-Software-Architecture-with-Golang
⨍
Functions
228
◇
Types & classes
101
↓ 1 callers
TypeAlias
ReservationTime
Chapter10/reservation_time.go:11
Interface
AbstractFactory
AbstractFactory is the abstract factory which will create two products - both which need to work with each other
Chapter03/abstract_factory.go:12
Struct
Adaptee
Adaptee is the existing structure - something we need to use
Chapter03/adaptor.go:8
Struct
Adapter
Adapter is the structure we use to glue things together
Chapter03/adaptor.go:15
Interface
Animal
Chapter01, and 02/interface.go:13
Struct
Args
Chapter05/rpc_server.go:11
Struct
Args
Chapter05/rpc_client.go:8
Struct
AvailabilityThreshold
Chapter10/models.go:31
Struct
Bird
Bird is a sample 'super class' to demonstrate 'inheritance' via embedding
Chapter01, and 02/embed.go:9
Struct
ChainedReceiver
Chain Of Responsibilty uses Command to represent requests as objects
Chapter03/command.go:61
Interface
Colleague
Chapter03/mediator.go:13
Struct
Colleague1
Concrete Colleauge 1 - uses state as string
Chapter03/mediator.go:19
Struct
Colleague2
Concrete Colleauge 2 - uses state as int
Chapter03/mediator.go:39
Struct
Composite
Chapter03/composite.go:13
Struct
ConcreteMediator
Concrete Mediator
Chapter03/mediator.go:59
Struct
ConcreteNodeX
Chapter03/visitor.go:12
Struct
ConcreteNodeY
Chapter03/visitor.go:17
Struct
ConcreteObserverA
Concrete Observer A
Chapter03/observer.go:36
Struct
ConcreteReportA
The Concrete Commands
Chapter03/command.go:15
Struct
ConcreteReportB
Chapter03/command.go:24
Struct
ConcreteVisitor
and an implementation
Chapter03/visitor.go:31
Struct
Context
The Context class
Chapter03/state.go:14
TypeAlias
Element
The gogenerate command is used to create multiple instantiations from the generic type NOTE the replacement of tag "Element" - It's important that all
Chapter12/generics/list/template.go:10
Struct
ElementList
ElementList is the generic FIFO queue
Chapter12/generics/list/template.go:13
Struct
FastAlgo
A O(n) implementation
Chapter03/strategy.go:22
Struct
FlightFactory
FlightFactory implements AbstractFactory and creates products for the Flight family of products
Chapter03/abstract_factory.go:30
Struct
FlightInvoice
Chapter03/abstract_factory.go:60
Interface
FlightReservation
Chapter03/multiple_interfaces.go:17
Struct
FlightReservation
Chapter03/abstract_factory.go:59
Struct
FlightReservationImpl
Chapter03/multiple_interfaces.go:34
Struct
FlightReservationImpl
Chapter03/creational_builder_factory.go:16
FuncType
Function
func(float64) float64
Chapter03/decorator.go:9
Struct
Hotel
Chapter07/graphql.go:11
Struct
Hotel
Chapter07/hotels_gins.go:22
Struct
Hotel
Chapter08/redis.go:10
Struct
Hotel
Hotel desribes a single Hotel entity with attributes like name, number of rooms , etc It has a reference ( foreign key) to a HotelChain
Chapter08/gorm_associations.go:18
Struct
HotelBoutique
Dummy Subject
Chapter03/proxy.go:25
Struct
HotelBoutiqueProxy
Proxy
Chapter03/proxy.go:9
Struct
HotelChain
HotelChain is an entity which represents a group which has multiple hotels
Chapter08/gorm_associations.go:11
Struct
HotelFactory
HotelFactory implements AbstractFactory and creates products for the Hotel family of products
Chapter03/abstract_factory.go:18
Struct
HotelInvoice
Chapter03/abstract_factory.go:58
Interface
HotelReservation
Chapter03/multiple_interfaces.go:12
Struct
HotelReservation
The code below demonstrates usage of the factories
Chapter03/abstract_factory.go:57
Struct
HotelReservation
Chapter10/models.go:19
Struct
HotelReservationDTO
Chapter10/main.go:46
Struct
HotelReservationImpl
Chapter03/multiple_interfaces.go:22
Struct
HotelReservationImpl
Chapter03/creational_builder_factory.go:12
Struct
InstitutionSeller
InstitutionSeller is an specialization of the implementation
Chapter03/bridge.go:37
Interface
InterfaceX
InterfaceX is the component interface
Chapter03/composite.go:8
Interface
Invoice
Chapter03/abstract_factory.go:9
Struct
Invoker
Invoker - this object which knows how to execute a command, and optionally does bookkeeping about the command execution.
Chapter03/command.go:43
Struct
LatLong
Chapter01, and 02/interface.go:8
Struct
Link
Chapter07/hotels_gins.go:30
Struct
Lion
The Lion Family
Chapter01, and 02/interface.go:24
Struct
MasterAlgorithm
The 'abstract' MasterAlgorithm
Chapter03/template.go:10
Interface
Mediator
The Mediator and Colleague interfaces
Chapter03/mediator.go:9
Struct
Memento
Momento
Chapter03/mememto.go:33
Struct
Message
Toy message that we want to send
Chapter06/kakfka_async_producer.go:14
Struct
Message
Chapter06/fan_out.go:9
Struct
MuliplyService
Chapter05/rpc_server.go:15
Struct
MyClass
Chapter03/singleton.go:8
Struct
MyMessageHandler
MyMessageHandler is a struct which defines a method to handle messages
Chapter06/nsq_cons.go:12
Struct
MyMessageHandler
Chapter06/nsq_async_cons.go:15
Struct
NaiveAlgo
A O(nlgn) implementation
Chapter03/strategy.go:15
Interface
Node
the Node interface
Chapter03/visitor.go:8
Interface
Observer
The Observer Interface
Chapter03/observer.go:31
Struct
Originator
Originator
Chapter03/mememto.go:8
Struct
Person
Chapter01, and 02/methods.go:8
Struct
Pigeon
Pigeon is the derived struct
Chapter01, and 02/embed.go:15
Struct
Pigeon
The Pigeon Family
Chapter01, and 02/interface.go:57
Struct
Pigeon
Chapter01, and 02/pigeon/pigeon.go:5
Struct
PremiumReservation
PremiumReservation is a specialization of the interface
Chapter03/bridge.go:23
Struct
Receiver
end of concrete commands Receiver - ancillary objects passed to command execution This can pass useful information for
Chapter03/command.go:35
Interface
Report
The Command - encapsulates the action to be done
Chapter03/command.go:9
Struct
Request
Chapter06/req_reply.go:8
Interface
Reservation
Reservation and Invoice as two generic products
Chapter03/abstract_factory.go:8
Interface
Reservation
Chapter03/multiple_interfaces.go:7
Interface
Reservation
Chapter03/creational_builder_factory.go:7
Struct
Reservation
Reservation is the main abstraction the abstraction here is a struct not an interface , since in Go you cant have abstract structs/interfaces , where
Chapter03/bridge.go:13
Interface
ReservationBuilder
Chapter03/creational_builder_factory.go:48
Struct
Response
Chapter06/req_reply.go:13
Interface
Seller
This is the interface for all Sellers
Chapter03/bridge.go:32
Struct
SmallScaleSeller
SmallScaleSeller is an specialization of the implementation
Chapter03/bridge.go:45
Interface
State
The State Inteface with the polymorphic methods
Chapter03/state.go:8
Struct
StateA
Concrete States
Chapter03/state.go:35
Struct
StateB
Chapter03/state.go:44
TypeAlias
Status
Chapter10/models.go:11
Interface
Strategy
Chapter03/strategy.go:10
Struct
Subject
The Subject
Chapter03/observer.go:9
Interface
Template
The steps which can be specialized
Chapter03/template.go:22
Struct
Trip
Chapter03/multiple_interfaces.go:53
Struct
UintList
Chapter12/generics/list/list-unit.go:7
Struct
User
Chapter08/gorm_simple.go:10
Struct
User
User desscribes an employee entity. We will be using this to demonstrate Cassandra create, read, update, and delete flows
Chapter08/cassandra.go:12
Struct
VariantA
Variant A
Chapter03/template.go:29
Interface
Visitor
the Vistor interface
Chapter03/visitor.go:26
Interface
VowelsService
CountVowels counts vowels in strings.
Chapter07/go_kit.go:15
Struct
VowelsServiceImpl
VowelsService is a concrete implementation of VowelsService
Chapter07/go_kit.go:20
Struct
countVowelsRequest
For each method, we define request and response structs
Chapter07/go_kit.go:45
Struct
countVowelsResponse
Chapter07/go_kit.go:49
next →
1–100 of 101, ranked by callers