* move publish methods to a separate file * reorder client methods * fix panic for publish * refactoring * go mod tidy * rename go.micro => micro * add comment to README about Set-Cookie headers
		
			
				
	
	
		
			29 lines
		
	
	
		
			474 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			474 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package http
 | |
| 
 | |
| import (
 | |
| 	"go.unistack.org/micro/v3/client"
 | |
| 	"go.unistack.org/micro/v3/metadata"
 | |
| )
 | |
| 
 | |
| type httpMessage struct {
 | |
| 	topic   string
 | |
| 	payload interface{}
 | |
| 	opts    client.MessageOptions
 | |
| }
 | |
| 
 | |
| func (m *httpMessage) Topic() string {
 | |
| 	return m.topic
 | |
| }
 | |
| 
 | |
| func (m *httpMessage) Payload() interface{} {
 | |
| 	return m.payload
 | |
| }
 | |
| 
 | |
| func (m *httpMessage) ContentType() string {
 | |
| 	return m.opts.ContentType
 | |
| }
 | |
| 
 | |
| func (m *httpMessage) Metadata() metadata.Metadata {
 | |
| 	return m.opts.Metadata
 | |
| }
 |