echo

package
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

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) Generate

func (Backend) Generate(_ context.Context, req *plugin.Request) (*plugin.Response, error)

Generate writes the model as JSON.

func (Backend) Import

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL