Documentation ¶
Index ¶
- type Inquirer
- type Polygon
- type PolygonRepo
- type PolygonUsecase
- func (a *PolygonUsecase) FindOne(ctx context.Context, id int) (*Polygon, error)
- func (a *PolygonUsecase) FindOneWithInstance(ctx context.Context, queries ...Query) (*Polygon, error)
- func (a *PolygonUsecase) List(ctx context.Context) ([]*Polygon, error)
- func (a *PolygonUsecase) Remove(ctx context.Context) error
- func (a *PolygonUsecase) Save(ctx context.Context, data *Polygon) (*Polygon, error)
- func (a *PolygonUsecase) Truncate(ctx context.Context) error
- type Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PolygonRepo ¶
type PolygonRepo interface { Count(ctx context.Context, options ...Query) int FindList(ctx context.Context, options ...Query) ([]*Polygon, error) FindOne(ctx context.Context, options ...Query) (*Polygon, error) Save(ctx context.Context, data *Polygon) (*Polygon, error) Remove(ctx context.Context, options ...Query) error Truncate(ctx context.Context) error }
type PolygonUsecase ¶
type PolygonUsecase struct {
// contains filtered or unexported fields
}
func NewPolygonUsecase ¶
func NewPolygonUsecase(repo PolygonRepo) *PolygonUsecase
func (*PolygonUsecase) FindOneWithInstance ¶
func (*PolygonUsecase) List ¶
func (a *PolygonUsecase) List(ctx context.Context) ([]*Polygon, error)
Click to show internal directories.
Click to hide internal directories.