mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-02-03 23:01:48 +00:00
Add inventory plugins for buildah and podman, unit tests and functional CI tests. --------- Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
19 lines
331 B
Go
19 lines
331 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"math/rand"
|
|
"net/http"
|
|
)
|
|
|
|
func predict(w http.ResponseWriter, r *http.Request) {
|
|
fmt.Fprintf(w, "prediction=%f\n", rand.Float64())
|
|
}
|
|
|
|
func main() {
|
|
http.HandleFunc("/predict", predict)
|
|
fmt.Println("Inference engine listening on :8080")
|
|
http.ListenAndServe(":8080", nil)
|
|
}
|
|
|
|
|