MCPcopy Create free account

hub / github.com/PacktPublishing/Go-Programming-Cookbook-Second-Edition / functions

Functions795 in github.com/PacktPublishing/Go-Programming-Cookbook-Second-Edition

↓ 1 callersMethodexample3
()
chapter9/tools/struct.go:12
↓ 1 callersFunctiongetCustomHTTPReqHeaders
getCustomHTTPReqHeaders retrieves a copy of any headers that are set in a context through the twirp.WithHTTPRequestHeaders function. If there are no h
chapter7/twirp/rpc/greeter/greeter.twirp.go:428
↓ 1 callersFunctiongetRaftSet
generate n raft sets to bootstrap the raft cluster
chapter11/consensus/raftset.go:27
↓ 1 callersMethodhandle
(w http.ResponseWriter, r *http.Request)
chapter13/appengine/controller.go:18
↓ 1 callersFunctionmarshalErrorToJSON
marshalErrorToJSON returns JSON from a twirp.Error, that can be used as HTTP error response body. If serialization fails, it will use a descriptive In
chapter7/twirp/rpc/greeter/greeter.twirp.go:470
↓ 1 callersFunctionprintHeaderInfo
extract header info and print it nicely
chapter5/mail/header.go:10
↓ 1 callersFunctionprocess
(c *websocket.Conn)
chapter5/websocket/client/process.go:13
↓ 1 callersFunctionsendMessage
(producer sarama.SyncProducer, value string)
chapter12/kafkaflow/producer/main.go:10
↓ 1 callersFunctionsendMessage
(producer sarama.SyncProducer, value string)
chapter12/synckafka/producer/main.go:10
↓ 1 callersMethodserveGreet
(ctx context.Context, resp http.ResponseWriter, req *http.Request)
chapter7/twirp/rpc/greeter/greeter.twirp.go:178
↓ 1 callersMethodserveGreetJSON
(ctx context.Context, resp http.ResponseWriter, req *http.Request)
chapter7/twirp/rpc/greeter/greeter.twirp.go:196
↓ 1 callersMethodserveGreetProtobuf
(ctx context.Context, resp http.ResponseWriter, req *http.Request)
chapter7/twirp/rpc/greeter/greeter.twirp.go:258
MethodAsyncClose
()
chapter12/asynckafka/producer/mocks_test.go:36
FunctionBenchmarkAtomicCounterAdd
(b *testing.B)
chapter14/bench/atomic_test.go:53
FunctionBenchmarkAtomicCounterAddRead
(b *testing.B)
chapter14/bench/atomic_test.go:67
FunctionBenchmarkAtomicCounterRead
(b *testing.B)
chapter14/bench/atomic_test.go:60
FunctionBenchmarkCounterAdd
(b *testing.B)
chapter14/bench/lock_test.go:60
FunctionBenchmarkCounterAddRead
(b *testing.B)
chapter14/bench/lock_test.go:74
FunctionBenchmarkCounterRead
(b *testing.B)
chapter14/bench/lock_test.go:67
FunctionBenchmark_concat
(b *testing.B)
chapter14/tuning/concat_test.go:25
FunctionBenchmark_join
(b *testing.B)
chapter14/tuning/join_test.go:25
FunctionCatcher
Catcher calls Panic
chapter4/panic/panic.go:20
MethodClose
()
chapter12/asynckafka/producer/mocks_test.go:40
MethodClose
()
chapter12/asynckafka/producer/mocks_test.go:46
MethodCommit
()
chapter6/dbinterface/mocks_test.go:112
MethodCommit
()
chapter6/dbinterface/mocks_test.go:118
MethodDescriptor
()
chapter7/twirp/rpc/greeter/greeter.pb.go:32
MethodDescriptor
()
chapter7/twirp/rpc/greeter/greeter.pb.go:77
MethodDescriptor
()
chapter7/grpc/greeter/greeter.pb.go:45
MethodDescriptor
()
chapter7/grpc/greeter/greeter.pb.go:68
MethodDescriptor
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:46
MethodDescriptor
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:69
MethodDescriptor
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:86
MethodDoStuff
(input string)
chapter9/mocking/mock_test.go:8
MethodEXPECT
()
chapter6/dbinterface/mocks_test.go:108
MethodErrors
()
chapter12/asynckafka/producer/mocks_test.go:56
FunctionExec
Exec initializes storage, then performs operations using the storage interface
chapter6/storage/exec.go:10
MethodExec
(_param0 string, _param1 ...interface{})
chapter6/dbinterface/mocks_test.go:33
MethodExec
(arg0 interface{}, arg1 ...interface{})
chapter6/dbinterface/mocks_test.go:44
MethodExec
(_param0 string, _param1 ...interface{})
chapter6/dbinterface/mocks_test.go:122
MethodExec
(arg0 interface{}, arg1 ...interface{})
chapter6/dbinterface/mocks_test.go:133
FunctionFeatureContext
(s *godog.Suite)
chapter9/bdd/handler_test.go:61
MethodGet
Get our in-memory value
chapter8/controllers/storage.go:16
MethodGet
(ctx context.Context, in *GetKeyValueRequest, opts ...grpc.CallOption)
chapter8/grpcjson/keyvalue/keyvalue.pb.go:140
MethodGet
(context.Context, *GetKeyValueRequest)
chapter8/grpcjson/keyvalue/keyvalue.pb.go:153
MethodGet
(ctx context.Context, key string)
chapter13/firebase/client.go:24
MethodGet
Get indicates an expected call of Get
chapter9/mockgen/internal/mocks.go:45
MethodGetByName
GetByName queries mongodb for an item with the correct name
chapter6/storage/mongointerface.go:11
MethodGetKey
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:71
MethodGetResponse
()
chapter7/twirp/rpc/greeter/greeter.pb.go:98
MethodGetResponse
()
chapter7/grpc/greeter/greeter.pb.go:70
MethodGetSuccess
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:88
MethodGetToken
GetToken retrieves a token from a file
chapter7/oauthstore/filestorage.go:19
FunctionGetUser
GetUser uses an initialized oauth2 client to get information about a user
chapter7/oauthcli/exec.go:12
MethodGetValue
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:55
MethodGreet
(ctx context.Context, in *GreetRequest)
chapter7/twirp/rpc/greeter/greeter.twirp.go:67
MethodGreet
(ctx context.Context, in *GreetRequest)
chapter7/twirp/rpc/greeter/greeter.twirp.go:107
MethodGreet
(ctx context.Context, in *GreetRequest, opts ...grpc.CallOption)
chapter7/grpc/greeter/greeter.pb.go:104
MethodGreet
(context.Context, *GreetRequest)
chapter7/grpc/greeter/greeter.pb.go:116
FunctionHandleRequest
HandleRequest will be called when the lambda function is invoked it takes an input and checks if it matches our super secret value
chapter13/logging/functions/secret/main.go:19
FunctionHandleRequest
HandleRequest will be called when the lambda function is invoked it takes a Message and returns a Response that contains a greeting this greeting cont
chapter13/lambda/functions/greeter2/main.go:26
FunctionHandleRequest
HandleRequest will be called when the lambda function is invoked it takes a Message and returns a Response that contains a greeting
chapter13/lambda/functions/greeter1/main.go:24
MethodInput
()
chapter12/asynckafka/producer/mocks_test.go:66
MethodMarshalJSON
()
chapter3/nulls/nullencoding.go:18
FunctionNewGreeterServiceClient
(cc *grpc.ClientConn)
chapter7/grpc/greeter/greeter.pb.go:100
FunctionNewGreeterServiceJSONClient
NewGreeterServiceJSONClient creates a JSON client that implements the GreeterService interface. It communicates using JSON and can be configured with
chapter7/twirp/rpc/greeter/greeter.twirp.go:90
FunctionNewGreeterServiceProtobufClient
NewGreeterServiceProtobufClient creates a Protobuf client that implements the GreeterService interface. It communicates using Protobuf and can be conf
chapter7/twirp/rpc/greeter/greeter.twirp.go:50
FunctionNewGreeterServiceServer
(svc GreeterService, hooks *twirp.ServerHooks)
chapter7/twirp/rpc/greeter/greeter.twirp.go:128
FunctionNewKeyValueClient
(cc *grpc.ClientConn)
chapter8/grpcjson/keyvalue/keyvalue.pb.go:127
FunctionNewMockGetSetter
NewMockGetSetter creates a new mock instance
chapter9/mockgen/internal/mocks.go:24
FunctionNewMockTransaction
(ctrl *gomock.Controller)
chapter6/dbinterface/mocks_test.go:102
FunctionNewPipeline
NewPipeline initializes the workers and connects them, it returns the input of the pipeline and the final output
chapter10/pipeline/pipeline.go:8
MethodPrepare
(_param0 string)
chapter6/dbinterface/mocks_test.go:49
MethodPrepare
(arg0 interface{})
chapter6/dbinterface/mocks_test.go:56
MethodPrepare
(_param0 string)
chapter6/dbinterface/mocks_test.go:138
MethodPrepare
(arg0 interface{})
chapter6/dbinterface/mocks_test.go:145
MethodPrepare
(query string)
chapter6/dbinterface/transaction.go:9
MethodProcess
Process loops over the input values and writes the upper case string version of them to Res
chapter12/kafkaflow/components.go:19
MethodProcess
Process Prints the current line received
chapter12/kafkaflow/components.go:32
MethodProtoMessage
()
chapter7/twirp/rpc/greeter/greeter.pb.go:31
MethodProtoMessage
()
chapter7/twirp/rpc/greeter/greeter.pb.go:76
MethodProtoMessage
()
chapter7/grpc/greeter/greeter.pb.go:44
MethodProtoMessage
()
chapter7/grpc/greeter/greeter.pb.go:67
MethodProtoMessage
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:45
MethodProtoMessage
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:68
MethodProtoMessage
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:85
MethodProtocGenTwirpVersion
()
chapter7/twirp/rpc/greeter/greeter.twirp.go:326
MethodProtocGenTwirpVersion
ProtocGenTwirpVersion is the semantic version string of the version of twirp used to generate this file.
chapter7/twirp/rpc/greeter/greeter.twirp.go:363
MethodPut
(string)
chapter8/controllers/storage.go:7
MethodPut
Put our in-memory value
chapter8/controllers/storage.go:21
MethodPut
Put adds an item to our mongo instance
chapter6/storage/mongointerface.go:22
MethodQuery
(_param0 string, _param1 ...interface{})
chapter6/dbinterface/mocks_test.go:60
MethodQuery
(arg0 interface{}, arg1 ...interface{})
chapter6/dbinterface/mocks_test.go:71
MethodQuery
(_param0 string, _param1 ...interface{})
chapter6/dbinterface/mocks_test.go:149
MethodQuery
(arg0 interface{}, arg1 ...interface{})
chapter6/dbinterface/mocks_test.go:160
MethodQueryRow
(_param0 string, _param1 ...interface{})
chapter6/dbinterface/mocks_test.go:76
MethodQueryRow
(arg0 interface{}, arg1 ...interface{})
chapter6/dbinterface/mocks_test.go:86
MethodQueryRow
(_param0 string, _param1 ...interface{})
chapter6/dbinterface/mocks_test.go:165
MethodQueryRow
(arg0 interface{}, arg1 ...interface{})
chapter6/dbinterface/mocks_test.go:175
MethodQueryRow
(query string, args ...interface{})
chapter6/dbinterface/transaction.go:11
← previousnext →301–400 of 795, ranked by callers