Go handler to create external network extensions for Docker.
This library is designed to be integrated in your program.
- Implement the
network.Driver
interface. - Initialize a
network.Handler
with your implementation. - Call either
ServeTCP
orServeUnix
from thenetwork.Handler
.
import "github.com/docker/go-plugins-helpers/network"
d := MyNetworkDriver{}
h := network.NewHandler(d)
h.ServeTCP("test_network", ":8080")
import "github.com/docker/go-plugins-helpers/network"
d := MyNetworkDriver{}
h := network.NewHandler(d)
h.ServeUnix("root", "test_network")
- docker-ovs-plugin - An Open vSwitch Networking Plugin