Stanislav N. aka pztrn e3b9c9ae40
Some checks failed
Linting and tests / Linting (push) Failing after 5s
Linting and tests / Tests (push) Failing after 4s
The very basic client app, not adapted for mobiles.
2025-09-10 19:34:49 +05:00

26 lines
1.1 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package core
import (
"errors"
"bunker/client/internal/services/core/options/dto"
)
// ServiceNameOptions это название для сервиса работы с настройками.
const ServiceNameOptions = "core/options"
var (
// ErrOptions говорит о возникновении ошибки в сервисе работы с настройками.
ErrOptions = errors.New("options core service")
// ErrOptionsIsInvalid говорит о неверной имплементации сервиса работы с настройками.
ErrOptionsIsInvalid = errors.New("options service implementation is invalid")
)
// Options это интерфейс для сервиса работы с настройками.
type Options interface {
// RegisterOptionsWidget регистрирует виджет настроек, а также необходимые дополнительные параметры.
RegisterOptionsWidget(widgetData *dto.OptionPane) error
// ShowOptionsDialog показывает диалог с настройками. Используется только главным окном!
ShowOptionsDialog()
}