MCPcopy Create free account

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

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

↓ 3 callersMethodgetShard
getShard accepts a key and returns a pointer to its corresponding Shard.
ch04/sharding.go:56
↓ 3 callersFunctionverifyHandler
(w http.ResponseWriter, r *http.Request)
ch12/jwt/verify.go:26
↓ 2 callersFunctionBreaker
(circuit Circuit, threshold int)
ch04/circuitbreaker.go:28
↓ 2 callersFunctionDelete
(key string)
ch05/ch05_03/core.go:25
↓ 2 callersMethodDelete
(key string)
ch08/hexarch/core/core.go:40
↓ 2 callersFunctionGet
(key string)
ch05/ch05_01/core.go:31
↓ 2 callersFunctionGet
(key string)
ch05/ch05_04/core.go:39
↓ 2 callersMethodGet
(key string)
ch08/hexarch/core/core.go:50
↓ 2 callersMethodLastSequence
()
ch05/ch05_08/logger.go:39
↓ 2 callersFunctionPut
(key string, value string)
ch08/grpc/keyvalue_server/core.go:51
↓ 2 callersFunctionPut
(key string, value string)
ch05/ch05_03/core.go:41
↓ 2 callersMethodPut
(key string, value string)
ch08/hexarch/core/core.go:62
↓ 2 callersMethodStart
(kv *core.KeyValueStore)
ch08/hexarch/frontend/frontend.go:24
↓ 2 callersFunctionTimeout
(f TimeoutFunction)
ch04/timeout.go:25
↓ 2 callersFunctionauthenticateHandler
(w http.ResponseWriter, r *http.Request)
ch12/jwt/authenticate.go:24
↓ 2 callersFunctionbuildToken
(username string)
ch12/jwt/token.go:31
↓ 2 callersFunctiondecryptAES
decryptAES decrypts ciphertext using the given key with AES-GCM.
ch12/symmetric/main.go:58
↓ 2 callersFunctiondecryptRSA
decryptRSA decrypts the given ciphertext with the RSA private key.
ch12/asymmetric/main.go:71
↓ 2 callersFunctionencryptAES
encryptAES encrypts plaintext using the given key with AES-GCM.
ch12/symmetric/main.go:29
↓ 2 callersFunctionencryptRSA
encryptRSA encrypts the given message with the RSA public key.
ch12/asymmetric/main.go:60
↓ 2 callersFunctiongenerateKeyPair
generateKeyPair generates an RSA key pair.
ch12/asymmetric/main.go:30
↓ 2 callersMethodgetShardIndex
getShardIndex accepts a key and returns a value in 0..N-1, where N is the number of shards.
ch04/sharding.go:47
↓ 2 callersFunctionverifyToken
(tokenString string)
ch12/jwt/token.go:54
↓ 1 callersFunctionChord
(sources ...<-chan int)
ch04/chord.go:21
↓ 1 callersMethodClient
(b *plugin.MuxBroker, c *rpc.Client)
ch08/hashicorp-plugin/commons/commons.go:75
↓ 1 callersFunctionDebounceFirst
(circuit Circuit, d time.Duration)
ch04/debounce_first.go:25
↓ 1 callersFunctionDebounceLast
(circuit Circuit, d time.Duration)
ch04/debounce_last.go:25
↓ 1 callersFunctionDelete
(key string)
ch08/grpc/keyvalue_server/core.go:31
↓ 1 callersFunctionDelete
(key string)
ch05/ch05_01/core.go:25
↓ 1 callersFunctionDelete
(key string)
ch05/ch05_04/core.go:31
↓ 1 callersFunctionFibonacci
(ctx context.Context, n int)
ch11/otel-metric/main.go:155
↓ 1 callersFunctionFibonacci
(ctx context.Context, n int)
ch11/otel-trace/main.go:149
↓ 1 callersMethodGetUser
(ctx context.Context)
ch09/http-healthz/deep.go:43
↓ 1 callersFunctionNewFrontEnd
(s string)
ch08/hexarch/frontend/factory.go:23
↓ 1 callersFunctionNewPostgresTransactionLogger
(param PostgresDbParams)
ch08/hexarch/transact/pglogger.go:180
↓ 1 callersFunctionNewPostgresTransactionLogger
(param PostgresDbParams)
ch05/ch05_08/pglogger.go:179
↓ 1 callersFunctionNewTestTransactionLogger
()
ch08/hexarch/transact/testlogger.go:88
↓ 1 callersFunctionNewTransactionLogger
(s string)
ch08/hexarch/transact/factory.go:25
↓ 1 callersFunctionPut
(key string, value string)
ch05/ch05_01/core.go:41
↓ 1 callersFunctionPut
(key string, value string)
ch05/ch05_04/core.go:51
↓ 1 callersMethodRestore
()
ch08/hexarch/core/core.go:77
↓ 1 callersFunctionRetry
(effector Effector, retries int, delay time.Duration)
ch04/retry.go:25
↓ 1 callersFunctionThrottle
Throttle accepts an Effector function, and returns a Throttled function with a per-uid token bucket with a capacity of max that refills at a rate of r
ch09/tokenbucketv2/throttle.go:41
↓ 1 callersMethodWithTransactionLogger
(tl TransactionLogger)
ch08/hexarch/core/core.go:72
↓ 1 callersFunctionauthenticatePassword
authenticatePassword always returns true and a nil error, just for the sake of demonstration
ch12/jwt/authenticate.go:58
↓ 1 callersFunctionbuildRequestsCounter
(meter metric.Meter)
ch11/otel-metric/main.go:110
↓ 1 callersFunctionbuildRuntimeObservers
(meter metric.Meter)
ch11/otel-metric/main.go:122
↓ 1 callersFunctioncatchEvents
catchEvents listens on the requestEvents channel and increments the appropriate bucket.
ch09/backoff-simulator/main.go:168
↓ 1 callersFunctioncounter
()
ch04/circuitbreaker_test.go:30
↓ 1 callersMethodcreateTable
()
ch08/hexarch/transact/pglogger.go:162
↓ 1 callersMethodcreateTable
()
ch05/ch05_08/pglogger.go:161
↓ 1 callersFunctionexportKeys
exportKeys exports keys to PEM format for demonstration purposes
ch12/asymmetric/main.go:40
↓ 1 callersFunctionfileExists
(filename string)
ch08/hexarch/transact/filelogger_test.go:26
↓ 1 callersFunctionfileExists
(filename string)
ch05/ch05_0X_docker-non-root/transact_test.go:24
↓ 1 callersFunctionfileExists
(filename string)
ch05/ch05_06/transact_test.go:24
↓ 1 callersFunctionfileExists
(filename string)
ch05/ch05_05/transact_test.go:24
↓ 1 callersFunctionfileExists
(filename string)
ch05/ch05_07/transact_test.go:24
↓ 1 callersFunctionfileExists
(filename string)
ch05/ch05_08/filelogger_test.go:24
↓ 1 callersFunctionfileExists
(filename string)
ch05/ch05_0X_pems/transact_test.go:24
↓ 1 callersFunctionfileExists
(filename string)
ch05/ch05_0X_dockerbuild/transact_test.go:24
↓ 1 callersFunctionfile_keyvalue_proto_init
()
ch08/grpc/keyvalue/keyvalue.pb.go:394
↓ 1 callersFunctionhandleLiveness
()
ch09/graceful-shutdown/main.go:74
↓ 1 callersFunctionhandleReadiness
(ctx context.Context)
ch09/graceful-shutdown/main.go:81
↓ 1 callersFunctioninitializeTransactionLog
()
ch05/ch05_0X_docker-non-root/service.go:100
↓ 1 callersFunctioninitializeTransactionLog
()
ch05/ch05_06/service.go:100
↓ 1 callersFunctioninitializeTransactionLog
()
ch05/ch05_05/service.go:100
↓ 1 callersFunctioninitializeTransactionLog
()
ch05/ch05_07/service.go:100
↓ 1 callersFunctioninitializeTransactionLog
()
ch05/ch05_08/service.go:100
↓ 1 callersFunctioninitializeTransactionLog
()
ch05/ch05_0X_pems/service.go:100
↓ 1 callersFunctioninitializeTransactionLog
()
ch05/ch05_0X_dockerbuild/service.go:100
↓ 1 callersFunctionnewTracerProvider
(ctx context.Context)
ch11/otel-trace/main.go:44
↓ 1 callersFunctionprobeDatabase
(ctx context.Context, health *Health)
ch09/http-healthz/compound.go:68
↓ 1 callersFunctionprobeIndexService
(ctx context.Context, health *Health)
ch09/http-healthz/compound.go:77
↓ 1 callersMethodverifyTableExists
()
ch08/hexarch/transact/pglogger.go:144
↓ 1 callersMethodverifyTableExists
()
ch05/ch05_08/pglogger.go:143
↓ 1 callersFunctionwaitAndContinue
()
ch04/circuitbreaker_test.go:61
MethodClose
()
ch08/hexarch/core/core.go:120
MethodClose
()
ch08/hexarch/core/plug_transact.go:43
MethodClose
()
ch08/hexarch/transact/pglogger.go:91
MethodClose
()
ch08/hexarch/transact/testlogger.go:64
MethodClose
()
ch05/ch05_08/pglogger.go:90
MethodDelete
(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption)
ch08/grpc/keyvalue/keyvalue_grpc.pb.go:68
MethodDelete
(context.Context, *DeleteRequest)
ch08/grpc/keyvalue/keyvalue_grpc.pb.go:83
MethodDelete
(context.Context, *DeleteRequest)
ch08/grpc/keyvalue/keyvalue_grpc.pb.go:97
MethodDelete
Delete removes a value from the map. If key doesn't exist in the map, this method is a no-op.
ch04/sharding.go:63
MethodDescriptor
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
ch08/grpc/keyvalue/keyvalue.pb.go:83
MethodDescriptor
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
ch08/grpc/keyvalue/keyvalue.pb.go:132
MethodDescriptor
Deprecated: Use PutRequest.ProtoReflect.Descriptor instead.
ch08/grpc/keyvalue/keyvalue.pb.go:182
MethodDescriptor
Deprecated: Use PutResponse.ProtoReflect.Descriptor instead.
ch08/grpc/keyvalue/keyvalue.pb.go:236
MethodDescriptor
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
ch08/grpc/keyvalue/keyvalue.pb.go:278
MethodDescriptor
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
ch08/grpc/keyvalue/keyvalue.pb.go:325
FunctionEmulateTransientError
(ctx context.Context)
ch04/retry_test.go:29
MethodErr
()
ch08/hexarch/core/core.go:116
MethodErr
()
ch08/hexarch/core/plug_transact.go:37
MethodErr
()
ch08/hexarch/transact/pglogger.go:55
MethodErr
()
ch08/hexarch/transact/filelogger.go:49
MethodErr
()
ch08/hexarch/transact/testlogger.go:38
MethodErr
()
ch05/ch05_0X_docker-non-root/transact.go:60
MethodErr
()
ch05/ch05_06/transact.go:60
MethodErr
()
ch05/ch05_05/transact.go:60
← previousnext →101–200 of 493, ranked by callers