MCPcopy Create free account

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

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

MethodRegister
(tags []string)
chapter11/discovery/exec_test.go:15
MethodRegister
Register adds our service to consul
chapter11/discovery/operations.go:6
FunctionRegisterGreeterServiceServer
(s *grpc.Server, srv GreeterServiceServer)
chapter7/grpc/greeter/greeter.pb.go:119
FunctionRegisterKeyValueServer
(s *grpc.Server, srv KeyValueServer)
chapter8/grpcjson/keyvalue/keyvalue.pb.go:156
MethodReset
()
chapter7/twirp/rpc/greeter/greeter.pb.go:29
MethodReset
()
chapter7/twirp/rpc/greeter/greeter.pb.go:74
MethodReset
()
chapter7/grpc/greeter/greeter.pb.go:42
MethodReset
()
chapter7/grpc/greeter/greeter.pb.go:65
MethodReset
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:43
MethodReset
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:66
MethodReset
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:83
MethodRestore
Restore needed to satisfy the raft FSM interface
chapter11/consensus/fsm.go:33
MethodRollback
()
chapter6/dbinterface/mocks_test.go:180
MethodRollback
()
chapter6/dbinterface/mocks_test.go:186
MethodServeHTTP
(resp http.ResponseWriter, req *http.Request)
chapter7/twirp/rpc/greeter/greeter.twirp.go:146
MethodService
(service, tag string)
chapter11/discovery/exec_test.go:22
MethodService
Service return a service
chapter11/discovery/operations.go:18
MethodServiceDescriptor
()
chapter7/twirp/rpc/greeter/greeter.twirp.go:322
MethodServiceDescriptor
ServiceDescriptor returns gzipped bytes describing the .proto file that this service was generated from. Once unzipped, the bytes can be unmarshalled
chapter7/twirp/rpc/greeter/greeter.twirp.go:360
MethodSet
(ctx context.Context, in *SetKeyValueRequest, opts ...grpc.CallOption)
chapter8/grpcjson/keyvalue/keyvalue.pb.go:131
MethodSet
(context.Context, *SetKeyValueRequest)
chapter8/grpcjson/keyvalue/keyvalue.pb.go:152
MethodSet
(ctx context.Context, key string, value interface{})
chapter13/firebase/client.go:37
MethodSet
Set will be used by the flag package
chapter2/flags/custom.go:25
MethodSet
Set mocks base method
chapter9/mockgen/internal/mocks.go:51
MethodSet
Set indicates an expected call of Set
chapter9/mockgen/internal/mocks.go:59
MethodSetToken
SetToken creates, truncates, then stores a token in a file
chapter7/oauthstore/filestorage.go:34
MethodSnapshot
Snapshot needed to satisfy the raft FSM interface
chapter11/consensus/fsm.go:28
MethodStmt
(_param0 *sql.Stmt)
chapter6/dbinterface/mocks_test.go:190
MethodStmt
(arg0 interface{})
chapter6/dbinterface/mocks_test.go:196
MethodString
()
chapter7/twirp/rpc/greeter/greeter.pb.go:75
MethodString
()
chapter7/grpc/greeter/greeter.pb.go:43
MethodString
()
chapter7/grpc/greeter/greeter.pb.go:66
MethodString
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:44
MethodString
()
chapter8/grpcjson/keyvalue/keyvalue.pb.go:67
MethodSuccesses
()
chapter12/asynckafka/producer/mocks_test.go:76
FunctionTestAPIClient_GetGoogle
(t *testing.T)
chapter7/rest/client_test.go:40
FunctionTestAPITransport_RoundTrip
(t *testing.T)
chapter7/rest/transport_test.go:8
FunctionTestAddItem
(t *testing.T)
chapter14/fastweb/items_test.go:8
FunctionTestAddItems
(t *testing.T)
chapter14/fastweb/handlers_test.go:26
FunctionTestAddMoviesFromText
(t *testing.T)
chapter1/csvformat/read_csv_test.go:47
FunctionTestApex
(t *testing.T)
chapter4/structured/apex_test.go:55
FunctionTestApplyMiddleware
(t *testing.T)
chapter8/middleware/middleware_test.go:11
FunctionTestAtomicCounter_Add
(t *testing.T)
chapter14/bench/atomic_test.go:5
FunctionTestAtomicCounter_Read
(t *testing.T)
chapter14/bench/atomic_test.go:29
FunctionTestAuthenticate
(t *testing.T)
chapter13/firebase/auth_test.go:8
FunctionTestBase64Example
(t *testing.T)
chapter3/encoding/base64_test.go:5
FunctionTestBase64ExampleEncoder
(t *testing.T)
chapter3/encoding/base64_test.go:21
FunctionTestBaseEncoding
(t *testing.T)
chapter3/nulls/base_test.go:5
FunctionTestBasicAuth
(t *testing.T)
chapter7/decorator/middleware_test.go:26
FunctionTestBasicErrors
(t *testing.T)
chapter4/basicerrors/basicerrors_test.go:5
FunctionTestBooks_ToCSV
(t *testing.T)
chapter1/csvformat/write_csv_test.go:9
FunctionTestBuffer
(t *testing.T)
chapter1/bytestrings/buffer_test.go:8
FunctionTestCapitalizer
(t *testing.T)
chapter1/filedirs/files_test.go:9
FunctionTestCapitalizerExample
(t *testing.T)
chapter1/filedirs/files_test.go:48
FunctionTestCardType
(t *testing.T)
chapter12/graphql/cards/type_test.go:5
FunctionTestCatchSig
(t *testing.T)
chapter2/signals/signals_test.go:9
FunctionTestCheckType
(t *testing.T)
chapter3/dataconv/interfaces_test.go:5
FunctionTestClient_AsyncGet
(t *testing.T)
chapter7/async/config_test.go:26
FunctionTestColorText_String
(t *testing.T)
chapter2/ansicolor/color_test.go:5
FunctionTestConfig
(t *testing.T)
chapter11/consensus/config_test.go:5
FunctionTestConfig_Client
(t *testing.T)
chapter7/oauthstore/config_test.go:61
FunctionTestConfig_Exchange
(t *testing.T)
chapter7/oauthstore/config_test.go:12
FunctionTestConfig_GetMessage
(t *testing.T)
chapter2/flags/flags_test.go:72
FunctionTestConfig_Setup
(t *testing.T)
chapter2/flags/flags_test.go:46
FunctionTestConfig_TokenSource
(t *testing.T)
chapter7/oauthstore/config_test.go:37
FunctionTestController_DoOps
(t *testing.T)
chapter7/client/store_test.go:5
FunctionTestController_GetHandler
(t *testing.T)
chapter8/grpcjson/http/get_test.go:13
FunctionTestController_GetValue
(t *testing.T)
chapter8/controllers/get_test.go:9
FunctionTestController_Process
(t *testing.T)
chapter8/validation/process_test.go:11
FunctionTestController_Set
(t *testing.T)
chapter9/mockgen/exec_test.go:11
FunctionTestController_SetHandler
(t *testing.T)
chapter8/grpcjson/http/set_test.go:12
FunctionTestController_SetValue
(t *testing.T)
chapter8/controllers/post_test.go:9
FunctionTestController_handle
(t *testing.T)
chapter13/appengine/controller_test.go:14
FunctionTestController_queryMessages
(t *testing.T)
chapter13/appengine/message_test.go:45
FunctionTestController_storeMessage
(t *testing.T)
chapter13/appengine/message_test.go:11
FunctionTestConvertPenniesToDollarString
(t *testing.T)
chapter3/currency/pennies_test.go:5
FunctionTestConvertStringDollarsToPennies
(t *testing.T)
chapter3/currency/dollars_test.go:5
FunctionTestCopy
(t *testing.T)
chapter1/interfaces/interfaces_test.go:9
FunctionTestCopyResponse
(t *testing.T)
chapter8/proxy/process_test.go:40
FunctionTestCountTheWays_Set
(t *testing.T)
chapter2/flags/flags_test.go:23
FunctionTestCountTheWays_String
(t *testing.T)
chapter2/flags/flags_test.go:5
FunctionTestCounterHandler
(t *testing.T)
chapter11/metrics/handler_test.go:9
FunctionTestCounter_Add
(t *testing.T)
chapter14/bench/lock_test.go:8
FunctionTestCounter_Read
(t *testing.T)
chapter14/bench/lock_test.go:34
FunctionTestCoverage
(t *testing.T)
chapter9/coverage/coverage_test.go:5
FunctionTestCrawl
(t *testing.T)
chapter10/waitgroup/process_test.go:8
FunctionTestCrawlError_Add
(t *testing.T)
chapter10/waitgroup/tasks_test.go:30
FunctionTestCrawlError_Error
(t *testing.T)
chapter10/waitgroup/tasks_test.go:54
FunctionTestCrawlError_Valid
(t *testing.T)
chapter10/waitgroup/tasks_test.go:79
FunctionTestCreate
(t *testing.T)
chapter6/database/create_test.go:11
FunctionTestCreate
(t *testing.T)
chapter6/dbinterface/create_test.go:11
FunctionTestCreateTemplate
(t *testing.T)
chapter1/templates/template_files_test.go:6
FunctionTestCustomError_Error
(t *testing.T)
chapter4/basicerrors/custom_test.go:5
FunctionTestCustomHandler_HandleLog
(t *testing.T)
chapter4/structured/apex_test.go:26
FunctionTestDeSerializeStructStrings
(t *testing.T)
chapter3/tags/deserialize_test.go:5
FunctionTestDebug
(t *testing.T)
chapter4/global/global_test.go:64
FunctionTestDecorate
(t *testing.T)
chapter7/decorator/decorator_test.go:38
FunctionTestDefaultGetGolang
(t *testing.T)
chapter7/client/exec_test.go:29
FunctionTestDispatch
(t *testing.T)
chapter10/pool/worker_test.go:8
FunctionTestDoOps
(t *testing.T)
chapter7/client/exec_test.go:8
← previousnext →401–500 of 795, ranked by callers