Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Hands-On-Software-Architecture-with-Golang
/ functions
Functions
228 in github.com/PacktPublishing/Hands-On-Software-Architecture-with-Golang
⨍
Functions
228
◇
Types & classes
101
↓ 6 callers
Function
incrementLikes
(conn *redis.Client, id string)
Chapter08/redis.go:97
↓ 5 callers
Method
Run
()
Chapter03/command.go:51
↓ 4 callers
Method
CalculateCancellationFee
()
Chapter03/multiple_interfaces.go:9
↓ 4 callers
Method
Update
()
Chapter03/observer.go:32
↓ 3 callers
Method
GetState
()
Chapter03/mememto.go:12
↓ 3 callers
Method
MethodA
()
Chapter03/composite.go:9
↓ 3 callers
Method
SetState
(state State)
Chapter03/state.go:24
↓ 3 callers
Function
setHotel
(conn *redis.Client, h *Hotel)
Chapter08/redis.go:82
↓ 3 callers
Function
xSquare
(in <-chan int)
Chapter06/pipes_filter.go:18
↓ 2 callers
Method
Action
(msg string)
Chapter03/command.go:37
↓ 2 callers
Method
AddReservation
(r Reservation)
Chapter03/multiple_interfaces.go:67
↓ 2 callers
Method
CancelReservation
(charge float64)
Chapter03/bridge.go:33
↓ 2 callers
Method
Do
(args *Args, reply *int)
Chapter05/rpc_server.go:17
↓ 2 callers
Method
Finish
()
Chapter03/command.go:70
↓ 2 callers
Method
GetAttrib
()
Chapter03/singleton.go:17
↓ 2 callers
Function
GetMyClass
()
Chapter03/singleton.go:26
↓ 2 callers
Method
GetReservationDate
()
Chapter03/creational_builder_factory.go:8
↓ 2 callers
Method
Op1
()
Chapter03/state.go:18
↓ 2 callers
Method
Op2
()
Chapter03/state.go:21
↓ 2 callers
Method
Schedule
(cmd Report)
Chapter03/command.go:47
↓ 2 callers
Method
SetState
(state string)
Chapter03/mediator.go:28
↓ 2 callers
Method
SetState
(state string)
Chapter03/mememto.go:16
↓ 2 callers
Method
Visit
(Node)
Chapter03/visitor.go:27
↓ 2 callers
Function
addC
(in <-chan int, c int)
Chapter06/pipes_filter.go:29
↓ 2 callers
Function
client
The client is ignorant to the algorithm
Chapter03/strategy.go:41
↓ 2 callers
Function
emitter
dummy function for a source
Chapter06/fan_in_select.go:35
↓ 2 callers
Function
emitter
dummy function for a source
Chapter06/fan_in.go:39
↓ 2 callers
Function
emitter
(till int)
Chapter06/pipes_filter.go:7
↓ 2 callers
Function
makeId
generates ID for the Chapter10 from SKU, roomid and checkin date
Chapter10/models.go:59
↓ 2 callers
Function
sink
(name string, in <-chan Message)
Chapter06/fan_out.go:57
↓ 1 callers
Method
Accept
(Visitor)
Chapter03/visitor.go:9
↓ 1 callers
Method
Add
(v uint)
Chapter12/generics/list/list-unit.go:15
↓ 1 callers
Method
AddChild
(InterfaceX)
Chapter03/composite.go:10
↓ 1 callers
Method
Attach
(observer Observer)
Chapter03/observer.go:14
↓ 1 callers
Method
Book
()
Chapter03/proxy.go:27
↓ 1 callers
Method
Build
()
Chapter03/creational_builder_factory.go:51
↓ 1 callers
Method
Cancel
()
Chapter03/bridge.go:18
↓ 1 callers
Method
Cancel
()
Chapter03/bridge.go:27
↓ 1 callers
Function
Caretaker
caretaker
Chapter03/mememto.go:44
↓ 1 callers
Method
Count
(context.Context, string)
Chapter07/go_kit.go:16
↓ 1 callers
Method
CreateInvoice
()
Chapter03/abstract_factory.go:14
↓ 1 callers
Method
CreateReservation
()
Chapter03/abstract_factory.go:13
↓ 1 callers
Method
DoesNotGrow
DoesNotGrow method has a value receiver. This is Pass-By-Value. Age will nto be modified here
Chapter01, and 02/methods.go:19
↓ 1 callers
Method
Execute
()
Chapter03/command.go:10
↓ 1 callers
Method
ExistingMethod
()
Chapter03/adaptor.go:10
↓ 1 callers
Method
ExpectedMethod
ExpectedMethod is the method clients in current code are using. This honors the expected interface and fulfils it using the Adaptee's method
Chapter03/adaptor.go:25
↓ 1 callers
Method
FindBreadth
([]int)
Chapter03/strategy.go:11
↓ 1 callers
Method
Get
()
Chapter12/generics/list/list-unit.go:19
↓ 1 callers
Function
GetFactory
GetFactory returns a factory given a config
Chapter03/abstract_factory.go:41
↓ 1 callers
Method
GetFeatherLength
()
Chapter01, and 02/pigeon/pigeon.go:10
↓ 1 callers
Method
GetMemento
()
Chapter03/mememto.go:21
↓ 1 callers
Method
GetName
()
Chapter01, and 02/interface.go:18
↓ 1 callers
Method
GetState
()
Chapter03/mememto.go:37
↓ 1 callers
Method
GetState
()
Chapter03/observer.go:26
↓ 1 callers
Method
Grow
Grow method has a pointer receiver. This is Pass-By-Reference
Chapter01, and 02/methods.go:14
↓ 1 callers
Method
Handle
(what string)
Chapter03/command.go:75
↓ 1 callers
Function
NewAdapter
()
Chapter03/adaptor.go:19
↓ 1 callers
Function
NewContext
()
Chapter03/state.go:27
↓ 1 callers
Function
NewReservation
(vertical, reservationDate string)
Chapter03/creational_builder_factory.go:36
↓ 1 callers
Function
NewReservationBuilder
()
Chapter03/creational_builder_factory.go:83
↓ 1 callers
Method
Op1
(*Context)
Chapter03/state.go:9
↓ 1 callers
Method
Op2
(*Context)
Chapter03/state.go:10
↓ 1 callers
Function
ProfileDecorator
This decorate profiles the execution time of function fn
Chapter03/decorator.go:12
↓ 1 callers
Method
ReservationDate
(string)
Chapter03/creational_builder_factory.go:50
↓ 1 callers
Method
Restore
(memento Memento)
Chapter03/mememto.go:27
↓ 1 callers
Method
SetAttrib
(val string)
Chapter03/singleton.go:13
↓ 1 callers
Method
SetColleagueC1
(c1 Colleague1)
Chapter03/mediator.go:64
↓ 1 callers
Method
SetColleagueC2
(c2 Colleague2)
Chapter03/mediator.go:68
↓ 1 callers
Method
SetFeatherLength
(length int)
Chapter01, and 02/pigeon/pigeon.go:15
↓ 1 callers
Method
SetModel
(s *Subject)
Chapter03/observer.go:46
↓ 1 callers
Method
SetState
(s string)
Chapter03/mediator.go:72
↓ 1 callers
Method
SetState
(newState string)
Chapter03/observer.go:19
↓ 1 callers
Method
Speak
()
Chapter01, and 02/interface.go:17
↓ 1 callers
Method
Step1
()
Chapter03/template.go:23
↓ 1 callers
Method
Step2
()
Chapter03/template.go:24
↓ 1 callers
Method
TemplateMethod
()
Chapter03/template.go:14
↓ 1 callers
Method
Vertical
(string)
Chapter03/creational_builder_factory.go:49
↓ 1 callers
Function
createTwoUsers
(db *gorm.DB)
Chapter08/gorm_simple.go:53
↓ 1 callers
Function
doSomeWork
(m *nsq.Message)
Chapter06/nsq_async_cons.go:72
↓ 1 callers
Function
emitter
dummy function for a source
Chapter06/fan_out.go:44
↓ 1 callers
Function
executeQuery
(query string, schema graphql.Schema)
Chapter07/graphql.go:66
↓ 1 callers
Function
fanIn
this combines the sources to a Fan-In channel
Chapter06/fan_in.go:19
↓ 1 callers
Function
fanInSelect
this combines the sources to a Fan-In channel
Chapter06/fan_in_select.go:10
↓ 1 callers
Function
fanOut
this combines the sources to a Fan-In channel
Chapter06/fan_out.go:24
↓ 1 callers
Method
generateHateosLinks
(url string)
Chapter07/hotels_gins.go:44
↓ 1 callers
Function
getHotel
(conn *redis.Client, id string)
Chapter08/redis.go:60
↓ 1 callers
Function
handleCreateBookingMessage
(consumer *cluster.Consumer)
Chapter10/seller_proxy.go:57
↓ 1 callers
Function
makeEndpoint
An endpoint represents a single RPC in the service interface
Chapter07/go_kit.go:54
↓ 1 callers
Function
makeThemSing
The symphony makeThemSing demonstraces how client code can work with interfaces and not worry about struct specifics
Chapter01, and 02/interface.go:84
↓ 1 callers
Function
persistReservation
(res *HotelReservationDTO)
Chapter10/models.go:64
↓ 1 callers
Function
randomId
()
Chapter07/graphql.go:153
↓ 1 callers
Function
requestor
(c chan<- Request)
Chapter06/req_reply.go:25
↓ 1 callers
Function
responder
(c <-chan Request)
Chapter06/req_reply.go:17
↓ 1 callers
Function
sendInvaliationMessageToPriceStore
(eid, rid uint)
Chapter10/models.go:113
↓ 1 callers
Function
sendMessageToPerformBooking
Send message to Booking service to enable the next stage in the workflow
Chapter10/main.go:79
↓ 1 callers
Function
top3LikedHotels
(conn *redis.Client)
Chapter08/redis.go:135
↓ 1 callers
Function
updateReservationStatus
(reservationDTO *HotelReservationDTO, status Status)
Chapter10/models.go:117
Method
Accept
(visitor Visitor)
Chapter03/visitor.go:13
Method
Accept
(visitor Visitor)
Chapter03/visitor.go:18
Method
Add
Add inserts an element to the end of the list
Chapter12/generics/list/template.go:23
next →
1–100 of 228, ranked by callers