github.com/jwhonce/docker@v0.6.7-0.20190327063223-da823cf3a5a3/integration/plugin/volumes/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  }