repository

package
v3.8.8 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	Create(ctx context.Context, entity interface{}) (string, error)
	Get(ctx context.Context, filter map[string]interface{}, skip, take *int) ([]interface{}, error)
	GetByID(ctx context.Context, ID string) (interface{}, error)
	Update(ctx context.Context, ID string, entity interface{}) error
	Delete(ctx context.Context, ID string) error
}

Repository interface to be used as a port

Jump to

Keyboard shortcuts

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