operation

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	common.DefaultDBService
}

func (Operation) Create

func (o Operation) Create(operation *operation.Operation, options common.DBOptions) error

func (Operation) List

func (o Operation) List(repoid, optype int, options common.DBOptions) (operations []operation.Operation, err error)

func (Operation) ListLast

func (o Operation) ListLast(repoid, optype int, options common.DBOptions) (operations operation.Operation, err error)

func (Operation) Update

func (o Operation) Update(operation *operation.Operation, options common.DBOptions) error

func (Operation) UpdateField

func (o Operation) UpdateField(id int, fieldName string, value interface{}, options common.DBOptions) error

type Service

type Service interface {
	common.DBService
	Create(operation *operation.Operation, options common.DBOptions) error
	List(repoid, optype int, options common.DBOptions) ([]operation.Operation, error)
	ListLast(repoid, optype int, options common.DBOptions) (operation.Operation, error)
	Update(operation *operation.Operation, options common.DBOptions) error
	UpdateField(id int, fieldName string, value interface{}, options common.DBOptions) error
}

func GetService

func GetService() Service

Jump to

Keyboard shortcuts

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