Documentation ¶
Index ¶
- func ProvideService(db db.DB, cfg *setting.Cfg, features *featuremgmt.FeatureManager) pref.Service
- type Service
- func (s *Service) DeleteByUser(ctx context.Context, userID int64) error
- func (s *Service) Get(ctx context.Context, query *pref.GetPreferenceQuery) (*pref.Preference, error)
- func (s *Service) GetDefaults() *pref.Preference
- func (s *Service) GetWithDefaults(ctx context.Context, query *pref.GetPreferenceWithDefaultsQuery) (*pref.Preference, error)
- func (s *Service) Patch(ctx context.Context, cmd *pref.PatchPreferenceCommand) error
- func (s *Service) Save(ctx context.Context, cmd *pref.SavePreferenceCommand) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProvideService ¶
func ProvideService(db db.DB, cfg *setting.Cfg, features *featuremgmt.FeatureManager) pref.Service
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) DeleteByUser ¶
func (*Service) Get ¶
func (s *Service) Get(ctx context.Context, query *pref.GetPreferenceQuery) (*pref.Preference, error)
func (*Service) GetDefaults ¶
func (s *Service) GetDefaults() *pref.Preference
func (*Service) GetWithDefaults ¶
func (s *Service) GetWithDefaults(ctx context.Context, query *pref.GetPreferenceWithDefaultsQuery) (*pref.Preference, error)
Click to show internal directories.
Click to hide internal directories.