template

package
v0.0.0-...-8e17a21 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: GPL-2.0 Imports: 25 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Template2JSON

func Template2JSON(input string, timeout *bool, vars *map[string]string) []byte

Template2JSON converts templates to JSON data

Types

type Composite

type Composite struct {
	Name string      `json:"name"`
	Data interface{} `json:"data,omitempty"`
}

Composite represents a composite contract

type Source

type Source struct {
	Columns *[]string
	Data    *[][]string
}

Source describes dbfind or data source

type Var

type Var struct {
	Value string
	AsIs  bool
}

Var stores value and additional parameter of variable

type Workspace

type Workspace struct {
	Sources       *map[string]Source
	Vars          *map[string]Var
	SmartContract *smart.SmartContract
	Timeout       *bool
}

Workspace represents a workspace of executable template

func (*Workspace) SetSource

func (w *Workspace) SetSource(name string, source *Source)

SetSource sets source to workspace

Jump to

Keyboard shortcuts

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