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
- type SubscriptionManager
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 ¶
type SubscriptionManager ¶ added in v0.2.24
func NewSubscriptionManager ¶ added in v0.2.24
func NewSubscriptionManager() *SubscriptionManager
func (*SubscriptionManager) AddPublishedTopic ¶ added in v0.4.1
func (s *SubscriptionManager) AddPublishedTopic(topic string, sub message.Publisher)
func (*SubscriptionManager) Publish ¶ added in v0.2.24
func (s *SubscriptionManager) Publish(payload interface{}) error
func (*SubscriptionManager) PublishBlind ¶ added in v0.2.24
func (s *SubscriptionManager) PublishBlind(payload interface{})
Click to show internal directories.
Click to hide internal directories.