mirror of
				https://github.com/oarkflow/mq.git
				synced 2025-11-01 01:22:32 +08:00 
			
		
		
		
	init: publisher
This commit is contained in:
		
							
								
								
									
										18
									
								
								constants.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								constants.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| package mq | ||||
|  | ||||
| type CMD int | ||||
|  | ||||
| const ( | ||||
| 	SUBSCRIBE CMD = iota + 1 | ||||
| 	PUBLISH | ||||
| 	REQUEST | ||||
| 	STOP | ||||
| ) | ||||
|  | ||||
| var ( | ||||
| 	ConsumerKey  = "Consumer-Key" | ||||
| 	PublisherKey = "Publisher-Key" | ||||
| 	ContentType  = "Content-Type" | ||||
| 	TypeJson     = "application/json" | ||||
| 	HeaderKey    = "headers" | ||||
| ) | ||||
		Reference in New Issue
	
	Block a user
	 sujit
					sujit