store

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRecordNotFound = errors.New("record not found")
)

Functions

This section is empty.

Types

type OperationRepository

type OperationRepository interface {
	Add(operation ...model.Operation) error
	Create(operation *model.Operation) error
	DeleteByResourceID(id int64) error
}

type ResourceRepository

type ResourceRepository interface {
	Create(resource *model.Resource) error
	Update(resource *model.Resource) error
	FindByUID(uid string) (*model.Resource, error)
	All() ([]model.Resource, error)
}

type Store

type Store interface {
	Resource() ResourceRepository
	Operation() OperationRepository
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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