dvdynamic

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandDebug         = "debug"
	CommandDynamic       = "dynamic"
	CommandDynamicServer = "dserver"
	CommandDynamicCache  = "dcache"
	CommandKeyVariables  = "key_variables"
)

Variables

This section is empty.

Functions

func ConvertToAction

func ConvertToAction(v *dvevaluation.DvVariable) *dvcontext.DvAction

func DebugInit

func DebugInit(command string, ctx *dvcontext.RequestContext) ([]interface{}, bool)

func DebugRun

func DebugRun(data []interface{}) bool

func DynamicActionByConfig

func DynamicActionByConfig(config *dvevaluation.DvVariable, ctx *dvcontext.RequestContext) bool

func DynamicActionInit

func DynamicActionInit(command string, ctx *dvcontext.RequestContext) ([]interface{}, bool)

func DynamicActionRun

func DynamicActionRun(data []interface{}) bool

func DynamicCacheByConfig

func DynamicCacheByConfig(config *DynamicCacheConfig, ctx *dvcontext.RequestContext) bool

func DynamicCacheInit

func DynamicCacheInit(command string, ctx *dvcontext.RequestContext) ([]interface{}, bool)

func DynamicCacheRun

func DynamicCacheRun(data []interface{}) bool

func DynamicServerByConfig

func DynamicServerByConfig(config *DynamicServerConfig, ctx *dvcontext.RequestContext) bool

func DynamicServerInit

func DynamicServerInit(command string, ctx *dvcontext.RequestContext) ([]interface{}, bool)

func DynamicServerRun

func DynamicServerRun(data []interface{}) bool

func DynamicSetActions

func DynamicSetActions(props *dvevaluation.DvVariable, env *dvevaluation.DvObject)

func DynamicSetProperties

func DynamicSetProperties(props *dvevaluation.DvVariable)

func Init

func Init() bool

func KeyVariablesInit

func KeyVariablesInit(command string, ctx *dvcontext.RequestContext) ([]interface{}, bool)

func KeyVariablesRun

func KeyVariablesRun(data []interface{}) bool

func KeyVariablesRunByConfig

func KeyVariablesRunByConfig(config *KeyVariablesConfig, ctx *dvcontext.RequestContext)

func RunDebugProxy

func RunDebugProxy(config *DebugConfig, ctx *dvcontext.RequestContext) error

func RunExit

func RunExit(config *DebugConfig, ctx *dvcontext.RequestContext) error

func RunGetOneVariable

func RunGetOneVariable(config *DebugConfig, ctx *dvcontext.RequestContext) error

func RunReadAllVariables

func RunReadAllVariables(config *DebugConfig, ctx *dvcontext.RequestContext) error

func RunSetOneVariable

func RunSetOneVariable(config *DebugConfig, ctx *dvcontext.RequestContext) error

Types

type DebugActionFn

type DebugActionFn func(*DebugConfig, *dvcontext.RequestContext) error

type DebugConfig

type DebugConfig struct {
	Action string `json:"action"`
	Data   string `json:"data"`
}

type DynamicCacheConfig

type DynamicCacheConfig struct {
	SessionId     string                          `json:"session_id"`
	SessionParams *dvcontext.SessionActionRequest `json:"params"`
	Write         map[string]string               `json:"write"`
	Read          []string                        `json:"read"`
}

type DynamicServerConfig

type DynamicServerConfig struct {
	Url string `json:"url"`
	Log int    `json:"log"`
}

type KeyVariablesConfig

type KeyVariablesConfig struct {
	Prefix     string   `json:"prefix"`
	Values     []string `json:"values"`
	SuccessVar string   `json:"success_var"`
	KeyParam   string   `json:"key_param"`
}

Jump to

Keyboard shortcuts

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