Documentation
¶
Index ¶
- func ToJSON(ctx context.Context, filter *models.SavedFilter) (*jsonschema.SavedFilter, error)
- type Importer
- func (i *Importer) Create(ctx context.Context) (*int, error)
- func (i *Importer) FindExistingID(ctx context.Context) (*int, error)
- func (i *Importer) Name() string
- func (i *Importer) PostImport(ctx context.Context, id int) error
- func (i *Importer) PreImport(ctx context.Context) error
- func (i *Importer) Update(ctx context.Context, id int) error
- type ImporterReaderWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToJSON ¶
func ToJSON(ctx context.Context, filter *models.SavedFilter) (*jsonschema.SavedFilter, error)
ToJSON converts a SavedFilter object into its JSON equivalent.
Types ¶
type Importer ¶
type Importer struct {
ReaderWriter ImporterReaderWriter
Input jsonschema.SavedFilter
MissingRefBehaviour models.ImportMissingRefEnum
// contains filtered or unexported fields
}
func (*Importer) FindExistingID ¶
type ImporterReaderWriter ¶
type ImporterReaderWriter interface {
models.SavedFilterWriter
}
Click to show internal directories.
Click to hide internal directories.