PluginName returns the name of the plugin from the connection string variable. Note that `Connection` gets string replaced with the actual connection value during the sync process, so calling this function will only work before the sync process starts.
()
| 25 | // Note that `Connection` gets string replaced with the actual connection value during the sync |
| 26 | // process, so calling this function will only work before the sync process starts. |
| 27 | func (b *BackendOptions) PluginName() string { |
| 28 | if b == nil || !strings.HasPrefix(b.Connection, "@@plugins.") { |
| 29 | return "" |
| 30 | } |
| 31 | return strings.Split(b.Connection, ".")[1] |
| 32 | } |
| 33 | |
| 34 | // Source plugin spec |
| 35 | type Source struct { |
no outgoing calls