Documentation
¶
Index ¶
- func CallHttpClient(vm *goja.Runtime, args map[string]interface{}) (interface{}, error)
- func ConvertToString(v interface{}) string
- func EvaluateRules(vm *goja.Runtime, rules []map[string]interface{}, data map[string]interface{}) interface{}
- func FileToString(name string) string
- func RenderTemplate(vm *goja.Runtime, args map[string]interface{}) (interface{}, error)
- func SendEmail(vm *goja.Runtime, args map[string]interface{}) (interface{}, error)
- func SendMail(mailTo string, subject string, msg string, format string, attach string)
- func SendMailAsync(mailTo string, subject string, msg string, format string, attach string)
- func StringToFile(filenanme string, content string) error
- type ClientHTTP
- type ConfigMail
- type ConfigTwilio
- type GeminiCandidate
- type GeminiContent
- type GeminiPart
- type GeminiRequest
- type GeminiResponse
- type GojaPlugin
- type IAnFlow
- type MailPlugin
- type OllamaChatRequest
- type OllamaChatResponse
- type OllamaMessage
- type RulePlugin
- type TemplatePluings
- type TwilioPlugin
- func (d TwilioPlugin) AddFeatureJS() map[string]interface{}
- func (d TwilioPlugin) Initialize(enable bool, accoundSid, authToken, serviceSid string)
- func (d TwilioPlugin) Name() string
- func (d TwilioPlugin) Run(c echo.Context, vars map[string]string, payloadIn interface{}, ...) (payloadOut interface{}, next string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallHttpClient ¶
CallHttpClient simulates HTTP client functionality for testing
func ConvertToString ¶
func ConvertToString(v interface{}) string
ConvertToString converts various types to string for testing
func EvaluateRules ¶
func EvaluateRules(vm *goja.Runtime, rules []map[string]interface{}, data map[string]interface{}) interface{}
EvaluateRules evaluates a set of rules for testing
func FileToString ¶
func RenderTemplate ¶
RenderTemplate renders a mustache template for testing
func SendMailAsync ¶
SendMailAsync return function for send mail async
func StringToFile ¶
Types ¶
type ClientHTTP ¶
type ClientHTTP string
func (ClientHTTP) AddFeatureJS ¶
func (d ClientHTTP) AddFeatureJS() map[string]interface{}
func (ClientHTTP) Name ¶
func (d ClientHTTP) Name() string
type ConfigMail ¶
type ConfigTwilio ¶
type GeminiCandidate ¶
type GeminiCandidate struct {
Content GeminiContent `json:"content"`
}
--- Estructuras para la respuesta de Gemini ---
type GeminiContent ¶
type GeminiContent struct {
Parts []GeminiPart `json:"parts"`
}
type GeminiPart ¶
type GeminiPart struct {
Text string `json:"text"`
}
--- Estructuras para la solicitud a Gemini ---
type GeminiRequest ¶
type GeminiRequest struct {
Contents []GeminiContent `json:"contents"`
}
type GeminiResponse ¶
type GeminiResponse struct {
Candidates []GeminiCandidate `json:"candidates"`
}
type GojaPlugin ¶
type GojaPlugin string
func (GojaPlugin) AddFeatureJS ¶
func (d GojaPlugin) AddFeatureJS() map[string]interface{}
func (GojaPlugin) Name ¶
func (d GojaPlugin) Name() string
type MailPlugin ¶
type MailPlugin string
func (MailPlugin) AddFeatureJS ¶
func (d MailPlugin) AddFeatureJS() map[string]interface{}
func (MailPlugin) Name ¶
func (d MailPlugin) Name() string
type OllamaChatRequest ¶
type OllamaChatRequest struct {
Model string `json:"model"`
Messages []OllamaMessage `json:"messages"`
Stream bool `json:"stream"`
}
type OllamaChatResponse ¶
type OllamaChatResponse struct {
Message OllamaMessage `json:"message"`
Done bool `json:"done"`
}
type OllamaMessage ¶
type RulePlugin ¶
type RulePlugin string
func (RulePlugin) AddFeatureJS ¶
func (d RulePlugin) AddFeatureJS() map[string]interface{}
func (RulePlugin) Name ¶
func (d RulePlugin) Name() string
type TemplatePluings ¶
type TemplatePluings string
func (TemplatePluings) AddFeatureJS ¶
func (d TemplatePluings) AddFeatureJS() map[string]interface{}
func (TemplatePluings) Name ¶
func (d TemplatePluings) Name() string
type TwilioPlugin ¶
type TwilioPlugin string
func (TwilioPlugin) AddFeatureJS ¶
func (d TwilioPlugin) AddFeatureJS() map[string]interface{}
func (TwilioPlugin) Initialize ¶
func (d TwilioPlugin) Initialize(enable bool, accoundSid, authToken, serviceSid string)
func (TwilioPlugin) Name ¶
func (d TwilioPlugin) Name() string
Click to show internal directories.
Click to hide internal directories.