Documentation ¶
Index ¶
Constants ¶
View Source
const LAMBDA_SCHEME string = "lambda"
View Source
const NULL_SCHEME string = "null"
Variables ¶
This section is empty.
Functions ¶
func RegisterImporter ¶
func RegisterImporter(ctx context.Context, scheme string, init_func ImporterInitializationFunc) error
RegisterImporter registers 'scheme' as a key pointing to 'init_func' in an internal lookup table used to create new `Importer` instances by the `NewImporter` method.
Types ¶
type ImportEvent ¶
type ImportEvent struct {
Ids []int64 `json:"ids"`
}
type Importer ¶
func NewImporter ¶
NewImporter returns a new `Importer` instance configured by 'uri'. The value of 'uri' is parsed as a `url.URL` and its scheme is used as the key for a corresponding `ImporterInitializationFunc` function used to instantiate the new `Importer`. It is assumed that the scheme (and initialization function) have been registered by the `RegisterImporter` method.
type ImporterInitializationFunc ¶
ImporterInitializationFunc is a function defined by individual importer package and used to create an instance of that importer
type LambdaImporter ¶
type LambdaImporter struct { Importer // contains filtered or unexported fields }
type NullImporter ¶
type NullImporter struct {
Importer
}
Click to show internal directories.
Click to hide internal directories.