Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
@Summary(value = "An account was opened")
data class AccountOpened(val owner: String)
Link copied to clipboard
Link copied to clipboard
@BoundedContext(name = "bank", description = "Accounts and their balances")
object BankBoundedContext
Link copied to clipboard
@SpringBootApplication(proxyBeanMethods = false)
class BankServer
Link copied to clipboard
@Summary(value = "Deposit money")
data class Deposit(val amount: Long)
Link copied to clipboard
@Summary(value = "Money was deposited")
data class Deposited(val amount: Long)
Link copied to clipboard
@Summary(value = "Open an account")
data class OpenAccount(val owner: String)
Link copied to clipboard
@Service
class Teller(commands: CommandClient)

Deposits from application code, through the host's CommandClient: the same admission as the HTTP routes.

Link copied to clipboard
@Summary(value = "Withdraw money")
data class Withdraw(val amount: Long)
Link copied to clipboard
@Summary(value = "Money was withdrawn")
data class Withdrawn(val amount: Long)

Functions

Link copied to clipboard
fun main(args: Array<String>)