github.com/volts-dev/volts@v0.0.0-20240120094013-5e9c65924106/broker/http/event.go (about) 1 package http 2 3 import ( 4 "github.com/volts-dev/volts/broker" 5 ) 6 7 type ( 8 event struct { 9 m *broker.Message 10 t string 11 err error 12 } 13 ) 14 15 func (h *event) Ack() error { 16 return nil 17 } 18 19 func (h *event) Error() error { 20 return h.err 21 } 22 23 func (h *event) Message() *broker.Message { 24 return h.m 25 } 26 27 func (h *event) Topic() string { 28 return h.t 29 }