customer_checking_account_mapping

package
v0.0.0-...-2b752c9 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	Create(ctx context.Context, customerID, checkingAccountNumber entity.ID) error
	Get(ctx context.Context, customerID, checkingAccountNumber entity.ID) (Mapping, error)
}

func NewManager

func NewManager(r repository) Manager

type Mapping

type Mapping struct {
	CustomerID            entity.ID
	CheckingAccountNumber entity.ID
}

type MySqlRepository

type MySqlRepository struct {
	// contains filtered or unexported fields
}

func NewMySqlRepository

func NewMySqlRepository(client *sql.DB) (*MySqlRepository, error)

func (MySqlRepository) Create

func (m MySqlRepository) Create(ctx context.Context, customerID, checkingAccountNumber entity.ID) error

func (MySqlRepository) Get

func (m MySqlRepository) Get(ctx context.Context, customerID, checkingAccountNumber entity.ID) (Mapping, error)

Jump to

Keyboard shortcuts

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