github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/integration/plugin/logging/cmd/dummy/main.go (about) 1 package main 2 3 import ( 4 "net" 5 "net/http" 6 ) 7 8 func main() { 9 l, err := net.Listen("unix", "/run/docker/plugins/plugin.sock") 10 if err != nil { 11 panic(err) 12 } 13 14 server := http.Server{ 15 Addr: l.Addr().String(), 16 Handler: http.NewServeMux(), 17 } 18 server.Serve(l) 19 }