MCPcopy Create free account

hub / github.com/cloud-native-go/examples / functions

Functions493 in github.com/cloud-native-go/examples

FunctionTestDelete
(t *testing.T)
ch05/ch05_03/core_test.go:85
FunctionTestDelete
(t *testing.T)
ch05/ch05_0X_dockerbuild/core_test.go:85
FunctionTestFuture
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
FunctionTestFutureCancel
TestFutureCancel
ch04/future_test.go:148
FunctionTestFutureConcurrent
TestFutureConcurrent tests that the Future is thread-safe.
ch04/future_test.go:86
FunctionTestFutureGetTwice
TestFutureGetTwice tests that subsequent calls to future.Result() immediately return the initial return values.
ch04/future_test.go:50
FunctionTestFutureTimeout
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
FunctionTestGet
(t *testing.T)
ch08/grpc/keyvalue_server/core_test.go:55
FunctionTestGet
(t *testing.T)
ch08/hexarch/core/core_test.go:57
FunctionTestGet
(t *testing.T)
ch05/ch05_0X_docker-non-root/core_test.go:55
FunctionTestGet
(t *testing.T)
ch05/ch05_06/core_test.go:55
FunctionTestGet
(t *testing.T)
ch05/ch05_01/core_test.go:55
FunctionTestGet
(t *testing.T)
ch05/ch05_05/core_test.go:55
FunctionTestGet
(t *testing.T)
ch05/ch05_04/core_test.go:55
FunctionTestGet
(t *testing.T)
ch05/ch05_07/core_test.go:55
FunctionTestGet
(t *testing.T)
ch05/ch05_08/core_test.go:55
FunctionTestGet
(t *testing.T)
ch05/ch05_0X_pems/core_test.go:55
FunctionTestGet
(t *testing.T)
ch05/ch05_03/core_test.go:55
FunctionTestGet
(t *testing.T)
ch05/ch05_0X_dockerbuild/core_test.go:55
FunctionTestHandlers
(t *testing.T)
ch12/jwt/verify_test.go:30
FunctionTestLastSequence
(t *testing.T)
ch08/hexarch/transact/filelogger_test.go:51
FunctionTestLastSequence
(t *testing.T)
ch05/ch05_08/filelogger_test.go:49
FunctionTestPut
(t *testing.T)
ch08/grpc/keyvalue_server/core_test.go:24
FunctionTestPut
(t *testing.T)
ch08/hexarch/core/core_test.go:24
FunctionTestPut
(t *testing.T)
ch05/ch05_0X_docker-non-root/core_test.go:24
FunctionTestPut
(t *testing.T)
ch05/ch05_06/core_test.go:24
FunctionTestPut
(t *testing.T)
ch05/ch05_01/core_test.go:24
FunctionTestPut
(t *testing.T)
ch05/ch05_05/core_test.go:24
FunctionTestPut
(t *testing.T)
ch05/ch05_04/core_test.go:24
FunctionTestPut
(t *testing.T)
ch05/ch05_07/core_test.go:24
FunctionTestPut
(t *testing.T)
ch05/ch05_08/core_test.go:24
FunctionTestPut
(t *testing.T)
ch05/ch05_0X_pems/core_test.go:24
FunctionTestPut
(t *testing.T)
ch05/ch05_03/core_test.go:24
FunctionTestPut
(t *testing.T)
ch05/ch05_0X_dockerbuild/core_test.go:24
FunctionTestRetry
(t *testing.T)
ch04/retry_test.go:39
FunctionTestShardingDelete
TestShardingDelete tests the Delete method by adding and then removing five values.
ch04/sharding_test.go:110
FunctionTestShardingGetShardIndex
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
FunctionTestShardingKeys
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
FunctionTestShardingSetAndGet
TestShardingSetAndGet tests Set and Get... by setting some values and getting them.
ch04/sharding_test.go:45
FunctionTestThrottleCallFrequency5Seconds
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
FunctionTestThrottleContextTimeout
TestThrottleContextTimeout tests whether a Throttle will return an error when its context is canceled.
ch04/throttle_test.go:151
FunctionTestThrottleMax1
TestThrottleMax1 tests whether a max of 1 call per duration is respected.
ch04/throttle_test.go:36
FunctionTestThrottleMax10
TestThrottleMax10 tests whether a max of 10 calls per duration is respected.
ch04/throttle_test.go:59
FunctionTestThrottleVariableRefill
TestThrottleVariableRefill
ch04/throttle_test.go:116
FunctionTestTimeoutNo
(t *testing.T)
ch04/timeout_test.go:25
FunctionTestTimeoutYes
(t *testing.T)
ch04/timeout_test.go:36
FunctionTestVerifyInvalidHeader
(t *testing.T)
ch12/jwt/verify_test.go:73
FunctionTestVerifyNoHeader
(t *testing.T)
ch12/jwt/verify_test.go:63
FunctionTestWriteAppend
(t *testing.T)
ch08/hexarch/transact/filelogger_test.go:76
FunctionTestWriteAppend
(t *testing.T)
ch05/ch05_0X_docker-non-root/transact_test.go:51
FunctionTestWriteAppend
(t *testing.T)
ch05/ch05_06/transact_test.go:51
FunctionTestWriteAppend
(t *testing.T)
ch05/ch05_05/transact_test.go:51
FunctionTestWriteAppend
(t *testing.T)
ch05/ch05_07/transact_test.go:51
FunctionTestWriteAppend
(t *testing.T)
ch05/ch05_08/filelogger_test.go:74
FunctionTestWriteAppend
(t *testing.T)
ch05/ch05_0X_pems/transact_test.go:51
FunctionTestWriteAppend
(t *testing.T)
ch05/ch05_0X_dockerbuild/transact_test.go:51
FunctionTestWritePut
(t *testing.T)
ch08/hexarch/transact/filelogger_test.go:125
FunctionTestWritePut
(t *testing.T)
ch05/ch05_0X_docker-non-root/transact_test.go:100
FunctionTestWritePut
(t *testing.T)
ch05/ch05_06/transact_test.go:100
FunctionTestWritePut
(t *testing.T)
ch05/ch05_05/transact_test.go:100
FunctionTestWritePut
(t *testing.T)
ch05/ch05_07/transact_test.go:100
FunctionTestWritePut
(t *testing.T)
ch05/ch05_08/filelogger_test.go:123
FunctionTestWritePut
(t *testing.T)
ch05/ch05_0X_pems/transact_test.go:100
FunctionTestWritePut
(t *testing.T)
ch05/ch05_0X_dockerbuild/transact_test.go:100
MethodWait
()
ch08/hexarch/core/core.go:119
MethodWait
()
ch08/hexarch/core/plug_transact.go:42
MethodWait
()
ch08/hexarch/transact/pglogger.go:87
MethodWait
()
ch08/hexarch/transact/testlogger.go:62
MethodWait
()
ch05/ch05_08/pglogger.go:86
MethodWriteDelete
(key string)
ch08/hexarch/core/core.go:114
MethodWriteDelete
(key string)
ch08/hexarch/core/plug_transact.go:35
MethodWriteDelete
(key string)
ch08/hexarch/transact/pglogger.go:49
MethodWriteDelete
(key string)
ch08/hexarch/transact/filelogger.go:43
MethodWriteDelete
(key string)
ch08/hexarch/transact/testlogger.go:34
MethodWriteDelete
(key string)
ch05/ch05_0X_docker-non-root/transact.go:55
MethodWriteDelete
(key string)
ch05/ch05_06/transact.go:55
MethodWriteDelete
(key string)
ch05/ch05_05/transact.go:55
MethodWriteDelete
(key string)
ch05/ch05_07/transact.go:55
MethodWriteDelete
(key string)
ch05/ch05_08/pglogger.go:47
MethodWriteDelete
(key string)
ch05/ch05_08/filelogger.go:40
MethodWriteDelete
(key string)
ch05/ch05_0X_pems/transact.go:55
MethodWriteDelete
(key string)
ch05/ch05_0X_dockerbuild/transact.go:55
MethodWritePut
(key, value string)
ch08/hexarch/core/core.go:115
MethodWritePut
(key, value string)
ch08/hexarch/core/plug_transact.go:36
MethodWritePut
(key, value string)
ch08/hexarch/transact/pglogger.go:43
MethodWritePut
(key, value string)
ch08/hexarch/transact/testlogger.go:30
MethodWritePut
(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
FunctiondoCleanup
()
ch09/graceful-shutdown/main.go:68
FunctionfibHandler
(w http.ResponseWriter, req *http.Request)
ch11/otel-metric/main.go:87
FunctionfibHandler
(w http.ResponseWriter, req *http.Request)
ch11/otel-trace/main.go:113
FunctionflagsFunc
(cmd *cobra.Command, args []string)
ch10/cobra/flags.go:36
FunctionflagsFunc
(cmd *cobra.Command, args []string)
ch10/flags-cobra/main.go:50
FunctiongetHostname
(ctx context.Context)
ch09/tokenbucketv2/main.go:31
FunctionhealthCompoundHandler
(w http.ResponseWriter, r *http.Request)
ch09/http-healthz/compound.go:33
FunctionhealthDeepHandler
(w http.ResponseWriter, r *http.Request)
ch09/http-healthz/deep.go:27
FunctionhealthLivenessHandler
(w http.ResponseWriter, r *http.Request)
ch09/http-healthz/liveness.go:21
FunctionhealthShallowHandler
(w http.ResponseWriter, r *http.Request)
ch09/http-healthz/shallow.go:25
← previousnext →301–400 of 493, ranked by callers