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
a439a781
Commit
a439a781
authored
1 year ago
by
ko_oler
Browse files
Options
Downloads
Patches
Plain Diff
правки в storage
parent
59bc842a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pkg/log/service.go
+1
-1
1 addition, 1 deletion
pkg/log/service.go
pkg/log/storage.go
+9
-6
9 additions, 6 deletions
pkg/log/storage.go
with
10 additions
and
7 deletions
pkg/log/service.go
+
1
−
1
View file @
a439a781
...
...
@@ -16,7 +16,7 @@ type Service interface {
LogEntry
(
ctx
context
.
Context
,
entry
*
Entry
)
error
// Find метод для поиска логов по заданным параметрам
Find
(
ctx
context
.
Context
,
request
*
FindRequest
)
(
*
FindResult
,
error
)
Find
(
ctx
context
.
Context
,
filter
*
Filter
,
options
options
.
FindOptions
)
(
*
FindResult
,
error
)
// Delete метод для удаления логов по заданным параметрам
Delete
(
ctx
context
.
Context
,
filter
*
Filter
)
error
...
...
This diff is collapsed.
Click to expand it.
pkg/log/storage.go
+
9
−
6
View file @
a439a781
package
log
import
"context"
import
(
"context"
"git.perx.ru/perxis/perxis-go/pkg/options"
)
type
Storage
interface
{
Log
(
ctx
context
.
Context
,
entries
chan
<-
*
Entry
)
error
LogEntry
(
ctx
context
.
Context
,
entry
*
Entry
)
error
Find
(
ctx
context
.
Context
,
request
*
FindRequest
)
(
*
FindResult
,
error
)
Delete
(
ctx
context
.
Context
,
filter
*
Filter
)
error
Reset
(
ctx
context
.
Context
)
error
Init
(
ctx
context
.
Context
)
error
Reset
(
ctx
context
.
Context
)
error
Log
(
ctx
context
.
Context
,
entry
[]
*
Entry
)
error
Find
(
ctx
context
.
Context
,
filter
*
Filter
,
options
options
.
FindOptions
)
([]
*
Entry
,
int
,
error
)
Delete
(
ctx
context
.
Context
,
filter
*
Filter
)
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