type Connection struct { net.Conn OnEventCallback func(clientClosed bool, serverClosed bool, err error) }