MCPcopy Create free account
hub / github.com/danderson/netboot / main

Function main

pixiecore/api-example/main.go:36–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34)
35
36func main() {
37 flag.Parse()
38 http.HandleFunc("/v1/boot/", api)
39 http.ListenAndServe(":"+strconv.Itoa(*port), nil)
40}
41
42func api(w http.ResponseWriter, r *http.Request) {
43 log.Printf("Serving boot config for %s", filepath.Base(r.URL.Path))

Callers

nothing calls this directly

Calls 1

ListenAndServeMethod · 0.80

Tested by

no test coverage detected