Documentation ¶
Index ¶
- Variables
- func GetJsFunsParams(runtime *goja.Runtime, funName string) (res string, err error)
- func InitJslibCache(tenantId consts.TenantId) (err error)
- func LoadCacheIfNeeded(tenantId consts.TenantId) (err error)
- func LoadServerJslibs(tenantId consts.TenantId, runtime *goja.Runtime, ...)
- func SetJslibCache(tenantId consts.TenantId, id uint, val Jslib)
- type JsFunc
- type Jslib
- type SysJslib
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IsCacheReady bool JslibCache sync.Map )
Functions ¶
func GetJsFunsParams ¶
func InitJslibCache ¶
func LoadCacheIfNeeded ¶
func LoadServerJslibs ¶
Types ¶
type Jslib ¶
type SysJslib ¶
type SysJslib struct { ID uint `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` Deleted bool `json:"-" gorm:"default:false"` Disabled bool `json:"disabled,omitempty" gorm:"default:false"` Name string `json:"name"` ScriptFile string `json:"scriptFile" gorm:"type:text" validate:"required"` TypesFile string `json:"typesFile" gorm:"type:text"` CreateUser string `json:"createUser"` UpdateUser string `json:"updateUser"` ProjectId uint `json:"projectId"` }
Click to show internal directories.
Click to hide internal directories.