repository

package
v0.0.0-...-833fa1d Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package repository implements methods of working with the repository objects

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	repository.Repository
}

Repository DAO which provides functionality of working with RBAC song-tabulatures

func New

func New() *Repository

New role repository

func (*Repository) Count

func (r *Repository) Count(ctx context.Context, filter *option.Filter) (int64, error)

Count returns count of records by filter

func (*Repository) Delete

func (r *Repository) Delete(ctx context.Context, name string, otype model.OptionType, targetID uint64) error

Delete delites record by ID

func (*Repository) FetchList

func (r *Repository) FetchList(ctx context.Context, filter *option.Filter, order *option.ListOrder, pagination *repository.Pagination) ([]*model.Option, error)

FetchList returns list of

func (*Repository) Get

func (r *Repository) Get(ctx context.Context, name string, otype model.OptionType, targetID uint64) (*model.Option, error)

Get returns option by ID

func (*Repository) Set

func (r *Repository) Set(ctx context.Context, obj *model.Option) error

Set new or update object in database

Jump to

Keyboard shortcuts

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