Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreditCardProcessor ¶
CreditCardProcessor allows to auth and eventually capture an amount float64 is used as an example here
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service defines our example application service
func (*Service) Inject ¶
func (s *Service) Inject(logger TransactionLog, processor CreditCardProcessor) *Service
Inject dependencies for our service
type TransactionLog ¶
type TransactionLog interface {
Log(id, message string)
}
TransactionLog logs information with a unique id and a message
Click to show internal directories.
Click to hide internal directories.