Documentation ¶
Index ¶
- type Service
- type ServiceImpl
- func (s *ServiceImpl) GetTranslation(ctx context.Context, projectID int, languageCode, format string) (*Translation, error)
- func (s *ServiceImpl) PurgeProject(ctx context.Context, projectID int) error
- func (s *ServiceImpl) PurgeTranslation(ctx context.Context, projectID int, languageCode string) error
- func (s *ServiceImpl) RegisterChecks(h gosundheit.Health) error
- type Translation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { GetTranslation(ctx context.Context, projectID int, languageCode, format string) (trans *Translation, err error) PurgeTranslation(ctx context.Context, projectID int, languageCode string) (err error) PurgeProject(ctx context.Context, projectID int) (err error) RegisterChecks(h gosundheit.Health) (err error) }
type ServiceImpl ¶
type ServiceImpl struct { Logger *logrus.Entry Client poedit.Client Cache cache.Cache RenewalThreshold time.Duration PreFetchSemaphore *semaphore.Weighted }
func NewService ¶
func (*ServiceImpl) GetTranslation ¶
func (s *ServiceImpl) GetTranslation(ctx context.Context, projectID int, languageCode, format string) (*Translation, error)
func (*ServiceImpl) PurgeProject ¶
func (s *ServiceImpl) PurgeProject(ctx context.Context, projectID int) error
func (*ServiceImpl) PurgeTranslation ¶
func (*ServiceImpl) RegisterChecks ¶ added in v0.4.0
func (s *ServiceImpl) RegisterChecks(h gosundheit.Health) error
Click to show internal directories.
Click to hide internal directories.