Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloud-native-go/examples
/ functions
Functions
493 in github.com/cloud-native-go/examples
⨍
Functions
493
◇
Types & classes
72
Function
TestDelete
(t *testing.T)
ch05/ch05_03/core_test.go:85
Function
TestDelete
(t *testing.T)
ch05/ch05_0X_dockerbuild/core_test.go:85
Function
TestFuture
TestFuture just runs slow functions, and makes sure that it returns the expected result after the expected amount of time.
ch04/future_test.go:29
Function
TestFutureCancel
TestFutureCancel
ch04/future_test.go:148
Function
TestFutureConcurrent
TestFutureConcurrent tests that the Future is thread-safe.
ch04/future_test.go:86
Function
TestFutureGetTwice
TestFutureGetTwice tests that subsequent calls to future.Result() immediately return the initial return values.
ch04/future_test.go:50
Function
TestFutureTimeout
TestFutureTimeout makes sure that the future will time out with an error if its context is canceled with a timeout
ch04/future_test.go:118
Function
TestGet
(t *testing.T)
ch08/grpc/keyvalue_server/core_test.go:55
Function
TestGet
(t *testing.T)
ch08/hexarch/core/core_test.go:57
Function
TestGet
(t *testing.T)
ch05/ch05_0X_docker-non-root/core_test.go:55
Function
TestGet
(t *testing.T)
ch05/ch05_06/core_test.go:55
Function
TestGet
(t *testing.T)
ch05/ch05_01/core_test.go:55
Function
TestGet
(t *testing.T)
ch05/ch05_05/core_test.go:55
Function
TestGet
(t *testing.T)
ch05/ch05_04/core_test.go:55
Function
TestGet
(t *testing.T)
ch05/ch05_07/core_test.go:55
Function
TestGet
(t *testing.T)
ch05/ch05_08/core_test.go:55
Function
TestGet
(t *testing.T)
ch05/ch05_0X_pems/core_test.go:55
Function
TestGet
(t *testing.T)
ch05/ch05_03/core_test.go:55
Function
TestGet
(t *testing.T)
ch05/ch05_0X_dockerbuild/core_test.go:55
Function
TestHandlers
(t *testing.T)
ch12/jwt/verify_test.go:30
Function
TestLastSequence
(t *testing.T)
ch08/hexarch/transact/filelogger_test.go:51
Function
TestLastSequence
(t *testing.T)
ch05/ch05_08/filelogger_test.go:49
Function
TestPut
(t *testing.T)
ch08/grpc/keyvalue_server/core_test.go:24
Function
TestPut
(t *testing.T)
ch08/hexarch/core/core_test.go:24
Function
TestPut
(t *testing.T)
ch05/ch05_0X_docker-non-root/core_test.go:24
Function
TestPut
(t *testing.T)
ch05/ch05_06/core_test.go:24
Function
TestPut
(t *testing.T)
ch05/ch05_01/core_test.go:24
Function
TestPut
(t *testing.T)
ch05/ch05_05/core_test.go:24
Function
TestPut
(t *testing.T)
ch05/ch05_04/core_test.go:24
Function
TestPut
(t *testing.T)
ch05/ch05_07/core_test.go:24
Function
TestPut
(t *testing.T)
ch05/ch05_08/core_test.go:24
Function
TestPut
(t *testing.T)
ch05/ch05_0X_pems/core_test.go:24
Function
TestPut
(t *testing.T)
ch05/ch05_03/core_test.go:24
Function
TestPut
(t *testing.T)
ch05/ch05_0X_dockerbuild/core_test.go:24
Function
TestRetry
(t *testing.T)
ch04/retry_test.go:39
Function
TestShardingDelete
TestShardingDelete tests the Delete method by adding and then removing five values.
ch04/sharding_test.go:110
Function
TestShardingGetShardIndex
TestShardingGetShardIndex tests getShardIndex. It's not a very good test: it just gets the indices of 5 keys and fails the test if there are any hash
ch04/sharding_test.go:26
Function
TestShardingKeys
TestShardingKeys tests the Keys method by adding 5 values to the map and checking that each one exists in the keys list exactly once.
ch04/sharding_test.go:73
Function
TestShardingSetAndGet
TestShardingSetAndGet tests Set and Get... by setting some values and getting them.
ch04/sharding_test.go:45
Function
TestThrottleCallFrequency5Seconds
TestThrottleCallFrequency5Seconds tests whether a Throttle with a max of 1 and a duration of 1 second called every 250ms for 5 seconds will be called
ch04/throttle_test.go:84
Function
TestThrottleContextTimeout
TestThrottleContextTimeout tests whether a Throttle will return an error when its context is canceled.
ch04/throttle_test.go:151
Function
TestThrottleMax1
TestThrottleMax1 tests whether a max of 1 call per duration is respected.
ch04/throttle_test.go:36
Function
TestThrottleMax10
TestThrottleMax10 tests whether a max of 10 calls per duration is respected.
ch04/throttle_test.go:59
Function
TestThrottleVariableRefill
TestThrottleVariableRefill
ch04/throttle_test.go:116
Function
TestTimeoutNo
(t *testing.T)
ch04/timeout_test.go:25
Function
TestTimeoutYes
(t *testing.T)
ch04/timeout_test.go:36
Function
TestVerifyInvalidHeader
(t *testing.T)
ch12/jwt/verify_test.go:73
Function
TestVerifyNoHeader
(t *testing.T)
ch12/jwt/verify_test.go:63
Function
TestWriteAppend
(t *testing.T)
ch08/hexarch/transact/filelogger_test.go:76
Function
TestWriteAppend
(t *testing.T)
ch05/ch05_0X_docker-non-root/transact_test.go:51
Function
TestWriteAppend
(t *testing.T)
ch05/ch05_06/transact_test.go:51
Function
TestWriteAppend
(t *testing.T)
ch05/ch05_05/transact_test.go:51
Function
TestWriteAppend
(t *testing.T)
ch05/ch05_07/transact_test.go:51
Function
TestWriteAppend
(t *testing.T)
ch05/ch05_08/filelogger_test.go:74
Function
TestWriteAppend
(t *testing.T)
ch05/ch05_0X_pems/transact_test.go:51
Function
TestWriteAppend
(t *testing.T)
ch05/ch05_0X_dockerbuild/transact_test.go:51
Function
TestWritePut
(t *testing.T)
ch08/hexarch/transact/filelogger_test.go:125
Function
TestWritePut
(t *testing.T)
ch05/ch05_0X_docker-non-root/transact_test.go:100
Function
TestWritePut
(t *testing.T)
ch05/ch05_06/transact_test.go:100
Function
TestWritePut
(t *testing.T)
ch05/ch05_05/transact_test.go:100
Function
TestWritePut
(t *testing.T)
ch05/ch05_07/transact_test.go:100
Function
TestWritePut
(t *testing.T)
ch05/ch05_08/filelogger_test.go:123
Function
TestWritePut
(t *testing.T)
ch05/ch05_0X_pems/transact_test.go:100
Function
TestWritePut
(t *testing.T)
ch05/ch05_0X_dockerbuild/transact_test.go:100
Method
Wait
()
ch08/hexarch/core/core.go:119
Method
Wait
()
ch08/hexarch/core/plug_transact.go:42
Method
Wait
()
ch08/hexarch/transact/pglogger.go:87
Method
Wait
()
ch08/hexarch/transact/testlogger.go:62
Method
Wait
()
ch05/ch05_08/pglogger.go:86
Method
WriteDelete
(key string)
ch08/hexarch/core/core.go:114
Method
WriteDelete
(key string)
ch08/hexarch/core/plug_transact.go:35
Method
WriteDelete
(key string)
ch08/hexarch/transact/pglogger.go:49
Method
WriteDelete
(key string)
ch08/hexarch/transact/filelogger.go:43
Method
WriteDelete
(key string)
ch08/hexarch/transact/testlogger.go:34
Method
WriteDelete
(key string)
ch05/ch05_0X_docker-non-root/transact.go:55
Method
WriteDelete
(key string)
ch05/ch05_06/transact.go:55
Method
WriteDelete
(key string)
ch05/ch05_05/transact.go:55
Method
WriteDelete
(key string)
ch05/ch05_07/transact.go:55
Method
WriteDelete
(key string)
ch05/ch05_08/pglogger.go:47
Method
WriteDelete
(key string)
ch05/ch05_08/filelogger.go:40
Method
WriteDelete
(key string)
ch05/ch05_0X_pems/transact.go:55
Method
WriteDelete
(key string)
ch05/ch05_0X_dockerbuild/transact.go:55
Method
WritePut
(key, value string)
ch08/hexarch/core/core.go:115
Method
WritePut
(key, value string)
ch08/hexarch/core/plug_transact.go:36
Method
WritePut
(key, value string)
ch08/hexarch/transact/pglogger.go:43
Method
WritePut
(key, value string)
ch08/hexarch/transact/testlogger.go:30
Method
WritePut
(key, value string)
ch05/ch05_08/pglogger.go:42
Function
_KeyValue_Delete_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
ch08/grpc/keyvalue/keyvalue_grpc.pb.go:142
Function
_KeyValue_Get_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
ch08/grpc/keyvalue/keyvalue_grpc.pb.go:106
Function
_KeyValue_Put_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
ch08/grpc/keyvalue/keyvalue_grpc.pb.go:124
Function
doCleanup
()
ch09/graceful-shutdown/main.go:68
Function
fibHandler
(w http.ResponseWriter, req *http.Request)
ch11/otel-metric/main.go:87
Function
fibHandler
(w http.ResponseWriter, req *http.Request)
ch11/otel-trace/main.go:113
Function
flagsFunc
(cmd *cobra.Command, args []string)
ch10/cobra/flags.go:36
Function
flagsFunc
(cmd *cobra.Command, args []string)
ch10/flags-cobra/main.go:50
Function
getHostname
(ctx context.Context)
ch09/tokenbucketv2/main.go:31
Function
healthCompoundHandler
(w http.ResponseWriter, r *http.Request)
ch09/http-healthz/compound.go:33
Function
healthDeepHandler
(w http.ResponseWriter, r *http.Request)
ch09/http-healthz/deep.go:27
Function
healthLivenessHandler
(w http.ResponseWriter, r *http.Request)
ch09/http-healthz/liveness.go:21
Function
healthShallowHandler
(w http.ResponseWriter, r *http.Request)
ch09/http-healthz/shallow.go:25
← previous
next →
301–400 of 493, ranked by callers