chore: initialize containerized Go learning workbook (2026 DevOps/SRE)
This commit is contained in:
commit
84be3e5d77
64 files changed
+1382
No files matched your search
@@ -0,0 +1,20 @@
|
||||
package httpapi
|
||||
|
||||
import "net/http"
|
||||
|
||||
type HealthResponse struct {
|
||||
Status string `json:"status"`
|
||||
}
|
||||
|
||||
type EchoRequest struct {
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
type EchoResponse struct {
|
||||
Echoed string `json:"echoed"`
|
||||
Len int `json:"len"`
|
||||
}
|
||||
|
||||
func NewHandler() http.Handler {
|
||||
panic("TODO: zarejestruj 'GET /health' i 'POST /echo' w http.NewServeMux() oraz dodaj middleware X-Service")
|
||||
}
|
||||
Reference in new issue
Block a user