Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-go
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-go
Commits
8a5d6f58
Commit
8a5d6f58
authored
1 month ago
by
Anton Sattarov
Browse files
Options
Downloads
Patches
Plain Diff
fix for lint
parent
88de7798
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/items/storage.go
+12
-2
12 additions, 2 deletions
pkg/items/storage.go
with
12 additions
and
2 deletions
pkg/items/storage.go
+
12
−
2
View file @
8a5d6f58
...
@@ -47,7 +47,12 @@ type Storage interface {
...
@@ -47,7 +47,12 @@ type Storage interface {
)
(
*
Item
,
error
)
)
(
*
Item
,
error
)
// ListRevisions - поиск всех ревизий одной записи
// ListRevisions - поиск всех ревизий одной записи
ListRevisions
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemID
string
,
options
...*
StorageFindOptions
)
([]
*
Item
,
int
,
error
)
ListRevisions
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemID
string
,
options
...*
StorageFindOptions
,
)
([]
*
Item
,
int
,
error
)
// ChangeRevisionsItemID - заменить ID элемента у его ревизий
// ChangeRevisionsItemID - заменить ID элемента у его ревизий
ChangeRevisionsItemID
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemID
,
newItemID
string
)
error
ChangeRevisionsItemID
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemID
,
newItemID
string
)
error
...
@@ -83,7 +88,12 @@ type Storage interface {
...
@@ -83,7 +88,12 @@ type Storage interface {
RemoveRevisions
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemID
string
,
options
...*
DeleteOptions
)
error
RemoveRevisions
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemID
string
,
options
...*
DeleteOptions
)
error
// RemoveRevision - удаление конкретной ревизии из Revisions
// RemoveRevision - удаление конкретной ревизии из Revisions
RemoveRevision
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
revisionID
string
,
options
...*
DeleteOptions
)
error
RemoveRevision
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
revisionID
string
,
options
...*
DeleteOptions
,
)
error
// RemoveArchived - удаление записи из архива
// RemoveArchived - удаление записи из архива
RemoveArchived
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemID
string
,
options
...*
DeleteOptions
)
error
RemoveArchived
(
ctx
context
.
Context
,
coll
*
collections
.
Collection
,
itemID
string
,
options
...*
DeleteOptions
)
error
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment