You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you plan to use the library, there is a example in the Readme with the in memory storage, if you want to use Postgres you must provide a postgres Storage to the ipamer like so:
pgStorage, err:=goipam.NewPostgresStorage("hostname", "port", "user", "password", "dbnam", goipam.SSLModePrefer)
// Handle Error// Create a ipamer with in postgres storageipam:=goipam.New(bgCtx, pgStorage)
All other code remains the same as shown in the Readme
can anyone please give a simple example usage of creating namespaces, prefixes and then acquiring & releasing ip address with storage as postgres?
The text was updated successfully, but these errors were encountered: