Documentation ¶ Index ¶ type Repository type Service type Transfer func NewTransfer(Account_origin_id string, Account_destination_id string, Amount int) *Transfer Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Repository ¶ type Repository interface { Store(*Transfer) error GetById(string) (Transfer, error) ListByAccId(string) ([]Transfer, error) GenerateId() string Transaction(driver.Tx) Repository } type Service ¶ type Service interface { Transfer(Account_origin_id string, Account_destination_id string, amount int) (Transfer, error) ShowAllAccountTransfers(Account_Id string) ([]Transfer, error) } type Transfer ¶ type Transfer struct { Id string `json:"id"` Account_origin_id string `json:"account_origin_id"` Account_destination_id string `json:"account_destination_id"` Amount int `json:"amount"` Created_at time.Time `json:"created_at"` } func NewTransfer ¶ func NewTransfer(Account_origin_id string, Account_destination_id string, Amount int) *Transfer Source Files ¶ View all Source files entity.go repository.go service.go Directories ¶ Show internal Expand all Path Synopsis usecases Click to show internal directories. Click to hide internal directories.