template

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

---------------------------------------------------------------------------------------------

  • Copyright (c) IBAX. All rights reserved.
  • See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------

  • Copyright (c) IBAX. All rights reserved.
  • See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------

  • Copyright (c) IBAX. All rights reserved.
  • See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------

  • Copyright (c) IBAX. All rights reserved.
  • See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseObject

func ParseObject(in []rune) (any, int, error)

func Template2JSON

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

Template2JSON converts templates to JSON data

Types

type Action

type Action struct {
	Name   string            `json:"name"`
	Params map[string]string `json:"params,omitempty"`
}

Action describes a button action

type Composite

type Composite struct {
	Name string `json:"name"`
	Data any    `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