func FromObject(in interface{}) (backend.Backend, error) {
	if in == nil {
		return nil, trace.Errorf(
			`please supply a valid dictionary, e.g. {"path": "/opt/bolt.db"}`)
	}
	var c *cfg
	if err := utils.ObjectToStruct(in, &c); err != nil {
		return nil, trace.Wrap(err)
	}
	return New(c.Path)
}
// FromString initialized the backend from backend-specific string
FromString initialized the backend from backend-specific string
// FromString initialized the backend from backend - specific string
func FromObject(in interface{}) (backend.Backend, error) {
	if in == nil {
		return nil, trace.Errorf(
			`please supply a valid dictionary, e.g. {"path": "/opt/bolt.db"}`)
	}
	var c *cfg
	if err := utils.ObjectToStruct(in, &c); err != nil {
		return nil, trace.Wrap(err)
	}
	return New(c.Path)
}
func FromObject ( in interface { } ) ( backend . Backend , error ) { if in == nil { return nil , trace . Errorf ( `please supply a valid dictionary, e.g. {"path": "/opt/bolt.db"}` ) } var c * cfg if err := utils . ObjectToStruct ( in , & c ) ; err != nil { return nil , trace . Wrap ( err ) } return New ( c . Path ) }
FromString initialized the backend from backend-specific string
FromString initialized the backend from backend - specific string