Documentation ¶
Index ¶
Constants ¶
View Source
const Deposit = "Deposit"
View Source
const Rollback = "Rollback"
View Source
const Withdraw = "Withdraw"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { UserId string `json:"userId"` CommandType string `json:"type"` Amount *dtos.CurrencyDto `json:"amount"` Time time.Time `json:"time"` Game string `json:"game"` Lobby string `json:"lobby"` Reason string `json:"reason"` }
Command is a default Bank Command used to communicate with the bank
func NewCommand ¶
NewCommand creates a new bank command
type RabbitBankConnection ¶
type RabbitBankConnection struct {
// contains filtered or unexported fields
}
func NewRabbitBankConnection ¶
func NewRabbitBankConnection(url string) (*RabbitBankConnection, error)
func (*RabbitBankConnection) PublishCommand ¶
func (r *RabbitBankConnection) PublishCommand(command *Command) error
Click to show internal directories.
Click to hide internal directories.