dao

package
v0.0.0-...-969384c Latest Latest
Warning

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

Go to latest
Published: Nov 22, 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 {
	CreateImmutableRule(ctx context.Context, ir *model.ImmutableRule) (int64, error)
	UpdateImmutableRule(ctx context.Context, projectID int64, ir *model.ImmutableRule) error
	ToggleImmutableRule(ctx context.Context, id int64, status bool) error
	GetImmutableRule(ctx context.Context, id int64) (*model.ImmutableRule, error)
	Count(ctx context.Context, query *q.Query) (int64, error)
	ListImmutableRules(ctx context.Context, query *q.Query) ([]*model.ImmutableRule, error)
	DeleteImmutableRule(ctx context.Context, id int64) error
}

DAO defines the interface to access the ImmutableRule data model

func New

func New() DAO

New creates a default implementation for DAO

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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