MCPcopy
hub / github.com/IBM/sarama / Run

Method Run

examples/http_server/http_server.go:108–116  ·  view source on GitHub ↗
(addr string)

Source from the content-addressed store, hash-verified

106}
107
108func (s *Server) Run(addr string) error {
109 httpServer := &http.Server{
110 Addr: addr,
111 Handler: s.Handler(),
112 }
113
114 log.Printf("Listening for requests on %s...\n", addr)
115 return httpServer.ListenAndServe()
116}
117
118func (s *Server) collectQueryStringData() http.Handler {
119 return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Callers 15

mainFunction · 0.95
partitionAndAssertFunction · 0.80
TestMurmur2Function · 0.80
TestMurmur2PartitionerFunction · 0.80
testProducingMessagesFunction · 0.80
testMainFunction · 0.80
startDockerTestBrokerFunction · 0.80
stopDockerTestBrokerFunction · 0.80
TestFetchRequestFunction · 0.80

Calls 2

HandlerMethod · 0.95
PrintfMethod · 0.65

Tested by 15

partitionAndAssertFunction · 0.64
TestMurmur2Function · 0.64
TestMurmur2PartitionerFunction · 0.64
testProducingMessagesFunction · 0.64
testMainFunction · 0.64
startDockerTestBrokerFunction · 0.64
stopDockerTestBrokerFunction · 0.64
TestFetchRequestFunction · 0.64