Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound not found ErrNotFound = errors.New("not found") // ErrDuplicateFields duplicate fields ErrDuplicateFields = errors.New("duplicate fields") )
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { GetModule(ctx context.Context, moduleID string) (models.Module, error) GetModuleByPhoneNumber(ctx context.Context, phoneNumber string) (models.Module, error) GetAllModulesWithOutPagination(ctx context.Context) ([]models.Module, error) GetAllModules(ctx context.Context) ([]models.Module, string, error) GetModulesByRiverWithoutPagination(ctx context.Context, riverID string) ([]models.Module, error) GetModulesByRiver(ctx context.Context) ([]models.Module, string, error) SaveModule(ctx context.Context, module models.Module) (models.Module, error) UpdateModule(ctx context.Context, moduleID string, options models.ModuleUpdateOptions) error }
Repository defines the data-persistance methods related to modules
Click to show internal directories.
Click to hide internal directories.