Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRepositoryRequired = errors.New("admintranslations: repository is required")
ErrRepositoryRequired indicates the service was constructed without a repository.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Service)
Option mutates the service configuration.
func WithAuditRecorder ¶
func WithAuditRecorder(recorder jobs.AuditRecorder) Option
WithAuditRecorder overrides the audit recorder dependency.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service persists translation settings and emits audit records.
func NewService ¶
func NewService(repo translationconfig.Repository, recorder jobs.AuditRecorder, opts ...Option) *Service
NewService constructs a translations admin service.
func (*Service) ApplySettings ¶
ApplySettings stores translation settings and records an audit entry.
func (*Service) GetSettings ¶
GetSettings returns the stored translation settings.
Click to show internal directories.
Click to hide internal directories.