Documentation
¶
Overview ¶
Package echo is a test backend that writes the model it is given as JSON and imports that JSON back, so the import protocol is exercised before any real reverse backend exists. It is not compiled into tdl.
Index ¶
Constants ¶
View Source
const File = "model.json"
File is the one file Generate writes.
View Source
const Name = "echo"
Name is what this backend is called, and tdl-gen-echo on PATH.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct{}
Backend implements plugin.Importer.
func (Backend) Describe ¶
func (Backend) Describe() plugin.Description
func (Backend) Import ¶
func (Backend) Import(_ context.Context, req *plugin.ImportRequest) (*plugin.ImportResponse, error)
Import reads the first file as a model in JSON. Every import warns with lossy.order, ignoring the request's allowed codes, so the host's filter has something to drop.
Directories
¶
| Path | Synopsis |
|---|---|
|
Command tdl-gen-echo is the echo test backend as a plugin.
|
Command tdl-gen-echo is the echo test backend as a plugin. |
Click to show internal directories.
Click to hide internal directories.