Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO interface { // Create a region Create(ctx context.Context, region *models.Region) (*models.Region, error) // ListAll list all regions ListAll(ctx context.Context) ([]*models.Region, error) // GetRegion get a region by name GetRegion(ctx context.Context, regionName string) (*models.Region, error) // GetRegionByID get a region by id GetRegionByID(ctx context.Context, id uint) (*models.Region, error) // UpdateByID update region by id UpdateByID(ctx context.Context, id uint, region *models.Region) error // DeleteByID delete region by id DeleteByID(ctx context.Context, id uint) error // ListByRegionSelectors list region by tags ListByRegionSelectors(ctx context.Context, selectors groupmodels.RegionSelectors) (models.RegionParts, error) }
Click to show internal directories.
Click to hide internal directories.