datalog

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package datalog @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License

Package datalog @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License

Package datalog @Link https://gitee.com/linngc/webos.gf @Copyright Copyright (c) 2022 webos CLI @Author linngc @License

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSysAppidLog

func RegisterSysAppidLog(i ISysAppidLog)

func RegisterSysJobLog

func RegisterSysJobLog(i ISysJobLog)

func RegisterSysLog

func RegisterSysLog(i ISysLog)

Types

type ISysAppidLog

type ISysAppidLog interface {
	AllList(ctx context.Context) (entities []*entity.SysAppidLog, err error)
	GetById(ctx context.Context, id int) (entity *entity.SysAppidLog, err error)
	SaveOrUpdate(ctx context.Context, entity *entity.SysAppidLog) (err error)
	SaveOrUpdateBatch(ctx context.Context, entities []*entity.SysAppidLog) (err error)
	Count(ctx context.Context) (count int, err error)
	Delete(ctx context.Context, ids []int) (err error)
	DeleteAndSaveBatch(ctx context.Context, entities []*entity.SysAppidLog) (err error)
}

func SysAppidLog

func SysAppidLog() ISysAppidLog

type ISysJobLog

type ISysJobLog interface {
	Begin(ctx context.Context, jobId int, result string) (err error) // 开始执行
	End(ctx context.Context, jobId int, result string) (err error)   //执行完成
	Error(ctx context.Context, jobId int, result string) (err error) //执行出错

	AllList(ctx context.Context) (entities []*entity.SysJobLog, err error)
	GetById(ctx context.Context, id int) (entity *entity.SysJobLog, err error)
	SaveOrUpdate(ctx context.Context, entity *entity.SysJobLog) (err error)
	SaveOrUpdateBatch(ctx context.Context, entities []*entity.SysJobLog) (err error)
	Count(ctx context.Context) (count int, err error)
	Delete(ctx context.Context, ids []int) (err error)
	DeleteAndSaveBatch(ctx context.Context, entities []*entity.SysJobLog) (err error)
}

func SysJobLog

func SysJobLog() ISysJobLog

type ISysLog

type ISysLog interface {
	AllList(ctx context.Context) (entities []*entity.SysLog, err error)
	GetById(ctx context.Context, id int) (entity *entity.SysLog, err error)
	SaveOrUpdate(ctx context.Context, entity *entity.SysLog) (err error)
	SaveOrUpdateBatch(ctx context.Context, entities []*entity.SysLog) (err error)
	Count(ctx context.Context) (count int, err error)
	Delete(ctx context.Context, ids []int) (err error)
	DeleteAndSaveBatch(ctx context.Context, entities []*entity.SysLog) (err error)
}

func SysLog

func SysLog() ISysLog

Jump to

Keyboard shortcuts

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