MCPcopy Create free account

hub / github.com/PacktPublishing/Hands-On-Software-Engineering-with-Golang / functions

Functions1,360 in github.com/PacktPublishing/Hands-On-Software-Engineering-with-Golang

↓ 2 callersFunctionBroadcast
Broadcast returns a StageRunner that passes a copy of each incoming payload to all specified processors and emits their outputs to the next stage.
Chapter07/pipeline/stage.go:172
↓ 2 callersFunctionChallengeUser
ChallengeUser requests a challenge from c and prompts the user for an answer using p. If the user's answer matches the challenge then ChallengeUser re
Chapter04/captcha/captcha.go:23
↓ 2 callersMethodClient
Client returns an http.Client instance that automatically uses the OAuth token obtained from this authentication attempt when performing outgoing http
Chapter09/oauthflow/auth/auth.go:33
↓ 2 callersMethodClose
Close releases any resources allocated by this PageRank calculator instance.
Chapter08/pagerank/calculator.go:43
↓ 2 callersMethodCompleteJob
CompleteJob is responsible for persisting the locally computed values after a successful execution of a distributed graph algorithm.
Chapter12/dbspgraph/job/runner.go:14
↓ 2 callersMethodCrawl
Crawl iterates linkIt and sends each link through the crawler pipeline returning the total count of links that went through the pipeline. Calls to Cra
Chapter07/crawler/crawler.go:108
↓ 2 callersMethodDiscardMessages
Flush drops all pending messages from the queue.
Chapter08/bspgraph/message/message.go:21
↓ 2 callersMethodDstID
DstID returns the vertex ID that corresponds to this edge's target endpoint.
Chapter08/bspgraph/graph.go:59
↓ 2 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use
Chapter10/linksrus/service/pagerank/mocks/mocks.go:34
↓ 2 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use
Chapter10/linksrus/service/pagerank/mocks/mocks.go:87
↓ 2 callersMethodEdges
(fromID, toID uuid.UUID, updatedBefore time.Time)
Chapter10/linksrus/main.go:155
↓ 2 callersMethodEdges
(fromID, toID uuid.UUID, updatedBefore time.Time)
Chapter10/linksrus/service/pagerank/pagerank.go:26
↓ 2 callersFunctionFixedWorkerPool
FixedWorkerPool returns a StageRunner that spins up a pool containing numWorkers to process incoming payloads in parallel and emit their outputs to th
Chapter07/pipeline/stage.go:65
↓ 2 callersMethodGetDocCount
()
Chapter09/linksrus/textindexerapi/proto/api.pb.go:242
↓ 2 callersMethodGetPayload
()
Chapter12/dbspgraph/proto/api.pb.go:133
↓ 2 callersMethodGetResult
()
Chapter09/linksrus/textindexerapi/proto/api.pb.go:235
↓ 2 callersMethodGetStep
()
Chapter12/dbspgraph/proto/api.pb.go:140
↓ 2 callersMethodHighlight
Highlight the configured search terms in the provided sentence by wrapping them in <em> tags.
Chapter10/linksrus/service/frontend/highlighter.go:35
↓ 2 callersMethodLinks
Links returns an iterator for the set of links whose IDs belong to the [fromID, toID) range and were retrieved before the provided timestamp.
Chapter06/linkgraph/graph/graph.go:77
↓ 2 callersMethodMatchSummary
(content string)
Chapter10/linksrus/service/frontend/summarizer.go:36
↓ 2 callersMethodMessages
Messages returns an iterator for accessing the queued messages.
Chapter08/bspgraph/message/message.go:24
↓ 2 callersMethodName
Name returns the service name.
Chapter10/linksrus/service/group.go:14
↓ 2 callersFunctionNewAggregator
NewAggregator returns a new Aggregator instance that queries the providers at providerAddrs and returns back the results.
Chapter11/tracing/service/aggregator.go:24
↓ 2 callersFunctionNewDetector
NewDetector returns a new Detector instance which is initialized with the default list of IPv4/IPv6 CIDR blocks that correspond to private networks ac
Chapter07/crawler/privnet/detector.go:34
↓ 2 callersFunctionNewInMemoryBleveIndexer
NewInMemoryBleveIndexer creates a text indexer that uses an in-memory bleve instance for indexing documents.
Chapter06/textindexer/store/memory/bleve.go:37
↓ 2 callersFunctionNewInMemoryGraph
NewInMemoryGraph creates a new in-memory link graph.
Chapter06/linkgraph/store/memory/memory.go:31
↓ 2 callersFunctionNewJobQueueClient
(cc *grpc.ClientConn)
Chapter12/dbspgraph/proto/api.pb.go:526
↓ 2 callersFunctionNewLinkGraphServer
NewLinkGraphServer returns a new server instance that uses the provided graph as its backing store.
Chapter09/linksrus/linkgraphapi/server.go:24
↓ 2 callersFunctionNewMasterNode
NewMasterNode creates a new master node for the PageRank calculator service.
Chapter12/linksrus/pagerank/service/master.go:76
↓ 2 callersFunctionNewMockGraphAPI
NewMockGraphAPI creates a new mock instance
Chapter10/linksrus/service/crawler/mocks/mocks.go:28
↓ 2 callersFunctionNewMockIndexAPI
NewMockIndexAPI creates a new mock instance
Chapter10/linksrus/service/crawler/mocks/mocks.go:108
↓ 2 callersFunctionNewMockRunner
NewMockRunner creates a new mock instance
Chapter12/dbspgraph/mocks/mocks_job.go:26
↓ 2 callersFunctionNewMockSerializer
NewMockSerializer creates a new mock instance
Chapter12/dbspgraph/mocks/mocks_serializer.go:25
↓ 2 callersFunctionNewOAuthFlow
NewOAuthFlow returns a Flow instance that can be used to execute a three-legged OAuth flow using the service provider from the specified configuration
Chapter09/oauthflow/auth/auth.go:65
↓ 2 callersFunctionNewQuoteServiceClient
(cc *grpc.ClientConn)
Chapter11/tracing/proto/quote.pb.go:195
↓ 2 callersFunctionNewRetryingDialer
NewRetryingDialer returns a new dialer that wraps dialFunc with a retry layer that waits between attempts using an exponential back-off algorithm. Dia
Chapter04/dialer/retrying_dialer.go:38
↓ 2 callersFunctionNewTextIndexerServer
NewTextIndexerServer creates a new server instance that uses the provided indexer as its backing store.
Chapter09/linksrus/textindexerapi/server.go:24
↓ 2 callersFunctionNewWorkerNode
NewWorkerNode creates a new worker node for the PageRank calculator service.
Chapter12/linksrus/pagerank/service/worker.go:90
↓ 2 callersMethodRecvFromMasterChan
RecvFromMasterChan returns a channel for reading incoming payloads from the master.
Chapter12/dbspgraph/stream.go:201
↓ 2 callersMethodRecvMsg
RecvMsg mocks base method
Chapter12/dbspgraph/mocks/mocks_api.go:68
↓ 2 callersMethodRecvMsg
RecvMsg mocks base method
Chapter09/linksrus/textindexerapi/mocks/mock.go:182
↓ 2 callersFunctionRegisterJobQueueServer
(s *grpc.Server, srv JobQueueServer)
Chapter12/dbspgraph/proto/api.pb.go:578
↓ 2 callersFunctionRegisterLinkGraphServer
(s *grpc.Server, srv LinkGraphServer)
Chapter09/linksrus/linkgraphapi/proto/api.pb.go:452
↓ 2 callersFunctionRegisterTextIndexerServer
(s *grpc.Server, srv TextIndexerServer)
Chapter09/linksrus/textindexerapi/proto/api.pb.go:465
↓ 2 callersMethodReset
Reset the state of the graph by removing any existing vertices or aggregators and resetting the superstep counter.
Chapter08/bspgraph/graph.go:116
↓ 2 callersFunctionRoundtripTime
RoundtripTime uses the ping command to measure the RTT to host.
Chapter04/pinger/pinger.go:16
↓ 2 callersMethodRun
Run implements service.Service
Chapter10/linksrus/service/pagerank/pagerank.go:116
↓ 2 callersMethodSend
(*WorkerPayload)
Chapter12/dbspgraph/proto/api.pb.go:540
↓ 2 callersMethodSend
(*Link)
Chapter09/linksrus/linkgraphapi/proto/api.pb.go:501
↓ 2 callersMethodSendMsg
SendMsg mocks base method
Chapter12/dbspgraph/mocks/mocks_api.go:110
↓ 2 callersMethodSendToWorkerChan
SendToWorkerChan returns a channel for sending master payloads to the worker.
Chapter12/dbspgraph/stream.go:102
↓ 2 callersMethodSerialize
Serialize encodes the given value into an any.Any protobuf message.
Chapter12/dbspgraph/config.go:20
↓ 2 callersMethodServe
Serve listens for incoming connections on a random open port until ctx expires. It returns back the address that the server is listening on.
Chapter11/tracing/service/aggregator.go:68
↓ 2 callersMethodSetDisconnectCallback
SetDisconnectCallback registers a callback which will be invoked when the remote worker disconnects.
Chapter12/dbspgraph/stream.go:108
↓ 2 callersMethodSetExecutorFactory
SetExecutorFactory configures the calculator to use the a custom executor factory when AssignColors is invoked.
Chapter08/color/color.go:46
↓ 2 callersMethodSetGraph
SetGraph configures the test-suite to run all tests against g.
Chapter06/linkgraph/graph/graphtest/suite.go:23
↓ 2 callersMethodSetIndexer
SetIndexer configures the test-suite to run all tests against idx.
Chapter06/textindexer/index/indextest/suite.go:20
↓ 2 callersMethodStartJob
StartJob initializes the underlying bspgraph.Graph instance and invokes the provided ExecutorFactory to create an executor for the graph supersteps.
Chapter12/dbspgraph/job/runner.go:10
↓ 2 callersMethodUpdateScore
(linkID uuid.UUID, score float64)
Chapter10/linksrus/main.go:182
↓ 2 callersMethodUpsertLink
(link *graph.Link)
Chapter10/linksrus/service/crawler/crawler.go:26
↓ 2 callersFunctionassertExtractedContent
(c *gc.C, content, expTitle, expText string)
Chapter07/crawler/text_extractor_test.go:33
↓ 2 callersFunctionassertNoColorConflictWithNeighbors
(c *gc.C, adjMap map[string][]string, colorMap map[string]int)
Chapter08/color/color_test.go:116
↓ 2 callersMethodcallService
callService performs an RPC and decodes the response into res.
Chapter04/retail/retail.go:79
↓ 2 callersFunctioncopyDoc
(d *index.Document)
Chapter06/textindexer/store/memory/bleve.go:144
↓ 2 callersFunctiondoServe
(ctx context.Context, srv proto.QuoteServiceServer, tracer opentracing.Tracer)
Chapter11/tracing/service/provider.go:45
↓ 2 callersFunctiondrainAndClose
(r io.ReadCloser)
Chapter04/retail/retail.go:118
↓ 2 callersFunctionensureIndex
(es *elasticsearch.Client)
Chapter06/textindexer/store/es/es.go:246
↓ 2 callersFunctionexpBackoff
expBackoff returns the time we need to wait after the i_th attempt. It is calculated using the following formula: min(pow(4ms, attempt) + jitter, max
Chapter04/dialer/retrying_dialer.go:75
↓ 2 callersMethodfindByID
findByID looks up a document by its link UUID expressed as a string.
Chapter06/textindexer/store/memory/bleve.go:88
↓ 2 callersMethodflushDB
(c *gc.C)
Chapter06/linkgraph/store/cdb/cdb_test.go:44
↓ 2 callersMethoditeratePartitionedEdges
(c *gc.C, numPartitions int)
Chapter06/linkgraph/graph/graphtest/suite.go:394
↓ 2 callersMethoditeratePartitionedLinks
(c *gc.C, numPartitions int)
Chapter06/linkgraph/graph/graphtest/suite.go:202
↓ 2 callersFunctionmakeBleveDoc
(d *index.Document)
Chapter06/textindexer/store/memory/bleve.go:150
↓ 2 callersFunctionmakeOAuthServerHandler
(c *gc.C, nonceMutatorFn func(string) string)
Chapter09/oauthflow/auth/auth_test.go:108
↓ 2 callersFunctionmapEsDoc
(d *esDoc)
Chapter06/textindexer/store/es/es.go:305
↓ 2 callersFunctionmustCreateTestServer
(c *gc.C)
Chapter07/crawler/crawler_integration_test.go:128
↓ 2 callersFunctionnewGraphUpdater
(updater Graph)
Chapter07/crawler/graph_updater.go:15
↓ 2 callersFunctionnewLinkExtractor
(netDetector PrivateNetworkDetector)
Chapter07/crawler/link_extractor.go:22
↓ 2 callersFunctionnewLinkFetcher
(urlGetter URLGetter, netDetector PrivateNetworkDetector)
Chapter07/crawler/link_fetcher.go:19
↓ 2 callersFunctionnewMatchHighlighter
newMatchHighlighter returns a matchHighlighter instance that can highlight the specified searchTerms in blocks of text.
Chapter10/linksrus/service/frontend/highlighter.go:17
↓ 2 callersFunctionnewMatchSummarizer
(searchTerms string, maxSummaryLen int)
Chapter10/linksrus/service/frontend/summarizer.go:29
↓ 2 callersFunctionnewTextExtractor
()
Chapter07/crawler/text_extractor.go:23
↓ 2 callersFunctionnewTextIndexer
(indexer Indexer)
Chapter07/crawler/text_indexer.go:15
↓ 2 callersFunctionnewWorkerPool
newWorkerPool creates a new worker pool instance.
Chapter12/dbspgraph/worker_pool.go:26
↓ 2 callersMethodnotifyOfPoolMembershipChange
()
Chapter12/dbspgraph/worker_pool.go:85
↓ 2 callersMethodpartitionRange
(c *gc.C, partition, numPartitions int)
Chapter06/linkgraph/graph/graphtest/suite.go:490
↓ 2 callersFunctionresidualOutputAccName
residualOutputAccName returns the name of the accumulator where the residual PageRank scores for the specified superstep are to be written to.
Chapter08/pagerank/calculator.go:118
↓ 2 callersMethodrun
(ctx context.Context, maxSteps int)
Chapter08/bspgraph/executor.go:83
↓ 2 callersFunctionscanRune
(data []byte)
Chapter10/linksrus/service/frontend/summarizer.go:159
↓ 2 callersFunctionserializeAggregatorValues
(g *bspgraph.Graph, serializer Serializer, serializeDeltas bool)
Chapter12/dbspgraph/executor.go:224
↓ 2 callersMethodsetupGraph
(c *gc.C, adjMap map[string][]string, preColoredVerts map[string]int)
Chapter08/color/color_test.go:81
↓ 2 callersFunctionspinUpTestServer
(t *testing.T, res map[string]interface{})
Chapter04/retail/retail_test.go:30
↓ 2 callersMethodtestConcurrentAccess
(a aggregator, values []interface{})
Chapter08/bspgraph/aggregator/accumulator_test.go:57
↓ 2 callersFunctiontimeToProto
(t time.Time)
Chapter09/linksrus/textindexerapi/server.go:116
↓ 2 callersFunctiontryEmitError
(errCh chan<- error, err error)
Chapter08/bspgraph/graph.go:301
↓ 2 callersFunctionvatInclusivePrice
vatInclusivePrice applies a vat rate to a price and returns the result.
Chapter04/retail/retail.go:74
↓ 1 callersMethodAddToDepList
(id string)
Chapter04/dependency/dependency.go:105
↓ 1 callersMethodAddToUncheckedList
(id string)
Chapter04/dependency/dependency.go:110
↓ 1 callersMethodAddUndirectedEdge
AddUndirectedEdge creates an un-directed edge from srcID to dstID.
Chapter08/color/color.go:61
↓ 1 callersMethodAggregate
(interface{})
Chapter08/bspgraph/aggregator/accumulator_test.go:16
← previousnext →201–300 of 1,360, ranked by callers