Documentation
¶
Index ¶
- func Enable(vm *goja.Runtime)
- func FetchFn(url string, options map[string]interface{}) string
- func GetCommonCodes() string
- func Log(args ...interface{})
- func ReadFromCache(key string) interface{}
- func WriteToCache(key string, value interface{})
- type ScriptService
- func (s *ScriptService) BeginTx()
- func (s *ScriptService) ClearTx()
- func (s *ScriptService) Commit()
- func (s *ScriptService) EmitNotification(text string, noticeType string, userId uint64)
- func (s *ScriptService) Rollback()
- func (s *ScriptService) Save(objects []interface{}, entityName string) []orm.InsanceData
- func (s *ScriptService) SaveOne(object interface{}, entityName string) interface{}
- func (s *ScriptService) SetSession(session *orm.Session)
- func (s *ScriptService) WriteLog(operate string, result string, message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommonCodes ¶
func GetCommonCodes() string
func ReadFromCache ¶
func ReadFromCache(key string) interface{}
func WriteToCache ¶
func WriteToCache(key string, value interface{})
Types ¶
type ScriptService ¶
type ScriptService struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(ctx context.Context, repository *entify.Repository) *ScriptService
func (*ScriptService) BeginTx ¶
func (s *ScriptService) BeginTx()
func (*ScriptService) ClearTx ¶
func (s *ScriptService) ClearTx()
func (*ScriptService) Commit ¶
func (s *ScriptService) Commit()
func (*ScriptService) EmitNotification ¶
func (s *ScriptService) EmitNotification(text string, noticeType string, userId uint64)
func (*ScriptService) Rollback ¶
func (s *ScriptService) Rollback()
func (*ScriptService) Save ¶
func (s *ScriptService) Save(objects []interface{}, entityName string) []orm.InsanceData
func (*ScriptService) SaveOne ¶
func (s *ScriptService) SaveOne(object interface{}, entityName string) interface{}
func (*ScriptService) SetSession ¶
func (s *ScriptService) SetSession(session *orm.Session)
Click to show internal directories.
Click to hide internal directories.