diff options
author | Rastislav Szabo <raszabo@cisco.com> | 2017-05-04 11:09:03 +0200 |
---|---|---|
committer | Rastislav Szabo <raszabo@cisco.com> | 2017-05-04 11:12:35 +0200 |
commit | a101d966133a70b8a76526be25070436d14fcf9f (patch) | |
tree | 75e2dbf20de615e58252b780b2ba5baae8fdcf82 /doc.go | |
parent | a968ead74525125dff9ae90b1c9a9102e4327900 (diff) |
initial commit
Signed-off-by: Rastislav Szabo <raszabo@cisco.com>
Diffstat (limited to 'doc.go')
-rw-r--r-- | doc.go | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,20 @@ +// Package govpp provides the entry point to govpp functionality. It provides the API for connecting the govpp core +// to VPP either using the default VPP adapter, or using the adapter previously set by SetAdapter function +// (useful mostly just for unit/integration tests with mocked VPP adapter). +// +// To create a connection to VPP, use govpp.Connect function: +// +// conn, err := govpp.Connect() +// if err != nil { +// // handle error! +// } +// defer conn.Disconnect() +// +// Make sure you close the connection after using it. If the connection is not closed, it will leak resources. Please +// note that only one VPP connection is allowed for a single process. +// +// In case you need to mock the connection to VPP (e.g. for testing), use the govpp.SetAdapter function before +// calling govpp.Connect. +// +// Once connected to VPP, use the functions from the api package to communicate with it. +package govpp |