MCPcopy Create free account
hub / github.com/cloudwan/gohan / SkipConfigPrefix

Method SkipConfigPrefix

schema/schema.go:466–472  ·  view source on GitHub ↗

SkipConfigPrefix - whether to skip /config/ prefix to pushed paths, defaults to false

()

Source from the content-addressed store, hash-verified

464
465//SkipConfigPrefix - whether to skip /config/ prefix to pushed paths, defaults to false
466func (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
475func (schema *Schema) GenerateCustomPath(data map[string]interface{}) (path string, err error) {

Callers 1

generatePathFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected