Documentation ¶
Index ¶
- func CallFunctionFromJson(f Callable, jsonArgs interface{}) ([]reflect.Value, error)
- func FillStructFromKV(kv map[string]string, v interface{}) error
- func GetFunctionParametersJsonSchema(reflector *jsonschema.Reflector, f Callable) (*jsonschema.Schema, error)
- func MergeChannels[A any](channels ...<-chan A) <-chan A
- func ParseKV(s string) map[string]string
- type Callable
- type Nothing
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallFunctionFromJson ¶ added in v0.2.24
CallFunctionFromJson calls a function with arguments provided as JSON TODO(manuel, 2024-01-12) make this take a ctx
func FillStructFromKV ¶ added in v0.1.9
func GetFunctionParametersJsonSchema ¶ added in v0.2.24
func GetFunctionParametersJsonSchema(reflector *jsonschema.Reflector, f Callable) (*jsonschema.Schema, error)
GetFunctionParametersJsonSchema generates a JSON Schema for the arguments of the given function
func MergeChannels ¶
func MergeChannels[A any](channels ...<-chan A) <-chan A
Types ¶
type Callable ¶ added in v0.2.24
type Callable interface{}
Callable is a type representing any callable function
type Result ¶
type Result[T any] struct { // contains filtered or unexported fields }
func NewErrorResult ¶
func NewValueResult ¶
Click to show internal directories.
Click to hide internal directories.