Documentation ¶
Index ¶
- type Actions
- func (a Actions) GetProperty(ctx context.Context, id string) (*entity.Property, error)
- func (a Actions) GetTenant(ctx context.Context, id entity.ID) (*entity.Tenant, error)
- func (a Actions) ListProperties(ctx context.Context, f usecase.PropertyFilter) ([]entity.Property, error)
- func (a Actions) ListTenants(ctx context.Context) ([]entity.Tenant, error)
- func (a Actions) RemoveProperty(ctx context.Context, id string) error
- func (a Actions) SearchProperties(ctx context.Context, s string) ([]entity.Property, error)
- func (a Actions) StoreProperty(ctx context.Context, p entity.Property) (entity.ID, error)
- func (a Actions) StoreTenant(ctx context.Context, e entity.Tenant) (*entity.Tenant, error)
- func (a Actions) WithPropertyRepo(r usecase.PropertyRepo) Actions
- func (a Actions) WithTenantRepo(r usecase.TenantRepo) Actions
- type Repo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actions ¶
type Actions struct {
// contains filtered or unexported fields
}
func NewActions ¶
func NewActions() Actions
func NewActionsWithRepo ¶
func (Actions) GetProperty ¶
func (Actions) ListProperties ¶
func (Actions) ListTenants ¶
func (Actions) RemoveProperty ¶
func (Actions) SearchProperties ¶
func (Actions) StoreProperty ¶
func (Actions) StoreTenant ¶
func (Actions) WithPropertyRepo ¶
func (a Actions) WithPropertyRepo(r usecase.PropertyRepo) Actions
func (Actions) WithTenantRepo ¶
func (a Actions) WithTenantRepo(r usecase.TenantRepo) Actions
type Repo ¶
type Repo interface { usecase.PropertyRepo usecase.TenantRepo }
Click to show internal directories.
Click to hide internal directories.