Documentation
¶
Index ¶
- func Enable(vm *goja.Runtime)
- func FetchFn(url string, options map[string]interface{}) interface{}
- func GetCommonCodes() string
- func Log(args ...interface{})
- func ReadFromCache(key string) interface{}
- func WriteToCache(key string, value interface{})
- type EntifyService
- func (s *EntifyService) BeginTx()
- func (s *EntifyService) ClearTx()
- func (s *EntifyService) Commit()
- func (s *EntifyService) EmitNotification(text string, noticeType string, userId uint64)
- func (s *EntifyService) Rollback()
- func (s *EntifyService) Save(objects []interface{}, entityName string) []orm.InsanceData
- func (s *EntifyService) SaveOne(object interface{}, entityName string) interface{}
- func (s *EntifyService) SetSession(session *orm.Session)
- func (s *EntifyService) 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 EntifyService ¶ added in v0.0.10
type EntifyService struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(ctx context.Context, repository *entify.Repository) *EntifyService
func (*EntifyService) BeginTx ¶ added in v0.0.10
func (s *EntifyService) BeginTx()
func (*EntifyService) ClearTx ¶ added in v0.0.10
func (s *EntifyService) ClearTx()
func (*EntifyService) Commit ¶ added in v0.0.10
func (s *EntifyService) Commit()
func (*EntifyService) EmitNotification ¶ added in v0.0.10
func (s *EntifyService) EmitNotification(text string, noticeType string, userId uint64)
func (*EntifyService) Rollback ¶ added in v0.0.10
func (s *EntifyService) Rollback()
func (*EntifyService) Save ¶ added in v0.0.10
func (s *EntifyService) Save(objects []interface{}, entityName string) []orm.InsanceData
func (*EntifyService) SaveOne ¶ added in v0.0.10
func (s *EntifyService) SaveOne(object interface{}, entityName string) interface{}
func (*EntifyService) SetSession ¶ added in v0.0.10
func (s *EntifyService) SetSession(session *orm.Session)
Click to show internal directories.
Click to hide internal directories.