1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-29 18:04:17 +02:00
go-micro/plugins/broker/proxy/publication.go
2021-10-12 12:55:53 +01:00

28 lines
372 B
Go

package proxy
import (
"go-micro.dev/v4/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
}