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: 1 module, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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