actions

package
v0.0.0-...-be3f9aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 NewActionsWithRepo(r Repo) Actions

func (Actions) GetProperty

func (a Actions) GetProperty(ctx context.Context, id string) (*entity.Property, error)

func (Actions) GetTenant

func (a Actions) GetTenant(ctx context.Context, id entity.ID) (*entity.Tenant, error)

func (Actions) ListProperties

func (a Actions) ListProperties(ctx context.Context, f usecase.PropertyFilter) ([]entity.Property, error)

func (Actions) ListTenants

func (a Actions) ListTenants(ctx context.Context) ([]entity.Tenant, error)

func (Actions) RemoveProperty

func (a Actions) RemoveProperty(ctx context.Context, id string) error

func (Actions) SearchProperties

func (a Actions) SearchProperties(ctx context.Context, s string) ([]entity.Property, error)

func (Actions) StoreProperty

func (a Actions) StoreProperty(ctx context.Context, p entity.Property) (entity.ID, error)

func (Actions) StoreTenant

func (a Actions) StoreTenant(ctx context.Context, e entity.Tenant) (*entity.Tenant, error)

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL