Skip to content

Commit

Permalink
simplify objdb by merging packages
Browse files Browse the repository at this point in the history
  • Loading branch information
shaleman committed Jan 22, 2016
1 parent f1afea9 commit a54ad17
Show file tree
Hide file tree
Showing 7 changed files with 1,531 additions and 0 deletions.
23 changes: 23 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package objdb

import log "github.com/Sirupsen/logrus"

var defaultConfStore = "etcd"

// NewClient Create a new conf store
func NewClient(clientName string) API {
if clientName == "" {
clientName = defaultConfStore
}

// Get the plugin
plugin := GetPlugin(clientName)

// Initialize the objdb client
if err := plugin.Init([]string{}); err != nil {
log.Errorf("Error initializing confstore plugin. Err: %v", err)
log.Fatal("Error initializing confstore plugin")
}

return plugin
}
Loading

0 comments on commit a54ad17

Please sign in to comment.