mirror of
https://github.com/go-micro/go-micro.git
synced 2025-01-23 17:53:05 +02:00
28 lines
385 B
Go
28 lines
385 B
Go
package proxy
|
|
|
|
import (
|
|
"github.com/micro/go-micro/v2/broker"
|
|
)
|
|
|
|
type publication struct {
|
|
topic string
|
|
message *broker.Message
|
|
err error
|
|
}
|
|
|
|
func (p *publication) Topic() string {
|
|
return p.topic
|
|
}
|
|
|
|
func (p *publication) Message() *broker.Message {
|
|
return p.message
|
|
}
|
|
|
|
func (p *publication) Ack() error {
|
|
return nil
|
|
}
|
|
|
|
func (p *publication) Error() error {
|
|
return p.err
|
|
}
|