joblog

package
v0.0.0-...-66c98c8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mgr = New()

Mgr is the global job log manager instance

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// Get the job log specified by ID
	Get(ctx context.Context, uuid string) (jobLog *models.JobLog, err error)
	// Create the job log
	Create(ctx context.Context, jobLog *models.JobLog) (id int64, err error)
	// DeleteBefore the job log specified by time
	DeleteBefore(ctx context.Context, t time.Time) (id int64, err error)
}

Manager is used for job log management

func New

func New() Manager

New returns a default implementation of Manager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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