Skip to content
Snippets Groups Projects
Commit a439a781 authored by ko_oler's avatar ko_oler
Browse files

правки в storage

parent 59bc842a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment