invoker

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

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevInvokerBuilder

type DevInvokerBuilder func(opts DevOptions) Invoker

type DevOptions

type DevOptions struct {
	App     xtypes.App
	HttpCtx *gin.Context
	Args    map[string]any
	PlugId  string
	AgentId string
	Claim   *claim.PlugDevTkt
}

type Invoker

type Invoker interface {
	Type() string
	ExecuteMethod(method string, data xtypes.LazyData) (xtypes.LazyData, error)
	UserContext() *claim.UserContext
	GetAttr(string) interface{}
	GetAttrs() map[string]interface{}
}

Jump to

Keyboard shortcuts

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