Documentation ¶
Index ¶
- Variables
- func CreateGoJaProgram(file string, script []byte) (program *goja.Program, content string, err error)
- func ExtractInlineJsArrowFunc(handlerContent, handlerName string) string
- func ExtractInlineJsFunc(handlerContent, handlerName string) string
- func ExtractInlineJsNormalFunc(handlerContent, handlerName string) string
- func IsValidJSFuncName(name string) bool
- type AppLike
- type Builder
- type ConfigActions
- func (p *ConfigActions) AddSchemas(schemas ...map[string]any) error
- func (p *ConfigActions) OnPostDBCreate(hooks ...goja.Value) error
- func (p *ConfigActions) OnPostDBDelete(hooks ...goja.Value) error
- func (p *ConfigActions) OnPostDBExec(hooks ...goja.Value) error
- func (p *ConfigActions) OnPostDBQuery(hooks ...goja.Value) error
- func (p *ConfigActions) OnPostDBUpdate(hooks ...goja.Value) error
- func (p *ConfigActions) OnPostResolve(hooks ...goja.Value) (err error)
- func (p *ConfigActions) OnPreDBCreate(hooks ...goja.Value) error
- func (p *ConfigActions) OnPreDBDelete(hooks ...goja.Value) error
- func (p *ConfigActions) OnPreDBExec(hooks ...goja.Value) error
- func (p *ConfigActions) OnPreDBQuery(hooks ...goja.Value) (err error)
- func (p *ConfigActions) OnPreDBUpdate(hooks ...goja.Value) error
- func (p *ConfigActions) OnPreResolve(hooks ...goja.Value) (err error)
- type DB
- func (d *DB) Builder(schemaName string) (*Builder, error)
- func (d *DB) Commit() error
- func (d *DB) Exec(ctx context.Context, query string, args ...any) (sql.Result, error)
- func (d *DB) Query(ctx context.Context, query string, args ...any) ([]*entity.Entity, error)
- func (d *DB) Rollback() error
- func (d *DB) Tx(ctx context.Context) (*DB, error)
- type GetVMSet
- type Manager
- type Plugin
- type Program
- type Resource
- type VM
- type VMPool
- type VMPools
- type VMProps
Constants ¶
This section is empty.
Variables ¶
View Source
var Pools = &VMPools{ pools: map[string]*VMPool{}, }
View Source
var Require = new(gojarequire.Registry)
Functions ¶
func CreateGoJaProgram ¶
func ExtractInlineJsFunc ¶
func IsValidJSFuncName ¶
Types ¶
type Builder ¶
type Builder struct { *db.QueryBuilder[*entity.Entity] // contains filtered or unexported fields }
type ConfigActions ¶
func NewConfigActions ¶
func NewConfigActions(app AppLike, program *Program, set map[string]any) *ConfigActions
func (*ConfigActions) AddSchemas ¶
func (p *ConfigActions) AddSchemas(schemas ...map[string]any) error
func (*ConfigActions) OnPostDBCreate ¶
func (p *ConfigActions) OnPostDBCreate(hooks ...goja.Value) error
func (*ConfigActions) OnPostDBDelete ¶
func (p *ConfigActions) OnPostDBDelete(hooks ...goja.Value) error
func (*ConfigActions) OnPostDBExec ¶
func (p *ConfigActions) OnPostDBExec(hooks ...goja.Value) error
func (*ConfigActions) OnPostDBQuery ¶
func (p *ConfigActions) OnPostDBQuery(hooks ...goja.Value) error
func (*ConfigActions) OnPostDBUpdate ¶
func (p *ConfigActions) OnPostDBUpdate(hooks ...goja.Value) error
func (*ConfigActions) OnPostResolve ¶
func (p *ConfigActions) OnPostResolve(hooks ...goja.Value) (err error)
func (*ConfigActions) OnPreDBCreate ¶
func (p *ConfigActions) OnPreDBCreate(hooks ...goja.Value) error
func (*ConfigActions) OnPreDBDelete ¶
func (p *ConfigActions) OnPreDBDelete(hooks ...goja.Value) error
func (*ConfigActions) OnPreDBExec ¶
func (p *ConfigActions) OnPreDBExec(hooks ...goja.Value) error
func (*ConfigActions) OnPreDBQuery ¶
func (p *ConfigActions) OnPreDBQuery(hooks ...goja.Value) (err error)
func (*ConfigActions) OnPreDBUpdate ¶
func (p *ConfigActions) OnPreDBUpdate(hooks ...goja.Value) error
func (*ConfigActions) OnPreResolve ¶
func (p *ConfigActions) OnPreResolve(hooks ...goja.Value) (err error)
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
type Program ¶
type Program struct {
// contains filtered or unexported fields
}
func (*Program) VerifyJsFunc ¶
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func NewResource ¶
Click to show internal directories.
Click to hide internal directories.