script

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 12 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{}) string

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 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)

func (*ScriptService) WriteLog

func (s *ScriptService) 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