script

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enable

func Enable(vm *goja.Runtime)

func FetchFn

func FetchFn(url string, options map[string]interface{}) interface{}

func GetCommonCodes

func GetCommonCodes() string

func Log

func Log(args ...interface{})

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)

func (*EntifyService) WriteLog added in v0.0.10

func (s *EntifyService) WriteLog(
	operate string,
	result string,
	message string,
)

Jump to

Keyboard shortcuts

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