Documentation
¶
Index ¶
- type CustomSetting
- type CustomSettingEditDTO
- type Repo
- type Store
- func (s *Store) AddCustomSetting(ctx context.Context, customSetting CustomSetting) (CustomSetting, error)
- func (s *Store) DeleteCustomSetting(ctx context.Context, settingID string) error
- func (s *Store) EditCustomSetting(ctx context.Context, settingID string, customSettingEdit CustomSettingEditDTO) (CustomSetting, error)
- func (s *Store) GetCustomSetting(ctx context.Context, settingID string) (CustomSetting, error)
- func (s *Store) ListCustomSettings(ctx context.Context) ([]CustomSetting, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomSetting ¶
type CustomSettingEditDTO ¶
type Repo ¶
type Repo interface {
ListCustomSettings(ctx context.Context) ([]CustomSetting, error)
GetCustomSetting(ctx context.Context, settingID string) (CustomSetting, error)
AddCustomSetting(ctx context.Context, customSetting CustomSetting) (CustomSetting, error)
EditCustomSetting(ctx context.Context, settingID string, customSettingEdit CustomSettingEditDTO) (CustomSetting, error)
DeleteCustomSetting(ctx context.Context, settingID string) error
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store contains our dependency
func (*Store) AddCustomSetting ¶
func (s *Store) AddCustomSetting(ctx context.Context, customSetting CustomSetting) (CustomSetting, error)
func (*Store) DeleteCustomSetting ¶
func (*Store) EditCustomSetting ¶
func (s *Store) EditCustomSetting(ctx context.Context, settingID string, customSettingEdit CustomSettingEditDTO) (CustomSetting, error)
func (*Store) GetCustomSetting ¶
func (*Store) ListCustomSettings ¶
func (s *Store) ListCustomSettings(ctx context.Context) ([]CustomSetting, error)
Click to show internal directories.
Click to hide internal directories.