Skip to content
Snippets Groups Projects
Commit 8f8f8dcd authored by Pavel Antonov's avatar Pavel Antonov :asterisk:
Browse files

Merge branch 'feature/PRXS-2716-LocaleUpdateObserver' into 'master'

Добавлен интерфейс для получения событий при изменении локали

See merge request perxis/perxis-go!287
parents 7c9c6196 a7be7c3f
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,10 @@ type LocaleCreatedObserver interface { ...@@ -6,6 +6,10 @@ type LocaleCreatedObserver interface {
OnLocaleCreated(ctx context.Context, locale *Locale) (delayedTaskID string, err error) OnLocaleCreated(ctx context.Context, locale *Locale) (delayedTaskID string, err error)
} }
type LocaleUpdatedObserver interface {
OnLocaleUpdated(ctx context.Context, before, locale *Locale) (delayedTaskID string, err error)
}
type LocaleDeletedObserver interface { type LocaleDeletedObserver interface {
OnLocaleDeleted(ctx context.Context, locale *Locale) (delayedTaskID string, err error) OnLocaleDeleted(ctx context.Context, locale *Locale) (delayedTaskID string, err 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