refactor: add dummy DecodeMessage to panic, and add getter/setter for known

This commit is contained in:
Derrick Hammer 2024-01-07 07:58:43 -05:00
parent b53eb16767
commit a497592bad
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 12 additions and 0 deletions

View File

@ -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
} }