MCPcopy Index your code
hub / github.com/cloud-native-go/examples

github.com/cloud-native-go/examples @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
565 symbols 1,414 edges 119 files 66 documented · 12%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cloud Native Go

Pre-Release Book Cover

The official companion repository for Cloud Native Go by Matthew Titmus (O'Reilly Media), available in pre-release now!

This repository is still a work in progress, and will be incomplete prior to the final release of the book.

(The code for Chapter 5 is especially quite a mess. Please don't judge me harshly yet. I know it's a mess. I promise that I'll clean it up before we go to print. But for now this is what I have.)

Extension points exported contracts — how you extend this code

Sayer (Interface)
Sayer says what an animal says. [6 implementers]
ch08/go-plugin/main/main.go
Sayer (Interface)
Sayer says what an animal says. [6 implementers]
ch08/hashicorp-plugin/commons/commons.go
TransactionLogger (Interface)
(no doc) [6 implementers]
ch08/hexarch/core/plug_transact.go
TransactionLogger (Interface)
(no doc) [6 implementers]
ch05/ch05_08/logger.go
Effector (FuncType)
Effector is the function that you want to subject to throttling.
ch09/tokenbucketv2/throttle.go
Future (Interface)
(no doc) [1 implementers]
ch04/future.go
Circuit (FuncType)
(no doc)
ch04/circuitbreaker.go
Effector (FuncType)
(no doc)
ch04/throttle.go

Core symbols most depended-on inside this repo

Wait
called by 29
ch05/ch05_08/logger.go
Close
called by 27
ch05/ch05_08/logger.go
Err
called by 23
ch05/ch05_08/logger.go
WritePut
called by 11
ch08/hexarch/transact/filelogger.go
WritePut
called by 11
ch05/ch05_08/filelogger.go
Result
called by 11
ch04/future.go
sendRequest
called by 8
ch09/backoff-simulator/main.go
WritePut
called by 8
ch05/ch05_0X_docker-non-root/transact.go

Shape

Function 300
Method 193
Struct 49
TypeAlias 9
Interface 8
FuncType 6

Languages

Go100%

Modules by API surface

ch08/grpc/keyvalue/keyvalue.pb.go45 symbols
ch08/grpc/keyvalue/keyvalue_grpc.pb.go23 symbols
ch08/hexarch/core/core.go16 symbols
ch08/hexarch/transact/pglogger.go13 symbols
ch05/ch05_08/pglogger.go13 symbols
ch08/hexarch/core/plug_transact.go11 symbols
ch05/ch05_0X_pems/transact.go11 symbols
ch05/ch05_0X_dockerbuild/transact.go11 symbols
ch05/ch05_0X_docker-non-root/transact.go11 symbols
ch05/ch05_08/logger.go11 symbols
ch05/ch05_07/transact.go11 symbols
ch05/ch05_06/transact.go11 symbols

For agents

$ claude mcp add examples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact