Documentation ¶
Index ¶
- type App
- type Application
- func (a Application) AuthorizeCustomer(ctx context.Context, authorize AuthorizeCustomer) error
- func (a Application) DisableCustomer(ctx context.Context, disable DisableCustomer) error
- func (a Application) EnableCustomer(ctx context.Context, enable EnableCustomer) error
- func (a Application) GetCustomer(ctx context.Context, get GetCustomer) (*domain.Customer, error)
- func (a Application) RegisterCustomer(ctx context.Context, register RegisterCustomer) error
- type AuthorizeCustomer
- type DisableCustomer
- type EnableCustomer
- type GetCustomer
- type RegisterCustomer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App interface { RegisterCustomer(ctx context.Context, register RegisterCustomer) error AuthorizeCustomer(ctx context.Context, authorize AuthorizeCustomer) error GetCustomer(ctx context.Context, get GetCustomer) (*domain.Customer, error) EnableCustomer(ctx context.Context, enable EnableCustomer) error DisableCustomer(ctx context.Context, disable DisableCustomer) error }
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func New ¶
func New(customers domain.CustomerRepository) *Application
func (Application) AuthorizeCustomer ¶
func (a Application) AuthorizeCustomer(ctx context.Context, authorize AuthorizeCustomer) error
func (Application) DisableCustomer ¶
func (a Application) DisableCustomer(ctx context.Context, disable DisableCustomer) error
func (Application) EnableCustomer ¶
func (a Application) EnableCustomer(ctx context.Context, enable EnableCustomer) error
func (Application) GetCustomer ¶
func (a Application) GetCustomer(ctx context.Context, get GetCustomer) (*domain.Customer, error)
func (Application) RegisterCustomer ¶
func (a Application) RegisterCustomer(ctx context.Context, register RegisterCustomer) error
type AuthorizeCustomer ¶
type AuthorizeCustomer struct {
ID string
}
type DisableCustomer ¶
type DisableCustomer struct {
ID string
}
type EnableCustomer ¶
type EnableCustomer struct {
ID string
}
type GetCustomer ¶
type GetCustomer struct {
ID string
}
type RegisterCustomer ¶
Click to show internal directories.
Click to hide internal directories.