feudal/context/handler.go
Matthew Rich 1b9d1b1fb1
Some checks failed
Declarative Tests / test (push) Waiting to run
Lint / golangci-lint (push) Has been cancelled
add context
2024-05-05 00:11:52 -07:00

16 lines
288 B
Go

// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package context
import (
"feudal/message"
)
// Register a handler for a message event type
type MessageHandler func(m message.Envelope)
func (h MessageHandler) Handle(m message.Envelope) {
h(m)
}