Documentation ¶
Index ¶
- Variables
- type SourceManager
- 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) ([]*entity.Source, 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) 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 (*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.