datarepository

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataRepositoryAPI

type DataRepositoryAPI struct {
	// contains filtered or unexported fields
}

func New

func (*DataRepositoryAPI) Delete

func (dr *DataRepositoryAPI) Delete(IDs []string) (int64, error)

Delete items

func (*DataRepositoryAPI) Get

func (dr *DataRepositoryAPI) Get(filters []storageTY.Filter) (*repositoryTY.Config, error)

Get returns a item

func (*DataRepositoryAPI) GetByID

func (dr *DataRepositoryAPI) GetByID(id string) (*repositoryTY.Config, error)

GetByID returns a item by id

func (*DataRepositoryAPI) GetEntityInterface

func (dr *DataRepositoryAPI) GetEntityInterface() interface{}

func (*DataRepositoryAPI) Import

func (dr *DataRepositoryAPI) Import(data interface{}) error

func (*DataRepositoryAPI) List

func (dr *DataRepositoryAPI) List(filters []storageTY.Filter, pagination *storageTY.Pagination) (*storageTY.Result, error)

List by filter and pagination

func (*DataRepositoryAPI) Save

func (dr *DataRepositoryAPI) Save(data *repositoryTY.Config) error

Save is used to update items from UI

Jump to

Keyboard shortcuts

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