go-tunnel/control/handler.go

8 lines
157 B
Go

package control
import "context"
type Handlers map[MessageType]MessageHandler
type MessageHandler func(ctx context.Context, m *Message) (*Message, error)