README ¶ go-order-processing_queue Order processing system with golang use go-nsq Usage go test --cmd sender --nsqd_address 127.0.0.1 go test --cmd consumer --nsqd_address 127.0.0.1 NSQD docker-compose with nsqd change hostname & broadcast address to use Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Constants func Start() type OrderData Constants ¶ View Source const ( FlagCMD = "cmd" FlagNSQDAddress = "nsqd_address" ) Variables ¶ This section is empty. Functions ¶ func Start ¶ func Start() Types ¶ type OrderData ¶ type OrderData struct { UserName string `json:"user_name"` OrderID string `json:"order_id"` OrderType string `json:"order_type"` OrderState int `json:"order_state"` // 0.default 1.processing 2.complete 3.rollback Memo string `json:"memo"` Money float64 `json:"money"` } Source Files ¶ View all Source files consumer.gomain.goorder.gosender.go Click to show internal directories. Click to hide internal directories.