SkipConfigPrefix - whether to skip /config/ prefix to pushed paths, defaults to false
()
| 464 | |
| 465 | //SkipConfigPrefix - whether to skip /config/ prefix to pushed paths, defaults to false |
| 466 | func (schema *Schema) SkipConfigPrefix() bool { |
| 467 | syncKeyTemplateRaw, ok := schema.Metadata["sync_skip_config_prefix"] |
| 468 | if !ok { |
| 469 | return false |
| 470 | } |
| 471 | return syncKeyTemplateRaw.(bool) |
| 472 | } |
| 473 | |
| 474 | //GenerateCustomPath - returns custom path based on sync_key_template |
| 475 | func (schema *Schema) GenerateCustomPath(data map[string]interface{}) (path string, err error) { |