function

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionEnvironment

type ExecutionEnvironment struct {
	Auth      model.Auth
	BaseName  string
	DataStore database.Persister
	Volatile  cache.Volatilizer
	Email     email.Mailer
	Search    *search.Search
	Data      model.ExecData

	CurrentRun model.ExecHistory
	Log        *logger.Logger
}

func (*ExecutionEnvironment) Execute

func (env *ExecutionEnvironment) Execute(data interface{}) error

type HTTPResponse added in v1.4.0

type HTTPResponse struct {
	Status int    `json:"status"`
	Body   string `json:"body"`
}

type JSFetchOptionsArg added in v1.4.0

type JSFetchOptionsArg struct {
	Method         string
	Headers        map[string]string
	Body           string
	Mode           string
	Credentials    string
	Cache          string
	Redirect       string
	Referrer       string
	ReferrerPolicy string
	Integrity      string
	Keepalive      string
	Signal         string
}

func NewJSFetcthOptionArg added in v1.4.0

func NewJSFetcthOptionArg() JSFetchOptionsArg

type JSSendMailArg added in v1.5.0

type JSSendMailArg struct {
	From     string `json:"from"`
	To       string `json:"to"`
	Subject  string `json:"subject"`
	HTMLBody string `json:"htmlBody"`
	TextBody string `json:"textBody"`
}

type Result

type Result struct {
	OK      bool        `json:"ok"`
	Content interface{} `json:"content"`
}

type Subscriber

type Subscriber struct {
	PubSub            cache.Volatilizer
	GetExecEnv        func(msg model.Command) (*ExecutionEnvironment, error)
	Log               *logger.Logger
	IsPrimaryInstance bool
	// contains filtered or unexported fields
}

func (*Subscriber) Start

func (sub *Subscriber) Start()

Start starts the system event subscription. This channel is responsible of executing functions that match the topic/trigger

type TaskScheduler

type TaskScheduler struct {
	Volatile  cache.Volatilizer
	DataStore database.Persister
	Search    *search.Search
	Email     email.Mailer
	Log       *logger.Logger

	Scheduler *gocron.Scheduler
}

func (*TaskScheduler) AddOnTheFly added in v1.5.0

func (ts *TaskScheduler) AddOnTheFly(task model.Task)

func (*TaskScheduler) CancelTask added in v1.5.0

func (ts *TaskScheduler) CancelTask(id string) error

func (*TaskScheduler) Start

func (ts *TaskScheduler) Start()

Jump to

Keyboard shortcuts

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