func NewVaultService(url string) (*VaultService, error) {
	var err error

	// step: create the config for client
	service := new(VaultService)
	service.vaultURL = url
	service.listeners = make([]chan VaultEvent, 0)

	// step: create the service processor channels
	service.resourceChannel = make(chan *watchedResource, 20)

	// step: retrieve a vault client
	service.client, err = newVaultClient(&options)
	if err != nil {
		return nil, err
	}

	// step: start the service processor off
	service.vaultServiceProcessor()

	return service, nil
}
// NewVaultService creates a new implementation to speak to vault and retrieve the resources
//	url			: the url of the vault service
NewVaultService creates a new implementation to speak to vault and retrieve the resources
url			: the url of the vault service
// NewVaultService creates a new implementation to speak to vault and retrieve the resources // url : the url of the vault service
func NewVaultService(url string) (*VaultService, error) {
	var err error
	service := new(VaultService)
	service.vaultURL = url
	service.listeners = make([]chan VaultEvent, 0)
	service.resourceChannel = make(chan *watchedResource, 20)
	service.client, err = newVaultClient(&options)
	if err != nil {
		return nil, err
	}
	service.vaultServiceProcessor()
	return service, nil
}
func NewVaultService ( url string ) ( * VaultService , error ) { var err error service := new ( VaultService ) service . vaultURL = url service . listeners = make ( [ ] chan VaultEvent , 0 ) service . resourceChannel = make ( chan * watchedResource , 20 ) service . client , err = newVaultClient ( & options ) if err != nil { return nil , err } service . vaultServiceProcessor ( ) return service , nil }
NewVaultService creates a new implementation to speak to vault and retrieve the resources
url			: the url of the vault service
NewVaultService creates a new implementation to speak to vault and retrieve the resources url : the url of the vault service
// step: create the config for client // step: create the service processor channels // step: retrieve a vault client // step: start the service processor off