dao

package
v0.0.0-...-a548ab7 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAO

type DAO interface {
	// Create create metadata instances for the project
	Create(ctx context.Context, projectID int64, name, value string) (int64, error)

	// Delete delete metadata interfaces filtered the query
	Delete(ctx context.Context, query *q.Query) error

	// Update update the value of metadata instance
	Update(ctx context.Context, projectID int64, name, value string) error

	// List returns project metadata instances
	List(ctx context.Context, query *q.Query) ([]*models.ProjectMetadata, error)
}

DAO is the data access object interface for project metadata

func New

func New() DAO

New returns an instance of the default DAO

Jump to

Keyboard shortcuts

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