Documentation
¶
Index ¶
- type Plugin
- func (p *Plugin) DecodeRecords(collection *core.Collection, reader io.Reader) ([]*core.Record, error)
- func (p *Plugin) Description() string
- func (p *Plugin) EncodeRecords(records []*core.Record, writer io.Writer) error
- func (p *Plugin) FileExtension() string
- func (p *Plugin) Init(app core.App) error
- func (p *Plugin) Name() string
- func (p *Plugin) PreValidate(app core.App) error
- func (p *Plugin) Validate() error
- func (p *Plugin) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// Delimiter character to use for the csv.
// - default: ","
Delimiter string `json:"delimiter"`
}
func (*Plugin) DecodeRecords ¶
func (p *Plugin) DecodeRecords(collection *core.Collection, reader io.Reader) ([]*core.Record, error)
DecodeRecords implements import_export.RecordsHandler.
func (*Plugin) Description ¶
Description implements xpb.Plugin.
func (*Plugin) EncodeRecords ¶
EncodeRecords implements import_export.RecordsHandler.
func (*Plugin) FileExtension ¶
FileExtension implements import_export.Handler.
func (*Plugin) PreValidate ¶
PreValidate implements xpb.PreValidator.
Click to show internal directories.
Click to hide internal directories.