refactor: add dummy DecodeMessage to panic, and add getter/setter for known
This commit is contained in:
parent
b53eb16767
commit
a497592bad
|
@ -22,6 +22,18 @@ type IncomingMessageImpl struct {
|
||||||
known bool
|
known bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (i *IncomingMessageImpl) DecodeMessage(dec *msgpack.Decoder) error {
|
||||||
|
panic("child class should implement this method")
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i *IncomingMessageImpl) Known() bool {
|
||||||
|
return i.known
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i *IncomingMessageImpl) SetKnown(known bool) {
|
||||||
|
i.known = known
|
||||||
|
}
|
||||||
|
|
||||||
func (i *IncomingMessageImpl) SetOriginal(original []byte) {
|
func (i *IncomingMessageImpl) SetOriginal(original []byte) {
|
||||||
i.original = original
|
i.original = original
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue