Documentation
¶
Index ¶
- Variables
- type SourceManager
- func (m *SourceManager) BuildSourceFilterAndSortOptions(ctx context.Context, query *url.Values) (*entity.SourceFilter, *entity.SortOptions, error)
- func (m *SourceManager) CreateSource(ctx context.Context, requestPayload request.CreateSourceRequest) (*entity.Source, error)
- func (m *SourceManager) DeleteSourceByID(ctx context.Context, id uint) error
- func (m *SourceManager) GetSourceByID(ctx context.Context, id uint) (*entity.Source, error)
- func (m *SourceManager) ListSources(ctx context.Context, filter *entity.SourceFilter, ...) (*entity.SourceListResult, error)
- func (m *SourceManager) UpdateSourceByID(ctx context.Context, id uint, requestPayload request.UpdateSourceRequest) (*entity.Source, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type SourceManager ¶
type SourceManager struct {
// contains filtered or unexported fields
}
func NewSourceManager ¶
func NewSourceManager(sourceRepo repository.SourceRepository) *SourceManager
func (*SourceManager) BuildSourceFilterAndSortOptions ¶ added in v0.14.0
func (m *SourceManager) BuildSourceFilterAndSortOptions(ctx context.Context, query *url.Values) (*entity.SourceFilter, *entity.SortOptions, error)
func (*SourceManager) CreateSource ¶
func (m *SourceManager) CreateSource(ctx context.Context, requestPayload request.CreateSourceRequest) (*entity.Source, error)
func (*SourceManager) DeleteSourceByID ¶
func (m *SourceManager) DeleteSourceByID(ctx context.Context, id uint) error
func (*SourceManager) GetSourceByID ¶
func (*SourceManager) ListSources ¶
func (m *SourceManager) ListSources(ctx context.Context, filter *entity.SourceFilter, sortOptions *entity.SortOptions) (*entity.SourceListResult, error)
func (*SourceManager) UpdateSourceByID ¶
func (m *SourceManager) UpdateSourceByID(ctx context.Context, id uint, requestPayload request.UpdateSourceRequest) (*entity.Source, error)
Click to show internal directories.
Click to hide internal directories.