application

package
v0.0.0-...-3a9fddd Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

type RegisterCustomer struct {
	ID        string
	Name      string
	SmsNumber string
}

Jump to

Keyboard shortcuts

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