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
↓ 3 callers
Method
getShard
getShard accepts a key and returns a pointer to its corresponding Shard.
ch04/sharding.go:56
↓ 3 callers
Function
verifyHandler
(w http.ResponseWriter, r *http.Request)
ch12/jwt/verify.go:26
↓ 2 callers
Function
Breaker
(circuit Circuit, threshold int)
ch04/circuitbreaker.go:28
↓ 2 callers
Function
Delete
(key string)
ch05/ch05_03/core.go:25
↓ 2 callers
Method
Delete
(key string)
ch08/hexarch/core/core.go:40
↓ 2 callers
Function
Get
(key string)
ch05/ch05_01/core.go:31
↓ 2 callers
Function
Get
(key string)
ch05/ch05_04/core.go:39
↓ 2 callers
Method
Get
(key string)
ch08/hexarch/core/core.go:50
↓ 2 callers
Method
LastSequence
()
ch05/ch05_08/logger.go:39
↓ 2 callers
Function
Put
(key string, value string)
ch08/grpc/keyvalue_server/core.go:51
↓ 2 callers
Function
Put
(key string, value string)
ch05/ch05_03/core.go:41
↓ 2 callers
Method
Put
(key string, value string)
ch08/hexarch/core/core.go:62
↓ 2 callers
Method
Start
(kv *core.KeyValueStore)
ch08/hexarch/frontend/frontend.go:24
↓ 2 callers
Function
Timeout
(f TimeoutFunction)
ch04/timeout.go:25
↓ 2 callers
Function
authenticateHandler
(w http.ResponseWriter, r *http.Request)
ch12/jwt/authenticate.go:24
↓ 2 callers
Function
buildToken
(username string)
ch12/jwt/token.go:31
↓ 2 callers
Function
decryptAES
decryptAES decrypts ciphertext using the given key with AES-GCM.
ch12/symmetric/main.go:58
↓ 2 callers
Function
decryptRSA
decryptRSA decrypts the given ciphertext with the RSA private key.
ch12/asymmetric/main.go:71
↓ 2 callers
Function
encryptAES
encryptAES encrypts plaintext using the given key with AES-GCM.
ch12/symmetric/main.go:29
↓ 2 callers
Function
encryptRSA
encryptRSA encrypts the given message with the RSA public key.
ch12/asymmetric/main.go:60
↓ 2 callers
Function
generateKeyPair
generateKeyPair generates an RSA key pair.
ch12/asymmetric/main.go:30
↓ 2 callers
Method
getShardIndex
getShardIndex accepts a key and returns a value in 0..N-1, where N is the number of shards.
ch04/sharding.go:47
↓ 2 callers
Function
verifyToken
(tokenString string)
ch12/jwt/token.go:54
↓ 1 callers
Function
Chord
(sources ...<-chan int)
ch04/chord.go:21
↓ 1 callers
Method
Client
(b *plugin.MuxBroker, c *rpc.Client)
ch08/hashicorp-plugin/commons/commons.go:75
↓ 1 callers
Function
DebounceFirst
(circuit Circuit, d time.Duration)
ch04/debounce_first.go:25
↓ 1 callers
Function
DebounceLast
(circuit Circuit, d time.Duration)
ch04/debounce_last.go:25
↓ 1 callers
Function
Delete
(key string)
ch08/grpc/keyvalue_server/core.go:31
↓ 1 callers
Function
Delete
(key string)
ch05/ch05_01/core.go:25
↓ 1 callers
Function
Delete
(key string)
ch05/ch05_04/core.go:31
↓ 1 callers
Function
Fibonacci
(ctx context.Context, n int)
ch11/otel-metric/main.go:155
↓ 1 callers
Function
Fibonacci
(ctx context.Context, n int)
ch11/otel-trace/main.go:149
↓ 1 callers
Method
GetUser
(ctx context.Context)
ch09/http-healthz/deep.go:43
↓ 1 callers
Function
NewFrontEnd
(s string)
ch08/hexarch/frontend/factory.go:23
↓ 1 callers
Function
NewPostgresTransactionLogger
(param PostgresDbParams)
ch08/hexarch/transact/pglogger.go:180
↓ 1 callers
Function
NewPostgresTransactionLogger
(param PostgresDbParams)
ch05/ch05_08/pglogger.go:179
↓ 1 callers
Function
NewTestTransactionLogger
()
ch08/hexarch/transact/testlogger.go:88
↓ 1 callers
Function
NewTransactionLogger
(s string)
ch08/hexarch/transact/factory.go:25
↓ 1 callers
Function
Put
(key string, value string)
ch05/ch05_01/core.go:41
↓ 1 callers
Function
Put
(key string, value string)
ch05/ch05_04/core.go:51
↓ 1 callers
Method
Restore
()
ch08/hexarch/core/core.go:77
↓ 1 callers
Function
Retry
(effector Effector, retries int, delay time.Duration)
ch04/retry.go:25
↓ 1 callers
Function
Throttle
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 callers
Method
WithTransactionLogger
(tl TransactionLogger)
ch08/hexarch/core/core.go:72
↓ 1 callers
Function
authenticatePassword
authenticatePassword always returns true and a nil error, just for the sake of demonstration
ch12/jwt/authenticate.go:58
↓ 1 callers
Function
buildRequestsCounter
(meter metric.Meter)
ch11/otel-metric/main.go:110
↓ 1 callers
Function
buildRuntimeObservers
(meter metric.Meter)
ch11/otel-metric/main.go:122
↓ 1 callers
Function
catchEvents
catchEvents listens on the requestEvents channel and increments the appropriate bucket.
ch09/backoff-simulator/main.go:168
↓ 1 callers
Function
counter
()
ch04/circuitbreaker_test.go:30
↓ 1 callers
Method
createTable
()
ch08/hexarch/transact/pglogger.go:162
↓ 1 callers
Method
createTable
()
ch05/ch05_08/pglogger.go:161
↓ 1 callers
Function
exportKeys
exportKeys exports keys to PEM format for demonstration purposes
ch12/asymmetric/main.go:40
↓ 1 callers
Function
fileExists
(filename string)
ch08/hexarch/transact/filelogger_test.go:26
↓ 1 callers
Function
fileExists
(filename string)
ch05/ch05_0X_docker-non-root/transact_test.go:24
↓ 1 callers
Function
fileExists
(filename string)
ch05/ch05_06/transact_test.go:24
↓ 1 callers
Function
fileExists
(filename string)
ch05/ch05_05/transact_test.go:24
↓ 1 callers
Function
fileExists
(filename string)
ch05/ch05_07/transact_test.go:24
↓ 1 callers
Function
fileExists
(filename string)
ch05/ch05_08/filelogger_test.go:24
↓ 1 callers
Function
fileExists
(filename string)
ch05/ch05_0X_pems/transact_test.go:24
↓ 1 callers
Function
fileExists
(filename string)
ch05/ch05_0X_dockerbuild/transact_test.go:24
↓ 1 callers
Function
file_keyvalue_proto_init
()
ch08/grpc/keyvalue/keyvalue.pb.go:394
↓ 1 callers
Function
handleLiveness
()
ch09/graceful-shutdown/main.go:74
↓ 1 callers
Function
handleReadiness
(ctx context.Context)
ch09/graceful-shutdown/main.go:81
↓ 1 callers
Function
initializeTransactionLog
()
ch05/ch05_0X_docker-non-root/service.go:100
↓ 1 callers
Function
initializeTransactionLog
()
ch05/ch05_06/service.go:100
↓ 1 callers
Function
initializeTransactionLog
()
ch05/ch05_05/service.go:100
↓ 1 callers
Function
initializeTransactionLog
()
ch05/ch05_07/service.go:100
↓ 1 callers
Function
initializeTransactionLog
()
ch05/ch05_08/service.go:100
↓ 1 callers
Function
initializeTransactionLog
()
ch05/ch05_0X_pems/service.go:100
↓ 1 callers
Function
initializeTransactionLog
()
ch05/ch05_0X_dockerbuild/service.go:100
↓ 1 callers
Function
newTracerProvider
(ctx context.Context)
ch11/otel-trace/main.go:44
↓ 1 callers
Function
probeDatabase
(ctx context.Context, health *Health)
ch09/http-healthz/compound.go:68
↓ 1 callers
Function
probeIndexService
(ctx context.Context, health *Health)
ch09/http-healthz/compound.go:77
↓ 1 callers
Method
verifyTableExists
()
ch08/hexarch/transact/pglogger.go:144
↓ 1 callers
Method
verifyTableExists
()
ch05/ch05_08/pglogger.go:143
↓ 1 callers
Function
waitAndContinue
()
ch04/circuitbreaker_test.go:61
Method
Close
()
ch08/hexarch/core/core.go:120
Method
Close
()
ch08/hexarch/core/plug_transact.go:43
Method
Close
()
ch08/hexarch/transact/pglogger.go:91
Method
Close
()
ch08/hexarch/transact/testlogger.go:64
Method
Close
()
ch05/ch05_08/pglogger.go:90
Method
Delete
(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption)
ch08/grpc/keyvalue/keyvalue_grpc.pb.go:68
Method
Delete
(context.Context, *DeleteRequest)
ch08/grpc/keyvalue/keyvalue_grpc.pb.go:83
Method
Delete
(context.Context, *DeleteRequest)
ch08/grpc/keyvalue/keyvalue_grpc.pb.go:97
Method
Delete
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
Method
Descriptor
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
ch08/grpc/keyvalue/keyvalue.pb.go:83
Method
Descriptor
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
ch08/grpc/keyvalue/keyvalue.pb.go:132
Method
Descriptor
Deprecated: Use PutRequest.ProtoReflect.Descriptor instead.
ch08/grpc/keyvalue/keyvalue.pb.go:182
Method
Descriptor
Deprecated: Use PutResponse.ProtoReflect.Descriptor instead.
ch08/grpc/keyvalue/keyvalue.pb.go:236
Method
Descriptor
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
ch08/grpc/keyvalue/keyvalue.pb.go:278
Method
Descriptor
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
ch08/grpc/keyvalue/keyvalue.pb.go:325
Function
EmulateTransientError
(ctx context.Context)
ch04/retry_test.go:29
Method
Err
()
ch08/hexarch/core/core.go:116
Method
Err
()
ch08/hexarch/core/plug_transact.go:37
Method
Err
()
ch08/hexarch/transact/pglogger.go:55
Method
Err
()
ch08/hexarch/transact/filelogger.go:49
Method
Err
()
ch08/hexarch/transact/testlogger.go:38
Method
Err
()
ch05/ch05_0X_docker-non-root/transact.go:60
Method
Err
()
ch05/ch05_06/transact.go:60
Method
Err
()
ch05/ch05_05/transact.go:60
← previous
next →
101–200 of 493, ranked by callers