elem

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 45 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HTTP_REQUEST_DEF = core.TypeDef{
	Type: "map",
	Map: map[string]*core.TypeDef{
		"method": {
			Type: "string",
		},
		"path": {
			Type: "string",
		},
		"query": {
			Type: "string",
		},
		"params": {
			Type: "stream",
			Stream: &core.TypeDef{
				Type: "map",
				Map: map[string]*core.TypeDef{
					"key": {
						Type: "string",
					},
					"values": {
						Type: "stream",
						Stream: &core.TypeDef{
							Type: "string",
						},
					},
				},
			},
		},
		"headers": {
			Type: "stream",
			Stream: &core.TypeDef{
				Type: "map",
				Map: map[string]*core.TypeDef{
					"key": {
						Type: "string",
					},
					"values": {
						Type: "stream",
						Stream: &core.TypeDef{
							Type: "string",
						},
					},
				},
			},
		},
		"body": {
			Type: "binary",
		},
	},
}

HttpRequest Slang type

View Source
var HTTP_RESPONSE_DEF = core.TypeDef{
	Type: "map",
	Map: map[string]*core.TypeDef{
		"status": {
			Type: "number",
		},
		"headers": {
			Type: "stream",
			Stream: &core.TypeDef{
				Type: "map",
				Map: map[string]*core.TypeDef{
					"key": {
						Type: "string",
					},
					"value": {
						Type: "string",
					},
				},
			},
		},
		"body": {
			Type: "binary",
		},
	},
}

HttpResponse Slang type

View Source
var SafeMode bool

Functions

func GetBlueprint added in v0.1.17

func GetBlueprint(id uuid.UUID) (*core.Blueprint, error)

func GetBuiltinIds added in v0.1.17

func GetBuiltinIds() []uuid.UUID

func Init added in v0.1.27

func Init()

func IsRegistered

func IsRegistered(id uuid.UUID) bool

func MakeOperator

func MakeOperator(def core.InstanceDef) (*core.Operator, error)

func Register

func Register(cfg *builtinConfig)

Types

type EvaluableExpression

type EvaluableExpression struct {
	govaluate.EvaluableExpression
}

Jump to

Keyboard shortcuts

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