script

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 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) QueryOne added in v0.0.14

func (s *EntifyService) QueryOne(entityName string, args map[string]interface{}) interface{}

func (*EntifyService) Rollback added in v0.0.10

func (s *EntifyService) Rollback()

func (*EntifyService) Save added in v0.0.10

func (s *EntifyService) Save(entityName string, objects []interface{}) []orm.InsanceData

func (*EntifyService) SaveOne added in v0.0.10

func (s *EntifyService) SaveOne(entityName string, object interface{}) interface{}

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