go-tunnel/control/handler.go

8 lines
157 B
Go
Raw Normal View History

2020-10-21 18:00:15 +02:00
package control
import "context"
type Handlers map[MessageType]MessageHandler
type MessageHandler func(ctx context.Context, m *Message) (*Message, error)